Linux

沒有為一個帳戶發送電子郵件

  • August 3, 2015

我最近設置了一個郵箱,它在主域中執行良好 - 它可以很好地發送和接收電子郵件。

我想添加另一個域,所以我遵循相同的步驟

$$ change DNS, setup MX records, created user in the mail-in-a-box interface $$. 我可以接收電子郵件,我測試過它是從 gmail 帳戶發送的。但是當我回复那個測試時,電子郵件沒有進入我的 gmail 帳戶

$$ neither inbox nor spam $$. 我有這個日誌,因為我做了一段tail -f /var/log/mail.log時間向所述 gmail 帳戶發送電子郵件。

Aug  3 04:59:16 mail dovecot: imap-login: Login: user=<mail@domain.net>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=4101, TLS, session=<EfteYmQcMAB/AAAB>
Aug  3 04:59:16 mail dovecot: imap(mail@domain.net): Disconnected: Logged out in=117 out=943
Aug  3 04:59:18 mail dovecot: imap-login: Login: user=<mail@domain.net>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=4105, TLS, session=<Jjt+YmQcMQB/AAAB>
Aug  3 04:59:18 mail dovecot: imap(mail@domain.net): Disconnected: Logged out in=32 out=462
Aug  3 04:59:18 mail dovecot: imap-login: Login: user=<mail@domain.net>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=4107, TLS, session=<i7aBYmQcMgB/AAAB>
Aug  3 04:59:18 mail dovecot: imap(mail@domain.net): Disconnected: Logged out in=44 out=611
Aug  3 04:59:38 mail postfix/submission/smtpd[4112]: connect from localhost[127.0.0.1]
Aug  3 04:59:38 mail postfix/submission/smtpd[4112]: 59E8214035B: client=localhost[127.0.0.1], sasl_method=LOGIN, sasl_username=mail@domain.net
Aug  3 04:59:38 mail postfix/cleanup[4114]: 59E8214035B: replace: header Received: from mail.domain.ro (localhost [127.0.0.1])??(using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits))??(No client certificate requested)??by mail.domain.ro (Postfix) with ESMTPSA id 59E8214 from localhost[127.0.0.1]; from=<mail@domain.net> to=<email@gmail.com> proto=ESMTP helo=<mail.domain.ro>: Received: from authenticated-user (unknown [127.0.0.1])??(using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits))??(No client certificate requested)??by mail.domain.ro (Postfix) with ESMTPSA id 59E8214035B??for <email@gmail.com>; Mon,  3 Aug 2015 11:59:38 +0300 (EEST)
Aug  3 04:59:38 mail postfix/cleanup[4114]: 59E8214035B: message-id=<a2d9a70f1c1a9b1447fbbc044a4b1f4c@domain.net>
Aug  3 04:59:38 mail postfix/qmgr[14142]: 59E8214035B: from=<mail@domain.net>, size=658, nrcpt=1 (queue active)
Aug  3 04:59:38 mail dovecot: lmtp(4117): Connect from 127.0.0.1
Aug  3 04:59:38 mail dovecot: imap-login: Login: user=<mail@domain.net>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=4118, TLS, session=<EtOyY2QcNQB/AAAB>
Aug  3 04:59:38 mail spampd[1499]: processing message <a2d9a70f1c1a9b1447fbbc044a4b1f4c@domain.net> for <email@gmail.com>
Aug  3 04:59:38 mail dovecot: imap(mail@domain.net): Disconnected: Logged out in=473 out=581
Aug  3 04:59:38 mail postfix/submission/smtpd[4112]: disconnect from localhost[127.0.0.1]
Aug  3 04:59:38 mail spampd[1499]: clean message <a2d9a70f1c1a9b1447fbbc044a4b1f4c@domain.net> (-0.99/5.00) from <mail@domain.net> for <email@gmail.com> in 0.09s, 1171 bytes.
Aug  3 04:59:38 mail dovecot: lmtp(4117, email@gmail.com): c7FtHXotv1UVEAAAvHPqVw: sieve: msgid=<a2d9a70f1c1a9b1447fbbc044a4b1f4c@domain.net>: stored mail into mailbox 'INBOX'
Aug  3 04:59:38 mail postfix/lmtp[4115]: 59E8214035B: to=<email@gmail.com>, relay=127.0.0.1[127.0.0.1]:10025, delay=0.55, delays=0.37/0.02/0.02/0.14, dsn=2.0.0, status=sent (250 2.0.0 <email@gmail.com> c7FtHXotv1UVEAAAvHPqVw Saved)
Aug  3 04:59:38 mail dovecot: lmtp(4117): Disconnect from 127.0.0.1: Successful quit
Aug  3 04:59:38 mail postfix/qmgr[14142]: 59E8214035B: removed
Aug  3 04:59:39 mail dovecot: imap-login: Login: user=<mail@domain.net>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=4120, TLS, session=<Iii/Y2QcOAB/AAAB>
Aug  3 04:59:39 mail dovecot: imap(mail@domain.net): Disconnected: Logged out in=44 out=611
Aug  3 04:59:39 mail dovecot: imap-login: Login: user=<mail@domain.net>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=4122, TLS, session=<ijDIY2QcOQB/AAAB>
Aug  3 04:59:39 mail dovecot: imap(mail@domain.net): Disconnected: Logged out in=290 out=1375
Aug  3 04:59:40 mail dovecot: imap-login: Login: user=<mail@domain.net>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=4124, TLS, session=<neDKY2QcOgB/AAAB>
Aug  3 04:59:40 mail dovecot: imap(mail@domain.net): Disconnected: Logged out in=120 out=743

有人可以幫我弄清楚發生了什麼嗎?設置是相當新的,半小時。我提到這一點是為了防止它與 DNS 傳播有關——儘管我認為如果是這種情況,我在接收電子郵件時會遇到問題,而不是發送它們。

您發布的日誌條目似乎未顯示傳出傳遞嘗試。電子郵件email@gmail.com看起來像是在本地發送的,這往往表明某些事情非常糟糕virtual_domains,因為您的郵件伺服器似乎認為它應該接收 gmail 的郵件。除此之外,誰知道郵箱中的秘密可能在幕後發生。

引用自:https://serverfault.com/questions/710416