<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>猪窝 &#187; mail</title>
	<atom:link href="http://sdbai.com/blog/tag/mail/feed" rel="self" type="application/rss+xml" />
	<link>http://sdbai.com/blog</link>
	<description>大猪小猪落玉盘</description>
	<lastBuildDate>Wed, 14 Jul 2010 06:51:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>解决邮件编码无法解析的问题</title>
		<link>http://sdbai.com/blog/linux_mail_encoding_quoted_printable_case.html</link>
		<comments>http://sdbai.com/blog/linux_mail_encoding_quoted_printable_case.html#comments</comments>
		<pubDate>Fri, 22 Jan 2010 07:34:56 +0000</pubDate>
		<dc:creator>sdbai</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[小知识]]></category>

		<guid isPermaLink="false">http://sdbai.com/blog/?p=72</guid>
		<description><![CDATA[对于邮件一直是一知半解，从来没好好深入的了解一下邮件服务器的工作原理。 邮件接收后无法查看内容，打开以后都是如下格式： =D0=B3=A1=CD=C6=B9=E3 &#124; =C3=F1=D3=AA &#124; =B9=E6=C4=A3:20-99=C8=CB &#124; 4001-= 6000=D4=AA/=D4=C2&#60;br&#62;=D6=F7=D2=AA=B8=BA=D4=F0=D2=C0=CD=D0=D3=DA=D2=F8=D0= =D0=BC=B6=CA=FD=BE=DD=BF=E2=B5=C4=B2=FA=C6=B7=CF=FA=CA=DB=B9=A4=D7=F7=A3= =AC=CD=D8=D5=B9=D2=D4=D6=D0=B8=DF=B6=CB=C8=CB=C8=BA=CE=AA=C4=BF=B1=EA=BF= 看了一下，html代码和数字显示正常，只是所有的汉字都没有显示，应该是编码的问题。仔细看了一下邮件头 Subject: =?gb2312?B?KFpoYW9waW4uY29tKSDTpsa4ILjf?= =?gb2312?B?vLa/zbunvq3A7S2xsb6pLcH1vaP=?= Date: Fri, 22 Jan 2010 13:24:04 +0800 Importance: High X-Priority: 1 Message-ID: &#60;20100122-13240404-a64@*.com.cn&#62; MIME-Version: 1.0 Content-Type: multipart/mixed; boundary=”&#8211;=6830148FF84F4186BA34_DC66_4CC4_F18C” X-Spam-Status: No &#8212;-=6830148FF84F4186BA34_DC66_4CC4_F18C Content-Type: text/html;charset=”gb2312&#8243; Content-Transfer-Encoding: Quoted-Printable &#60;html&#62;&#60;head&#62;&#60;title&#62;&#60;/title&#62;&#60;META http-equiv=3D”Content-Type” content=3D= “text/html; charset=3DGB2312&#8243;&#62;&#60;/head&#62;&#60;body&#62;&#60;style type=3D”text/css”&#62; td,p,div,span {font-size:12px;color:#000000;font-family:=CB=CE=CC=E5;} &#60;/style&#62; 一打眼上去看不出有什么区别，该有的参数都有了，编码也正常，内容正本样式也正常，比对了一个没有问题的邮件，发现还是有所区别的，Quoted-Printable大小写的问题，别的都是quoted-printable，改了一下，页面刷新没问题了，剩下就好办了，找到具体的解析程序，修改之。include/prev_inc.php里面处理一下$Content_Transfer_Encoding=strtolower($Content_Transfer_Encoding); 具体参考了http://bbs.igenus.org/discuz/viewthread.php?tid=1456 相关资料： Content-Transfer-Encoding: 它说明了对数据所执行的编码方式，客户/MUA将用它对附件进行解码。对于每个附件，可以使用7bit，8bit，binary [...]]]></description>
			<content:encoded><![CDATA[<p>对于邮件一直是一知半解，从来没好好深入的了解一下邮件服务器的工作原理。<br />
邮件接收后无法查看内容，打开以后都是如下格式：</p>
<blockquote><p>
=D0=B3=A1=CD=C6=B9=E3 | =C3=F1=D3=AA | =B9=E6=C4=A3:20-99=C8=CB | 4001-=<br />
6000=D4=AA/=D4=C2&lt;br&gt;=D6=F7=D2=AA=B8=BA=D4=F0=D2=C0=CD=D0=D3=DA=D2=F8=D0=<br />
=D0=BC=B6=CA=FD=BE=DD=BF=E2=B5=C4=B2=FA=C6=B7=CF=FA=CA=DB=B9=A4=D7=F7=A3=<br />
=AC=CD=D8=D5=B9=D2=D4=D6=D0=B8=DF=B6=CB=C8=CB=C8=BA=CE=AA=C4=BF=B1=EA=BF=</p></blockquote>
<p>看了一下，html代码和数字显示正常，只是所有的汉字都没有显示，应该是编码的问题。仔细看了一下邮件头</p>
<blockquote><p>Subject: =?gb2312?B?KFpoYW9waW4uY29tKSDTpsa4ILjf?=<br />
=?gb2312?B?vLa/zbunvq3A7S2xsb6pLcH1vaP=?=<br />
Date: Fri, 22 Jan 2010 13:24:04 +0800<br />
Importance: High<br />
X-Priority: 1<br />
Message-ID: &lt;20100122-13240404-a64@*.com.cn&gt;<br />
MIME-Version: 1.0<br />
Content-Type: multipart/mixed;<br />
boundary=”&#8211;=6830148FF84F4186BA34_DC66_4CC4_F18C”<br />
X-Spam-Status: No</p>
<p>&#8212;-=6830148FF84F4186BA34_DC66_4CC4_F18C<br />
Content-Type: text/html;charset=”gb2312&#8243;<br />
Content-Transfer-Encoding: Quoted-Printable</p>
<p>&lt;html&gt;&lt;head&gt;&lt;title&gt;&lt;/title&gt;&lt;META http-equiv=3D”Content-Type” content=3D=<br />
“text/html; charset=3DGB2312&#8243;&gt;&lt;/head&gt;&lt;body&gt;&lt;style type=3D”text/css”&gt;<br />
td,p,div,span {font-size:12px;color:#000000;font-family:=CB=CE=CC=E5;}<br />
&lt;/style&gt;</p></blockquote>
<p>一打眼上去看不出有什么区别，该有的参数都有了，编码也正常，内容正本样式也正常，比对了一个没有问题的邮件，发现还是有所区别的，Quoted-Printable大小写的问题，别的都是quoted-printable，改了一下，页面刷新没问题了，剩下就好办了，找到具体的解析程序，修改之。include/prev_inc.php里面处理一下$Content_Transfer_Encoding=strtolower($Content_Transfer_Encoding);</p>
<p>具体参考了<a href="http://bbs.igenus.org/discuz/viewthread.php?tid=1456">http://bbs.igenus.org/discuz/viewthread.php?tid=1456</a></p>
<p>相关资料：</p>
<blockquote><p><strong><strong>Content-Transfer-Encoding</strong>: </strong><br />
它说明了对数据所执行的编码方式，客户/MUA将用它对附件进行解码。对于每个附件，可以使用7bit，8bit，binary ，quoted-printable，base64和custom中的一种编码方式。7bit编码<strong>是</strong>用在US ASCII字符集上的常用的一种编码方式。8bit 和binary编码一般不用。对可读的标准文本，如果传输要经过对格式有影响的网关时对其进行保护，可以使用quoted printable 。Base64<strong>是</strong>一种通用方法，在需要决定使用哪一种编码方法时，它提供了一个不用费脑子的选择；它通常用在二进制，非文本数据上。注意，任何非7bit 数据必须用一种模式编码，这样它就可以通过Internet邮件网关。</p></blockquote>
<blockquote></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://sdbai.com/blog/linux_mail_encoding_quoted_printable_case.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Email修改邮件白名单，让特定邮箱一路畅通</title>
		<link>http://sdbai.com/blog/linux_email_whitelist_add.html</link>
		<comments>http://sdbai.com/blog/linux_email_whitelist_add.html#comments</comments>
		<pubDate>Fri, 22 Jan 2010 07:20:11 +0000</pubDate>
		<dc:creator>sdbai</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[小知识]]></category>

		<guid isPermaLink="false">http://sdbai.com/blog/?p=70</guid>
		<description><![CDATA[邮件服务器默认的设置通常都会屏蔽很多招聘网站发过来的邮件，因此对于招聘的邮箱要单独设置一下白名单]]></description>
			<content:encoded><![CDATA[<p>邮件服务器默认的设置通常都会屏蔽很多招聘网站发过来的邮件，因此对于招聘的邮箱要单独设置一下白名单</p>
<blockquote><p>/etc/MailScanner/rules/spam.whitelist.rules<br />
From:           @quickmail.51job.com    yes<br />
From:           @quickjobs.51job.com    yes<br />
From:           @51job.com      yes<br />
From:           @zhaopinmail.com        yes<br />
From:           @support150.zhaopinmail.com     yes<br />
From:           @zhaopin.com.cn yes<br />
From:           211.99.198.250  yes</p></blockquote>
<p>在这里面增加了以后就会彻底不判断spam了，直接通过。 service spamd restart重启一下即可。<br />
可以根据ip、具体地址、地址后缀、*匹配，很灵活。</p>
]]></content:encoded>
			<wfw:commentRss>http://sdbai.com/blog/linux_email_whitelist_add.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>往sina邮箱发不了信件了</title>
		<link>http://sdbai.com/blog/work_mail_sina_error.html</link>
		<comments>http://sdbai.com/blog/work_mail_sina_error.html#comments</comments>
		<pubDate>Wed, 20 Jan 2010 08:43:43 +0000</pubDate>
		<dc:creator>sdbai</dc:creator>
				<category><![CDATA[work]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[mail]]></category>

		<guid isPermaLink="false">http://sdbai.com/blog/?p=50</guid>
		<description><![CDATA[This is the Postfix program at host mail.bomtu.com. I&#8217;m sorry to have to inform you that your message could not be delivered to one or more recipients. It&#8217;s attached below. For further assistance, please send mail to &#60;postmaster&#62; If you do so, please include this problem report. You can delete your own text from the [...]]]></description>
			<content:encoded><![CDATA[<p>This is the Postfix program at host mail.bomtu.com.</p>
<p>I&#8217;m sorry to have to inform you that your message could not be delivered to one or more recipients. It&#8217;s attached below.</p>
<p>For further assistance, please send mail to &lt;postmaster&gt;</p>
<p>If you do so, please include this problem report. You can delete your own text from the attached returned message.</p>
<p>The Postfix program</p>
<p>&lt;<a href="mailto:vst_single@sina.com">vs***e@sina.com</a>&gt;: host freemx2.sinamail.sina.com.cn[218.30.115.106] said:</p>
<p>550 #5.7.1 Your access to submit messages to this e-mail system has been</p>
<p>rejected. (in reply to RCPT TO command)</p>
<p>好像是ip被弄进黑名单了，昨天还好好的，也没乱发什么邮件啊，真奇怪，明天再观察一下。</p>
<p>BTW:</p>
<p>20100121今天同样的附件，同样的内容，同样的邮箱，又能发送了，还是找不到原因。</p>
]]></content:encoded>
			<wfw:commentRss>http://sdbai.com/blog/work_mail_sina_error.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

