这是最近在我的SMTP服务器上testing的结果,我只是希望这个服务器发送电子邮件,大约一个星期前,
Resolving hostname... Connecting... SMTP -> FROM SERVER: 220 mail.testinstall.com ESMTP Postfix SMTP -> FROM SERVER: 250-mail.testinstall.com 250-PIPELINING 250-SIZE 10240000 250-ETRN 250-AUTH PLAIN LOGIN 250-AUTH=PLAIN LOGIN 250-ENHANCEDSTATUSCODES 250-8BITMIME 250 DSN MAIL FROM: [email protected] SMTP -> FROM SERVER: 250 2.1.0 Ok RCPT TO: [email protected] SMTP -> FROM SERVER: 454 4.7.1 : Relay access denied SMTP -> ERROR: RCPT not accepted from server: 454 4.7.1 : Relay access denied Message sending failed.
服务器细节
CentOS : 6.4 PostFix mail_version = 2.6.6 zpanel is the control panel software used
postfile的main.cf文件转载于http://pastebin.com/jqJMv1TM
从任何域的服务器的邮件不工作,所以我相信这不是一个领域特定的问题,并与服务器有关。 我也尝试过公开testing,发送电子邮件与PHP和也使用zpanel附带的networking邮件,所有这些都失败了域外的任何邮件。
我试图find像这样的线程提供的多个解决scheme( Postfix:从networking外部发送邮件时拒绝中继访问 ),其中大部分与外部软件中的其他configuration有关。 我们只有apache,zpanel,php,mysql(mysql Ver 14.14 Distrib 5.1.69,对于redhat-linux-gnu(x86_64)使用readline 5.1)和postfix安装在这台服务器上没有其他软件在我的知识中影响这个行为。 我们最近有一个域名更改(主域),这个问题似乎已经发生。
Maillog没有报告任何对这个问题看起来很重要的事情,并报告以下情况,但以极快的速度持续增长,我认为这是一个单独的问题
Sep 22 18:19:12 IS-21075 postfix/qmgr[23793]: 5F4943226F9: from=<>, size=3539, nrcpt=1 (queue active) Sep 22 18:19:13 IS-21075 postfix/qmgr[23793]: 5F4943226F9: to=<[email protected]>, relay=none, delay=263738, delays=263738/0.05/0/0, dsn=4.3.5, status=deferred (delivery temporarily suspended: mail for testinstall.com loops back to myself) Sep 22 18:19:13 IS-21075 postfix/qmgr[23793]: 52B9733CC4F: from=<[email protected]>, size=843, nrcpt=1 (queue active) Sep 22 18:19:13 IS-21075 postfix/qmgr[23793]: 52B9733CC4F: to=<[email protected]>, relay=none, delay=397370, delays=397370/0.12/0/0, dsn=4.3.5, status=deferred (delivery temporarily suspended: mail for testinstall.com loops back to myself) Sep 22 18:19:13 IS-21075 postfix/qmgr[23793]: 5C66E8B0FE0: from=<[email protected]>, size=844, nrcpt=1 (queue active) Sep 22 18:19:13 IS-21075 postfix/qmgr[23793]: 5C66E8B0FE0: to=<[email protected]>, relay=none, delay=57108, delays=57108/0.03/0/0, dsn=4.3.5, status=deferred (delivery temporarily suspended: mail for testinstall.com loops back to myself) Sep 22 18:19:13 IS-21075 postfix/qmgr[23793]: 536E87C1B6E: from=<>, size=2903, nrcpt=1 (queue active) Sep 22 18:19:13 IS-21075 postfix/qmgr[23793]: 536E87C1B6E: to=<[email protected]>, relay=none, delay=63290, delays=63290/0.03/0/0, dsn=4.3.5, status=deferred (delivery temporarily suspended: mail for testinstall.com loops back to myself)
我已经完全使main.cf为空,仍然错误仍然存在,但具有不同的错误代码
Resolving hostname... Connecting... SMTP -> FROM SERVER: 220 IS-21075.localdomain ESMTP Postfix SMTP -> FROM SERVER: 250-IS-21075.localdomain 250-PIPELINING 250-SIZE 10240000 250-VRFY 250-ETRN 250-ENHANCEDSTATUSCODES 250-8BITMIME 250 DSN MAIL FROM: [email protected] SMTP -> FROM SERVER: 250 2.1.0 Ok RCPT TO: [email protected] SMTP -> FROM SERVER: 554 5.7.1 : Relay access denied SMTP -> ERROR: RCPT not accepted from server: 554 5.7.1 : Relay access denied
消息发送失败。
你的mynetworks指令是无效的。 这个设置控制Postfix允许中继的IP地址范围。 它应该只包含你的内部服务器和networking。
它写道:
mynetworks = all,localhost
这显然不是IP地址或CIDR范围的列表 。
将其更改为反映应允许通过此Postfix进行中继的服务器/networking的实际地址。 例如:
mynetworks = 127.0.0.1 [::1] 10.118.87.0/24