腾讯帮助中心那个链接说的不是很清楚吗,邮件内容被当成垃圾邮件了,直接拒收。
另外不知道为什么把 mydomain 设成 ustc.edu.cn,应该设成自己的域名 (不过这个无所谓了)。
--
-- 来自USTC LUG
请使用gmail订阅,不要灌水。
更多信息more info:http://groups.google.com/group/ustc_lug?hl=en?hl=en
---
You received this message because you are subscribed to the Google Groups "USTC_LUG" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ustc_lug+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
> Mar 15 08:19:15 cjcx postfix/cleanup[7662]: B826F5422D9: message-id=<20140315001915.B826F...@freeshell.ustc.edu.cn>
> Mar 15 08:19:15 cjcx postfix/qmgr[4796]: B826F5422D9: from=<www-...@ustc.edu.cn>, size=3156, nrcpt=1 (queue active)
> Mar 15 08:19:16 cjcx postfix/smtp[7664]: B826F5422D9: to=<xxxxxxxxx@qq.com>, relay=mx3.qq.com[182.254.3.61]:25, delay=0.82, delays=0.08/0.01/0.14/0.6, dsn=5.0.0, status=bounced (host mx3.qq.com[182.254.3.61] said: 550 Mail content denied. http://service.mail.qq.com/cgi-bin/help?subtype=1&&id=20022&&no=1000726 (in reply to end of DATA command))
> Mar 15 08:19:16 cjcx postfix/cleanup[7662]: 8ADDC5422DA: message-id=<20140315001916.8ADDC...@freeshell.ustc.edu.cn>
> Mar 15 08:19:16 cjcx postfix/bounce[7665]: B826F5422D9: sender non-delivery notification: 8ADDC5422DA
> Mar 15 08:19:16 cjcx postfix/qmgr[4796]: 8ADDC5422DA: from=<>, size=5187, nrcpt=1 (queue active)
> Mar 15 08:19:16 cjcx postfix/qmgr[4796]: B826F5422D9: removed
> Mar 15 08:19:16 cjcx postfix/local[7666]: 8ADDC5422DA: to=<www-...@ustc.edu.cn>, relay=local, delay=0.09, delays=0.04/0.01/0/0.04, dsn=2.0.0, status=sent (delivered to command: procmail -a "$EXTENSION")
> Mar 15 08:19:16 cjcx postfix/qmgr[4796]: 8ADDC5422DA: removed
> Mar 15 08:20:01 cjcx postfix/pickup[7514]: 526315422D9: uid=105 from=<smmsp>
> Mar 15 08:20:01 cjcx postfix/cleanup[7662]: 526315422D9: message-id=<20140315002001.52631...@freeshell.ustc.edu.cn>
> Mar 15 08:20:01 cjcx postfix/qmgr[4796]: 526315422D9: from=<sm...@ustc.edu.cn>, size=657, nrcpt=1 (queue active)
> Mar 15 08:20:01 cjcx postfix/local[7666]: 526315422D9: to=<ro...@ustc.edu.cn>, orig_to=<root>, relay=local, delay=0.15, delays=0.09/0/0/0.06, dsn=2.0.0, status=sent (delivered to command: procmail -a "$EXTENSION")
> Mar 15 08:20:01 cjcx postfix/qmgr[4796]: 526315422D9: removed
My qustion is:1. how to make all reply to right: The reply to is set in header as they are in a mail function:// To send HTML mail, the Content-type header must be set
$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type: text/html; charset=UTF-8" . "\r\n";
$headers .= "To: ".$to_name."<".$to.">"."\r\n";
$headers .= "From: cjcx<cj...@freeshell.ustc.edu.cn>"."\r\n";
$headers .= "Reply-To: ".$from_name."<".$from.">"."\r\n";
$headers .= "X-Mailer: PHP/".phpversion();2. how to solve the 550 problem when mail to qq?
如果要保证邮件收到,建议申请一个第三方邮箱,比如 Gmail,用 smtp 发信。如果是自己的域名,也可以用腾讯企业邮箱。
You received this message because you are subscribed to a topic in the Google Groups "USTC_LUG" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ustc_lug/jjIYa8t7cOE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ustc_lug+u...@googlegroups.com.
的确, 现在配置了relay, 解决了qq认为垃圾邮件的问题. 但是第一个问题还是没搞定, 有时回复地址是对的, 有时回复地址又不对. 看来写到header不太保险?
--
这事到 BBS 的 ustcnet 板上反映啊。
You received this message because you are subscribed to the Google Groups "USTC_LUG" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ustc_lug+u...@googlegroups.com.
--
Foxmail里面看到了, 好像是编码问题?因为我设置的回复格式是: 张山<x...@xxx.xxx>结果在头里显示乱码:Reply-To: 鏂潶鍥?x...@xxx.xxx>
那是你的邮件没使用 UTF8 格式编码导致的,你用科大邮箱给 Gmail 发个中文邮件,show original,看人家是怎么编码的,跟你发的邮件的 original 比较一下。
You received this message because you are subscribed to the Google Groups "USTC_LUG" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ustc_lug+u...@googlegroups.com.
From: Zhang ChengDate: 2014-03-15 18:11To: USTC LUGSubject: Re: Re: [USTC-LUG] PostFix Mail to QQ denied
--
好像 header的charset=utf8只是对body, 而不是对header本身? 昨天出现subject乱码时看到网上的说法.
话说,如果用 php 的话,可以用 phpmailer 库。php 默认的 mail 函数是比较底层的。
如果你对自己实现邮件协议感兴趣,可以看一篇文章 How samba was written,不仅要看协议文本,还要与已有的实现做比较,发现和理解一些不成文的规矩。
https://www.samba.org/ftp/tridge/misc/french_cafe.txt
以前主题汉字是乱码, 用了$subject = '=?UTF-8?B?'.base64_encode($subject).'?=';解决, 我再试试同样的办法能不能解决...
From: Zhang ChengDate: 2014-03-15 18:27To: USTC LUGSubject: Re: Re: [USTC-LUG] PostFix Mail to QQ denied
--
话说,如果用 php 的话,可以用 phpmailer 库。php 默认的 mail 函数是比较底层的。
如果你对自己实现邮件协议感兴趣,可以看一篇文章 How samba was written,不仅要看协议文本,还要与已有的实现做比较,发现和理解一些不成文的规矩。
https://www.samba.org/ftp/tridge/misc/french_cafe.txt