求助sendmail 邮件服务器高人,用swiftmailer发送邮件到qq邮箱出现的怪异问题
centOS 系统,sendmail邮件服务。
php代码使用swiftmailer 发送邮件给qq邮箱用户。邮件退回,错误如下:
The original message was received at Fri, 29 Jul 2011 10:07:09 +0800 from [211.155.25.66]
----- The following addresses had permanent fatal errors ----- <505957304@qq.com>
(reason: 501 Bad address syntax. http://service.mail.qq.com/cgi-bin/help?subtype=1&&id=20022&&no=1000730)
----- Transcript of session follows ----- ... while talking to mx3.qq.com.:
>>> RCPT To:<505957304@qq.com.cn>
<<< 501 Bad address syntax. http://service.mail.qq.com/cgi-bin/help?subtype=1&&id=20022&&no=1000730
554 5.0.0 Service unavailable
这里有两段错误代码,第一段里面显示的邮箱地址是正确的。但第二段里面,“RCPT To:”部分,qq邮箱末尾被加上了 cn 后缀,变成了 qq.com.cn. 于是出现bad address sytanx错误。
现在不知道是哪里的问题,求解!