更新:这个问题可以通过在 docker 容器中安装 Postfix 来重现。
我尝试从源 2.x 和 3.x 最新 postfix 版本重新编译,但没有解决问题。
我已将 Postfix 配置为发送和接收电子邮件,但 HARD 退回的电子邮件存在一个问题——它们没有被拒绝,Postfix 每隔 x 分钟重复发送一次,并且用户多次收到“未送达的邮件退回给发件人”。
在mail.log中我看到: [..] delay=5.2, delays=0.11/0.01/0.07/5, dsn=4.3.0, status=deferred (bounce or trace service failure)
我-v在master.cf 中添加了bounce、qmgr 守护程序,但我仍然无法弄清楚出了什么问题。
这是我的配置:
# postconf -nf:
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
config_directory = /etc/postfix
content_filter = smtp-amavis:[127.0.0.1]:10024
inet_interfaces = all
inet_protocols = all
local_recipient_maps = $virtual_mailbox_maps
mailbox_size_limit = 0
message_size_limit = 134217728
milter_default_action = accept
mydestination = localhost
myhostname …Run Code Online (Sandbox Code Playgroud)