伙计们!
我有一个带有 ISPConfig 的 CentOS 网络服务器,该服务器已经运行了一年多,没有任何问题,并包含电子邮件服务(postfix + dovecot + sieve)。
然而,客户端出现了新的需求,需要将电子邮件副本发送到其他帐户(位于服务器内部)
我和 Sieve 争论了好几天。当我们在 ispconfig 中配置一些重定向(CC 或 BCC)时,电子邮件会到达主帐户,但应该接收副本的帐户却收不到邮件。
以下是有关电子邮件传递的服务器日志(Maillog)(我只是更改了电子邮件地址以保护它们):
Mar 20 22:57:05 srv-exwb01 sendmail[22014]: w2L1v4Si022014: w2L1v4Sj022014: DSN: Service unavailable
Mar 20 22:57:05 srv-exwb01 postfix/smtpd[21955]: NOQUEUE: reject: RCPT from localhost[127.0.0.1]: 554 5.7.1 <srv-exwb01.eximiaweb.com.br>: Helo command rejected: Host not found; from=<> to=<[email protected]> proto=ESMTP helo=<srv-exwb01.eximiaweb.com.br>
Mar 20 22:57:05 srv-exwb01 sendmail[22014]: w2L1v4Sj022014: [email protected], delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=33744, relay=[127.0.0.1] [127.0.0.1], dsn=5.7.1, stat=Service unavailable
Mar 20 22:57:05 srv-exwb01 sendmail[22014]: w2L1v4Sj022014: w2L1v4Sk022014: return to sender: Service unavailable
Mar 20 22:57:05 srv-exwb01 postfix/smtpd[21955]: NOQUEUE: reject: RCPT from localhost[127.0.0.1]: 554 5.7.1 <srv-exwb01.eximiaweb.com.br>: Helo command rejected: Host not found; from=<> to=<[email protected]> proto=ESMTP helo=<srv-exwb01.eximiaweb.com.br>
Mar 20 22:57:05 srv-exwb01 sendmail[22014]: w2L1v4Sk022014: to=postmaster, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=34768, relay=[127.0.0.1] [127.0.0.1], dsn=5.7.1, stat=Service unavailable
Mar 20 22:57:05 srv-exwb01 sendmail[22014]: w2L1v4Sj022014: Losing ./qfw2L1v4Sj022014: savemail panic
Mar 20 22:57:05 srv-exwb01 sendmail[22014]: w2L1v4Sj022014: SYSERR(vmail): savemail: cannot save rejected email anywhere
Mar 20 22:57:05 srv-exwb01 dovecot: lda([email protected]): Error: Sendmail process terminated abnormally, exit status 69
Mar 20 22:57:05 srv-exwb01 dovecot: lda([email protected]): Error: sieve: msgid=<[email protected]>: failed to redirect message to <[email protected]> (refer to server log for more information)
这是该帐户的筛选日志:
sieve: info: started log at Mar 20 22:11:48.
error: msgid=<[email protected]>: failed to redirect message to <[email protected]> (refer to server log for more information).
sieve: info: started log at Mar 20 22:25:24.
error: msgid=<[email protected]>: failed to redirect message to <[email protected]> (refer to server log for more information).
sieve: info: started log at Mar 20 22:39:31.
error: msgid=<[email protected]>: failed to redirect message to <[email protected]> (refer to server log for more information).
sieve: info: started log at Mar 20 22:57:05.
error: msgid=<[email protected]>: failed to redirect message to <[email protected]> (refer to server log for more information).
附加信息:已使用本教程配置了服务器: https://www.howtoforge.com/tutorial/perfect-server-centos-7-apache-mysql-php-pureftpd-postfix-dovecot-and-ispconfig/
有人知道会发生什么吗?提前感谢您的关注。
答案1
出色地...
我认为在我的朋友@Gerard H. Pille 的帮助下我可以解决这个问题,正如评论中提到的,我的绑定中有 PTR 记录,但正如@Gerard H. Pille 指出的那样,即使有了这个记录,反向 DNS 也无法工作。
然后仔细检查为我提供云实例的公司面板,我发现反向 DNS 指向与我的服务器不同的名称(ns1.eximiaweb.com.br),而 Sieve 正是在这里迷失了方向,甚至在内部他也试图在线查找但找不到它。我所做的是将此配置从 ns1.eximia ... 更改为服务器名称(存在于 hosts 文件中)。
这解决了这个问题,我发现注册很有趣,因为其他人可能有同样的问题。
谢谢你的帮助,@Gerard H. Pille!