我的 main.cf 文件包含
line_length_limit=4000
append_dot_mydomain = no
#delay_warning_time = 4h
readme_directory = no
compatibility_level = 2
transport_maps = hash:/etc/postfix/transport
smtpd_tls_security_level=none
smtp_tls_CApath=/etc/ssl/certs
smtp_tls_security_level=may
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_relay_restrictions =
#KEEP DISABLED check_policy_service { inet:127.0.0.1:10040, timeout=10s, default_action=DUNNO }
permit_mynetworks
permit_sasl_authenticated
defer_unauth_destination
myhostname = test.test.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mydestination = $myhostname, localhost.localdomain, localhost
relayhost = localhost:1125
mynetworks = mx3.test.com mx4.test.com 172.31.0.0/16 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
split_address_delimiter = +
inet_interfaces = all
inet_protocols = ipv4
header_checks = regexp:/etc/postfix/header_checks
message_size_limit = 46080000
header_size_limit = 204800
default_destination_concurrency_limit = 2
content_filter=smtp-amavis:[127.0.0.1]:10024
这些是我测试邮件中抄送的 ID
`Cc:[email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]`
以下是生成的 postfix/cleanup 日志
Jun 20 19:09:11 research-or1 postfix/cleanup[2127]: 8C208CFBD5: info: header Cc:[email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], from localhost[127.0.0.1]; from=<[email protected]> to=<[email protected]> proto=SMTP
日志未显示抄送标头中的所有邮件 ID,日志中缺少某些 ID,我在收件人标头中也遇到了同样的问题,如果有一群收件人,该如何解决此问题?
我努力了
- 添加并增加 line_length_limit
- 添加并增加标头大小限制
答案1
通过设置main.cf 中的参数debug_peer_list
为Postfix 启用更详细的日志记录debug_peer_level