- 论坛徽章:
- 2
|
刚用
postfix
做的邮件
服务器
,往163等发信都正常,就是
gmail
的一直发不过去,提示如下:
Jul 2 09:42:34 mail postfix/smtp[7418]: 52196B833: to=,
relay
=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
SMTP
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了。
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/4206/showart_1358837.html |
|