Ubuntu

SquirrelMail 不發送或接收任何郵件

  • January 13, 2019

我只是試圖在我的 Ubutnu 14.04 上設置一個郵件伺服器。目標是能夠從 info@mydomain.com 發送郵件並接收發送到同一地址的郵件。

現在我按照教程安裝 Postfix、Dovecot 和 SquirrelMail。我按照教程進行操作,一切正常。此外,我將我的info-user 添加到郵件組,並且我設置了從 @ 到 @ 的 MX 記錄,因此作為主機,所有內容都發送到我的域。我發現這是其他人的一個問題,它為他解決了這個問題。對我來說,它並沒有改變任何東西。

現在 SquirrelMail 的 web 部分工作正常,我可以到處點擊並撰寫郵件。已發送的郵件也在 SENT-Folder 中。

但是,我既沒有在 SquirrelMail 上接收郵件,也沒有在我嘗試從 SquirrelMail 發送郵件的郵件帳戶上接收郵件。我嘗試了 1and1、web.de 和 gmail ……都沒有結果……

我檢查了var/log/mail.err沒有結果。

但是:在 中mail.log,有一些有趣的行,我只是將它們粘貼到這裡:

Jan 13 11:23:17 myhostname postfix/smtpd[22086]: connect from mail-vs1-f67.google.com[209.85.217.67]
Jan 13 11:23:18 myhostname postfix/smtpd[22086]: NOQUEUE: reject: RCPT from mail-vs1-f67.google.com[209.85.217.67]: 454 4.7.1 <info@chatxpress.com>: Relay access denied; from=<myadress@googlemail.com> to=<info@chatxpress.com> proto=ESMTP helo=<mail-vs1-f67.google.com>
Jan 13 11:23:18 myhostname postfix/smtpd[22086]: disconnect from mail-vs1-f67.google.com[209.85.217.67] ehlo=2 starttls=1 mail=1 rcpt=0/1 data=0/1 quit=1 commands=5/7
Jan 13 11:25:16 myhostname dovecot: imap-login: Login: user=<info>, method=PLAIN, rip=::1, lip=::1, mpid=22170, secured, session=<WECcX1l/DM8AAAAAAAAAAAAAAAAAAAAB>
Jan 13 11:25:16 myhostname dovecot: imap(info): Logged out in=117 out=1526
Jan 13 11:25:17 myhostname dovecot: imap-login: Login: user=<info>, method=PLAIN, rip=::1, lip=::1, mpid=22172, secured, session=<tz2mX1l/Ks8AAAAAAAAAAAAAAAAAAAAB>
Jan 13 11:25:17 myhostname dovecot: imap(info): Logged out in=309 out=3198
Jan 13 11:25:17 myhostname dovecot: imap-login: Login: user=<info>, method=PLAIN, rip=::1, lip=::1, mpid=22174, secured, session=<q6OxX1l/Ts8AAAAAAAAAAAAAAAAAAAAB>
Jan 13 11:25:17 myhostname dovecot: imap(info): Logged out in=117 out=1526
Jan 13 11:25:32 myhostname postfix/smtpd[22175]: connect from localhost[::1]
Jan 13 11:25:32 myhostname postfix/smtpd[22175]: A1DE045E87E0: client=localhost[::1]
Jan 13 11:25:32 myhostname postfix/cleanup[22178]: A1DE045E87E0: message-id=<f1a2b6e6d7fa2c11f2a8e1c7ac98606b.squirrel@chatxpress.com>
Jan 13 11:25:32 myhostname postfix/qmgr[15683]: A1DE045E87E0: from=<info@chatXpress.com>, size=716, nrcpt=1 (queue active)
Jan 13 11:25:32 myhostname postfix/smtpd[22175]: disconnect from localhost[::1] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
Jan 13 11:25:32 myhostname dovecot: imap-login: Login: user=<info>, method=PLAIN, rip=::1, lip=::1, mpid=22181, secured, session=<uTGVYFl/jtEAAAAAAAAAAAAAAAAAAAAB>
Jan 13 11:25:32 myhostname postfix/smtp[22179]: A1DE045E87E0: host mx01.emig.kundenserver.de[217.72.192.66] refused to talk to me: 554-kundenserver.de (mxeue112) Nemesis ESMTP Service not available 554-No SMTP service 554-Bad DNS PTR resource record. 554 For explanation visit https://www.ionos.com/help/index.php?id=2425&ip=85.93.24.159&c=rdns
Jan 13 11:25:32 myhostname dovecot: imap(info): Logged out in=606 out=574
Jan 13 11:25:32 myhostname postfix/smtp[22179]: A1DE045E87E0: to=<myadress-f@online.de>, relay=mx00.emig.kundenserver.de[212.227.15.40]:25, delay=0.16, delays=0.05/0.07/0.04/0, dsn=4.0.0, status=deferred (host mx00.emig.kundenserver.de[212.227.15.40] refused to talk to me: 554-kundenserver.de (mxeue009) Nemesis ESMTP Service not available 554-No SMTP service 554-Bad DNS PTR resource record. 554 For explanation visit https://www.ionos.com/help/index.php?id=2425&ip=85.93.24.159&c=rdns)
Jan 13 11:25:32 myhostname dovecot: imap-login: Login: user=<info>, method=PLAIN, rip=::1, lip=::1, mpid=22184, secured, session=<eeqWYFl/sNEAAAAAAAAAAAAAAAAAAAAB>
Jan 13 11:25:32 myhostname dovecot: imap(info): Logged out in=117 out=1526
Jan 13 11:26:22 myhostname postfix/smtpd[22175]: connect from mx1.validemail.com[208.101.20.91]
Jan 13 11:26:22 myhostname postfix/smtpd[22175]: NOQUEUE: reject: RCPT from mx1.validemail.com[208.101.20.91]: 454 4.7.1 <info@chatxpress.com>: Relay access denied; from=<> to=<info@chatxpress.com> proto=ESMTP helo=<mx1.validemail.com>
Jan 13 11:26:22 myhostname postfix/smtpd[22175]: disconnect from mx1.validemail.com[208.101.20.91] ehlo=1 mail=1 rcpt=0/1 rset=1 quit=1 commands=4/5
Jan 13 11:26:23 myhostname postfix/smtpd[22175]: connect from mx1.validemail.com[208.101.20.91]
Jan 13 11:26:23 myhostname postfix/smtpd[22175]: NOQUEUE: reject: RCPT from mx1.validemail.com[208.101.20.91]: 454 4.7.1 <info@chatxpress.com>: Relay access denied; from=<> to=<info@chatxpress.com> proto=ESMTP helo=<mx1.validemail.com>
Jan 13 11:26:24 myhostname postfix/smtpd[22175]: disconnect from mx1.validemail.com[208.101.20.91] ehlo=1 mail=1 rcpt=0/1 rset=1 quit=1 commands=4/5
Jan 13 11:27:44 myhostname dovecot: imap-login: Login: user=<info>, method=PLAIN, rip=::1, lip=::1, mpid=22219, secured, session=<nHZvaFl/7uYAAAAAAAAAAAAAAAAAAAAB>
Jan 13 11:27:44 myhostname dovecot: imap(info): Logged out in=117 out=1526
Jan 13 11:27:47 myhostname postfix/smtpd[22175]: connect from unknown[190.85.234.7]
Jan 13 11:27:47 myhostname postfix/smtpd[22175]: disconnect from unknown[190.85.234.7] helo=1 auth=0/1 quit=1 commands=2/3
Jan 13 11:27:51 myhostname  postfix/qmgr[15683]: CB8D545E87CF: from=<info@chatXpress.com>, size=714, nrcpt=1 (queue active)
Jan 13 11:27:51 myhostname postfix/smtp[22220]: CB8D545E87CF: host mx-ha03.web.de[212.227.15.17] refused to talk to me: 554-web.de (mxweb012) Nemesis ESMTP Service not available 554-No SMTP service 554-Bad DNS PTR resource record. 554 For explanation visit http://postmaster.web.de/error-messages?ip=85.93.24.159&c=rdns
Jan 13 11:27:52 myhostname postfix/smtp[22220]: CB8D545E87CF: to=<myadress@web.de>, relay=mx-ha02.web.de[212.227.17.8]:25, delay=427, delays=427/0.03/0.06/0, dsn=4.0.0, status=deferred (host mx-ha02.web.de[212.227.17.8] refused to talk to me: 554-web.de (mxweb112) Nemesis ESMTP Service not available 554-No SMTP service 554-Bad DNS PTR resource record. 554 For explanation visit http://postmaster.web.de/error-messages?ip=85.93.24.159&c=rdns)
Jan 13 11:27:54 myhostname dovecot: imap-login: Login: user=<info>, method=PLAIN, rip=::1, lip=::1, mpid=22224, secured, session=<sMsAaVl/fugAAAAAAAAAAAAAAAAAAAAB>
Jan 13 11:27:54 myhostname dovecot: imap(info): Logged out in=85 out=789

請注意,我用偽地址替換了真實地址。

老實說,我真的不知道這些錯誤,但我認為像NOQUE: reject,Relay access deniedstatus=deferred (host mx-ha02.web.de[212.227.17.8] refused to talk to me:看起來不太好。

有人知道我缺少什麼或應該解決什麼嗎?

您也可以檢查我對域 chatXpress.com 的設置,因為info@chatxpress.com來自 centralops 的域檔案返回

[Resolving chatxpress.com...]
[Contacting chatxpress.com [85.93.24.159]...]
[Connected]
220 localhost.localdomain ESMTP Postfix (Ubuntu)
EHLO mx1.validemail.com
250-localhost.localdomain
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
MAIL FROM:<>
250 2.1.0 Ok
RCPT TO:<info@chatxpress.com>
454 4.7.1 <info@chatxpress.com>: Relay access denied
[Unfavorable reply code, cannot continue]
RSET
250 2.0.0 Ok
QUIT
221 2.0.0 Bye
[Connection closed]

再次Replay Access Denied

謝謝你的幫助!

您在這裡(至少)有兩個不同的問題:

首先,您無法接收帶有錯誤的郵件Relay access denied。這意味著 Postfix 未配置為接收您的域名的郵件。

要解決這個問題,您需要重新配置 Postfix,例如使用dpkg-reconfigure postfix並給它正確的域名。似乎 Postfix 是使用名稱localhost.localdomain而不是chatxpress.com.

其次,您無法發送郵件,因為根據您收到的錯誤消息,您的主機的 IP 地址沒有 PTR 記錄。我能夠證實這一點:

$ host 85.93.24.159
Host 159.24.93.85.in-addr.arpa. not found: 3(NXDOMAIN)

PTR 記錄必須由 IP 地址的所有者設置,即託管您的伺服器的數據中心。聯繫他們以獲取有關如何設置 PTR 記錄的更多資訊。

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