<?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/"
	xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule">

<channel>
	<title>wolfg&#039;s Weblog &#187; smtp</title>
	<atom:link href="http://guoyong.org/tag/smtp/feed" rel="self" type="application/rss+xml" />
	<link>http://guoyong.org</link>
	<description>wolfg&#039;s journey with open source, linux, programming, sysadm ...</description>
	<lastBuildDate>Thu, 04 Aug 2011 15:02:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/2.5/cn/</creativeCommons:license>		<item>
		<title>postfix和postgrey问题</title>
		<link>http://guoyong.org/2008/05/13/358</link>
		<comments>http://guoyong.org/2008/05/13/358#comments</comments>
		<pubDate>Tue, 13 May 2008 14:58:21 +0000</pubDate>
		<dc:creator>wolfg</dc:creator>
				<category><![CDATA[SysAdmin]]></category>
		<category><![CDATA[postfix]]></category>
		<category><![CDATA[postgrey]]></category>
		<category><![CDATA[smtp]]></category>

		<guid isPermaLink="false">http://guoyong.org/?p=358</guid>
		<description><![CDATA[公司的邮件服务器收不到外来邮件了，日志里有这样的错误： 554 Service unavailable; Client host [xxx.xxx.xxx.xxx] blocked using relays.ordb.org; ordb.org was shut down on December 18, 2006. Please remove from your mailserver.; 对应main.cf里的配置是这样的： smtpd_client_restrictions = permit_mynetworks, warn_if_reject reject_rbl_client sbl.spamhaus.org, warn_if_reject reject_rbl_client relays.ordb.org, warn_if_reject reject_rbl_client blackholes.easynet.nl, warn_if_reject reject_rbl_client dnsbl.njabl.org 改成只保留smtpd_client_restrictions = permit_mynetworks， 又有新信息出现： postfix/smtpd[16212]: warning: problem talking to server 127.0.0.1:60000: Connection timed out 127.0.0.1:60000是postgrey工作的端口，用ps和netstat 发现postgrey进程还在，但top命令发现它占用了99%的CPU，而且用/etc/init.d/postgrey [...]]]></description>
			<content:encoded><![CDATA[<p>公司的邮件服务器收不到外来邮件了，日志里有这样的错误：</p>
<div class="hl-surround"><div class="hl-main">554 Service unavailable; Client host [xxx.xxx.xxx.xxx] blocked using relays.ordb.org; ordb.org was shut down on December 18, 2006. Please remove from your mailserver.;</div></div>
<p>对应main.cf里的配置是这样的：</p>
<div class="hl-surround"><div class="hl-main">smtpd_client_restrictions = permit_mynetworks, warn_if_reject reject_rbl_client sbl.spamhaus.org, warn_if_reject reject_rbl_client relays.ordb.org, warn_if_reject reject_rbl_client blackholes.easynet.nl, warn_if_reject reject_rbl_client dnsbl.njabl.org</div></div>
<p>改成只保留smtpd_client_restrictions = permit_mynetworks， 又有新信息出现：</p>
<div class="hl-surround"><div class="hl-main">postfix/smtpd[16212]: warning: problem talking to server 127.0.0.1:60000: Connection timed out</div></div>
<p>127.0.0.1:60000是postgrey工作的端口，用ps和netstat 发现postgrey进程还在，但top命令发现它占用了99%的CPU，而且用/etc/init.d/postgrey stop停不掉，只好kill掉，并改postfix里相应的设置，去掉postgrey检查：</p>
<div class="hl-surround"><div class="hl-main">smtpd_recipient_restrictions = reject_unauth_pipelining, permit_mynetworks,permit_sasl_authenticated, reject_non_fqdn_recipient,reject_unauth_destination, check_policy_service inet:127.0.0.1:60000,permit</div></div>
<p>重启postfix，邮件可以收到了。再恢复smtpd_client_restrictions的配置，去掉relays.ordb.org检查，邮件可以收到。顺便搞清楚了warn_if_reject的含义：有它在时并不真正的拒绝邮件。</p>
<p>postgrey的问题还没找到解决办法，不知道为什么会hang在那里，暂时不用它了。</p>
<p>==== 2008-05-14 ====<br />
补充： 将Berkeley DB由原来的4.3升级到4.4以后，postgrey正常了。<br />
搜索到的相关信息：</p>
<p><a href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=441069" title="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=441069" target="_blank">bugs.debian.org/cgi-bin/bugreport.cgi?bug=441069</a></p>
<p><a href="https://bugs.edge.launchpad.net/ubuntu/gutsy/+source/db4.4/+bug/153996" title="https://bugs.edge.launchpad.net/ubuntu/gutsy/+source/db4.4/+bug/153996" target="_blank">bugs.edge.launchpad.net/ubuntu/gutsy/+source/db4.4&#8230;</a></p>
]]></content:encoded>
			<wfw:commentRss>http://guoyong.org/2008/05/13/358/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>升级系统导致Postfix的SMTP认证失败（Cyrus-SASL + MySQL）</title>
		<link>http://guoyong.org/2008/01/29/351</link>
		<comments>http://guoyong.org/2008/01/29/351#comments</comments>
		<pubDate>Mon, 28 Jan 2008 16:38:37 +0000</pubDate>
		<dc:creator>wolfg</dc:creator>
				<category><![CDATA[SysAdmin]]></category>
		<category><![CDATA[postfix]]></category>
		<category><![CDATA[smtp]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://guoyong.org/2008/01/29/351</guid>
		<description><![CDATA[日志里这样的错误信息： warning: SASL authentication problem: unable to open Berkeley db /etc/sasldb2: No such file or directory 最终发现原因：main.cf里smtpd_sasl_path的设置错误，可能是更新修改的。 把smtpd_sasl_path=/etc/postfix/sasl:/usr/lib/sasl2改成smtpd_sasl_path=smtpd后，重启postfix和courier-authdaemon，问题解决。]]></description>
			<content:encoded><![CDATA[<p>日志里这样的错误信息：<br />
warning: SASL authentication problem: unable to open Berkeley db /etc/sasldb2: No such file or directory</p>
<p>最终发现原因：main.cf里smtpd_sasl_path的设置错误，可能是更新修改的。<br />
把smtpd_sasl_path=/etc/postfix/sasl:/usr/lib/sasl2改成smtpd_sasl_path=smtpd后，重启postfix和courier-authdaemon，问题解决。</p>
]]></content:encoded>
			<wfw:commentRss>http://guoyong.org/2008/01/29/351/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

