分类: BSD
2008-11-04 08:31:25
刚用做的邮件,往163等发信都正常,就是的一直发不过去,提示如下:
Jul 2 09:42:34 mail postfix/smtp[7418]: 52196B833: to=<cujxtm@gmail.com>, =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 550-5.7.1 relay at your service provider instead. Learn more at 550 5.7.19si16901746wfc.6 (in reply to end of DATA command))
试了半天,找到了个解决办法,把postfix的配置文件main.cf里面的mydestination的顺序改一下,改成:
mydestination = localhost, localhost.$mydomain, $myhostname, $mydomain, mail.$mydomain,
重启下postfix,然后再发信就ok了。