实际上,我已经设置了一个Postfix堆栈(带有Dovecot和Spamassassin,ClamAV + Amavis),它工作得很好。
它将我的电子邮件(我正在使用Thunderbrid作为客户端)转发给其他邮件服务器。 我尝试了不同的像gmx或gmail。
我有一个旧的邮件服务器(默认iredmail,没有自定义),这将是新的服务器正在工作,将尽快迁移。
无论如何,造成问题的唯一邮件服务器就是这个。 当我发送电子邮件到这台iredmail机器,我的新的后缀服务器给我一个“未送达的邮件返回发件人”通知与以下内容:
<[email protected]>: host mail.otherhost.com[OTHER_HOST_IP] said: 553 5.7.1 <[email protected]>: Sender address rejected: not logged in (in reply to RCPT TO command)
除此之外,我有新的postfix服务器(掩码为host.com)的maillog:
Feb 1 15:34:19 mail postfix/submission/smtpd[7090]: connect from p11e11b3f.dip0.t-ipconnect.de[MY_HOME_IP] Feb 1 15:34:19 mail postfix/submission/smtpd[7090]: Anonymous TLS connection established from p11e11b3f.dip0.t-ipconnect.de[MY_HOME_IP]: TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits) Feb 1 15:34:19 mail postfix/submission/smtpd[7090]: 7E92928C0DAE: client=p11e11B3F.dip0.t-ipconnect.de[MY_HOME_IP], sasl_method=PLAIN, [email protected] Feb 1 15:34:19 mail postfix/cleanup[7096]: 7E92928C0DAE: message-id=<[email protected]> Feb 1 15:34:19 mail postfix/qmgr[4363]: 7E92928C0DAE: from=<[email protected]>, size=673, nrcpt=1 (queue active) Feb 1 15:34:19 mail postfix/submission/smtpd[7090]: disconnect from p11e11B3F.dip0.t-ipconnect.de[MY_HOME_IP] Feb 1 15:34:20 mail postfix/smtpd[7101]: connect from localhost.localdomain[127.0.0.1] Feb 1 15:34:20 mail postfix/smtpd[7101]: 9C3BC28C0DCA: client=localhost.localdomain[127.0.0.1] Feb 1 15:34:20 mail postfix/cleanup[7096]: 9C3BC28C0DCA: message-id=<[email protected]> Feb 1 15:34:20 mail postfix/smtpd[7101]: disconnect from localhost.localdomain[127.0.0.1] Feb 1 15:34:20 mail postfix/qmgr[4363]: 9C3BC28C0DCA: from=<[email protected]>, size=1108, nrcpt=1 (queue active) Feb 1 15:34:20 mail amavis[5722]: (05722-04) Passed CLEAN {RelayedOpenRelay}, [MY_HOME_IP]:59846 [MY_HOME_IP] <[email protected]> -> <[email protected]>, Queue-ID: 7E92928C0DAE, Message-ID: <[email protected]>, mail_id: gSTyaLhv6ZgI, Hits: -1, size: 673, queued_as: 9C3BC28C0DCA, 1061 ms Feb 1 15:34:20 mail postfix/lmtp[7098]: 7E92928C0DAE: to=<[email protected]>, relay=127.0.0.1[127.0.0.1]:10024, delay=1.2, delays=0.16/0/0/1.1, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 9C3BC28C0DCA) Feb 1 15:34:20 mail postfix/qmgr[4363]: 7E92928C0DAE: removed Feb 1 15:34:20 mail postfix/smtp[7102]: Untrusted TLS connection established to mail.otherhost.com[OTHER_HOST_IP]:25: TLSv1 with cipher ADH-AES256-SHA (256/256 bits) Feb 1 15:34:20 mail postfix/smtp[7102]: 9C3BC28C0DCA: to=<[email protected]>, relay=mail.otherhost.com[OTHER_HOST_IP]:25, delay=0.15, delays=0.05/0/0.05/0.05, dsn=5.7.1, status=bounced (host mail.otherhost.com[OTHER_HOST_IP] said: 553 5.7.1 <[email protected]>: Sender address rejected: not logged in (in reply to RCPT TO command)) Feb 1 15:34:20 mail postfix/cleanup[7096]: C20F928C0DCB: message-id=<[email protected]> Feb 1 15:34:20 mail postfix/bounce[7103]: 9C3BC28C0DCA: sender non-delivery notification: C20F928C0DCB Feb 1 15:34:20 mail postfix/qmgr[4363]: C20F928C0DCB: from=<>, size=3112, nrcpt=1 (queue active) Feb 1 15:34:20 mail postfix/qmgr[4363]: 9C3BC28C0DCA: removed Feb 1 15:34:20 mail postfix/virtual[7104]: C20F928C0DCB: to=<[email protected]>, relay=virtual, delay=0.08, delays=0.04/0/0/0.03, dsn=2.0.0, status=sent (delivered to maildir) Feb 1 15:34:20 mail postfix/qmgr[4363]: C20F928C0DCB: removed
除了这个详细的日志,我有iredmail机器相关的片段“
Feb 1 17:44:48 mail postfix/smtpd[15073]: connect from unknown[HOST_IP] Feb 1 17:44:48 mail postfix/smtpd[15073]: NOQUEUE: reject: RCPT from unknown[HOST_IP]: 553 5.7.1 <[email protected]>: Sender address rejected: not logged in; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<mail.host.com> Feb 1 17:44:48 mail postfix/smtpd[15073]: disconnect from unknown[HOST_IP]
我现在问自己的问题是:在我不知道的默认iredmail服务器中是否存在configuration错误,或者在我应该修复的新的后缀服务器中是否存在configuration错误。
一般来说,这个错误到底意味着什么,我对整个系统pipe理的邮件服务器部分有些新东西,但是非常渴望学习新东西。
提前致谢。
(新的后缀机器被屏蔽为HOST_IP , mail.host.com和[email protected] ,旧的iredmail机器被屏蔽为: OTHER_HOST_IP , mail.otherhost.com和[email protected] )
默认情况下,iredmail不允许未经身份validation的连接来自它所控制的域。 从iredmail删除发件人的域(如果它不应该在那里)或添加发送服务器的IP到我的networking在iRedMailconfiguration(如果你信任它)。
您名为mail.otherhost.com iredmail机器configuration错误。 它似乎希望在端口25上连接的用户在发送邮件之前进行身份validation,这不适用于此端口上的传入连接。 端口25用于接收来自Internet上其他域的邮件。 应仅对端口587(提交端口)上的传入连接要求身份validation,您的域的用户使用该端口发送传出邮件。
我对iredmail 不够熟悉,告诉你需要更改的确切设置,尽pipe这不应该太难find。
但是,如果你正在退役,而且它的replace工作正常,你可以忽略它并交换新的服务器。
消息Sender address rejected: not logged in意味着,使用的发件人地址(“ From: ”地址)有一个所有者 – 可能是托pipe在给定的服务器上,所以从这个地址的电子邮件不能从外面来。
在给定的服务器上可能存在邮箱或别名从给定的地址 – 尝试删除它。