我用http://www.pixelinx.com/2010/10/creating-a-mail-server-on-ubuntu-using-postfix-courier-ssltls-spamassassin-clamav-and-amavis/ tutorial安装postfix和smtp服务器。
但我不能发送和recive邮件,我检查与www.mxtoolbox.com smtp是一样的:发件人地址被拒绝:访问被拒绝[156毫秒]
这是什么意思? 我在这里阅读: http : //www.penpublishing.com/support/emailerrors/understandingemailerrors/default.aspx
但没有解决scheme…
EHLO please-read-policy.mxtoolbox.com 250-mail.domain.com 250-PIPELINING 250-SIZE 250-ETRN 250-STARTTLS 250-AUTH PLAIN LOGIN 250-AUTH=PLAIN LOGIN 250-ENHANCEDSTATUSCODES 250-8BITMIME 250 DSN [140 ms] MAIL FROM: <[email protected]> 250 2.1.0 Ok [546 ms] RCPT TO: <[email protected]> 554 5.7.1 <[email protected]>: Sender address rejected: Access denied [156 ms] QUIT 221 2.0.0 Bye [156 ms]
如果您已经configuration了本教程中所述的postfix,并且您的发件人限制与本教程相同:
smtpd_sender_restrictions = permit_sasl_authenticated, permit_mynetworks, reject
除非您使用AUTH命令进行身份validation,否则您将无法发送,或者您是本教程列表中的mynetworks列表的一部分:
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
这意味着你只能发送表单本地主机,如果你没有SASLauthentication。 以下是smtpd_sender_restrictions的限制列表: http : //www.postfix.org/postconf.5.html#smtpd_sender_restrictions
实质上,如果您希望能够发送邮件,则最终需要permit ,但请注意不要太简单。 您可以search“postfix smtpd_recipient_restrictions示例”来获得一些理智的示例。