刚用
[url=javascript:;]postfix[/url]
做的邮件
[url=javascript:;]服务器[/url]
,往163等发信都正常,就是
[url=javascript:;]gmail[/url]
的一直发不过去,提示如下:
Jul 2 09:42:34 mail postfix/smtp[7418]: 52196B833: to=,
[url=javascript:;]relay[/url]
=gmail-smtp-in.l.google.com[209.85.201.27]:25, delay=21, delays=0.08/0/13/7.4, dsn=5.7.1, status=bounced (host gmail-smtp-in.l.google.com[209.85.201.27] said: 550-5.7.1 [218.28.54.250] The IP you’re using to send mail is not authorized 550-5.7.1 to send email directly to our servers. Please use the
[url=javascript:;]SMTP[/url]
550-5.7.1 relay at your service provider instead. Learn more at 550 5.7.1
http://mail.google.com/support/bin/answer.py?answer=10336
9si16901746wfc.6 (in reply to end of DATA command))
试了半天,找到了个解决办法,把postfix的配置文件main.cf里面的mydestination的顺序改一下,改成:
mydestination = localhost, localhost.$mydomain, $myhostname, $mydomain, mail.$mydomain,
www.$mydomain
重启下postfix,然后再发信就ok了。
转载请注明:苏demo的别样人生 » postfix下发送不到gmail邮箱的解决办法