大网数据广告活动
服务器运维问答

How to log condition in the exim?

· 52CE 我爱测

I want to see value of condition in exim, for example "authenticated". I can use authenticated = *, but I don't know what really contains "authenticated". If I add section warn with parameter logwrite = $authenticated I get error…

问题原文

原帖链接 · abr_stackoverflow · CC BY-SA 3.0

I want to see value of condition in exim, for example "authenticated". I can use authenticated = *, but I don't know what really contains "authenticated".

If I add section warn with parameter logwrite = $authenticated I get error unknown variable name "authenticated".

Also I want to see what contains in the condition "spam". There's many manuals say just add spam = nobody:false, but I can't understand who is nobody and what is false.

已采纳解答

原帖链接 · BillThor · CC BY-SA 3.0

Authenticated connections show up in the protocol field. This is found on the lines recording the sender (indicated by <= after the id. The protocols that indicate an authenticated messsage are esmtpsa, smtpsa, esmtpa and smtpa. estmp indicates extended SMTP requested by using the EHLO command instead of the HELO command. The sa suffix indicates authentication on a secure (TLS) connection, as compared to s (unauthenticated TLS) or a (authenticated on unsecured channel). The authentication details follow A= on the same line.

1bZnEj-0007DV-QV <= [email omitted] H=host.lan.example.com [192.0.2.47] P=esmtpsa A=dovecot_plain:me S=760 id=[email omitted] 

This warn clause will cause the configured spam filter to be run and spam report logged in the Exim log. Spamassassin will already be logging this data to the maillog, so I would remove the logwrite message as soon as you are happy it is working.

# Add a spam flag
warn
  spam = mail:true
  logwrite = $spam_report

See the Content Scanning chapter of the Exim Specification for more information on spam scanning. Get to know your way around the specification document.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2016-08-17)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。