Postfix + Dovecot + Sieve - CC 和 BCC 重定向不起作用

Postfix + Dovecot + Sieve - CC 和 BCC 重定向不起作用

夥計們!

我有一個帶有 ISPConfig 的 CentOS Web 伺服器,該伺服器已經運行了一年多,沒有任何問題,包括電子郵件服務(postfix + dovecot + sieve)。

然而,對於將電子郵件副本發送到其他帳戶(位於伺服器本身內部)的用戶端出現了新的需求

我和Sieve爭論了幾天。當我們在 ispconfig 中配置某些重定向(CC 或 BCC)時,電子郵件將到達主帳戶,但應接收副本的帳戶不會收到該訊息。

在伺服器日誌(郵件日誌)下方,涉及電子郵件的發送(我剛剛更改了電子郵件地址以保護它們):

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 ... 更改為伺服器名稱(存在於主機文件中)。

這解決了問題,我發現註冊很有趣,因為可能其他人也有同樣的問題。

感謝您的幫助,@Gerard H. Pille!

相關內容