Postfix 是否通过普通 SMTP 或 STARTTLS 传递邮件?

Postfix 是否通过普通 SMTP 或 STARTTLS 传递邮件?

使用smtp_tls_security_level或者smtp_tls_policy_maps我可以让 Postfix 通过 STARTTLS 发送外发邮件。但是日志文件似乎没有告诉我邮件是否使用 TLS 发送。

Jul  9 13:54:07 outgoing.example.com postfix/smtp[1337]: ABCDEF123: to=<[email protected]>, orig_to=<[email protected]>, relay=mx.example.org[192.0.2.25]:25, delay=1.4, delays=0.01/0/0.34/1, dsn=2.6.0, status=sent (250 2.6.0 Yum yum munch munch)

有没有办法记录每封发出的邮件是否使用普通 SMTP 还是 STARTTLS 发送?

答案1

更改默认配置:
smtp_tls_loglevel用于传出连接
smtpd_tls_loglevel对于传入连接

答案2

默认情况下,Postfix 在发送邮件时不会记录有关连接的任何信息(尽管收件人可能仍然能够从邮件Received头中了解此类 TLS 信息),但你可以增加smtp_tls_loglevel从默认值01或更高。

相关内容