<?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; Postfix</title>
	<atom:link href="http://www.xiaojb.com/archives/tag/postfix/feed" rel="self" type="application/rss+xml" />
	<link>http://www.xiaojb.com</link>
	<description>奋斗无止境 爱拼才会赢</description>
	<lastBuildDate>Sun, 16 Oct 2011 14:27:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>unable to open Berkeley db /etc/sasldb2</title>
		<link>http://www.xiaojb.com/archives/mailtech/unable-to-open-berkeley-db.shtml</link>
		<comments>http://www.xiaojb.com/archives/mailtech/unable-to-open-berkeley-db.shtml#comments</comments>
		<pubDate>Sun, 21 Dec 2008 13:47:46 +0000</pubDate>
		<dc:creator>xjb</dc:creator>
				<category><![CDATA[MailTech]]></category>
		<category><![CDATA[Authlib]]></category>
		<category><![CDATA[Cyrus-sasl2]]></category>
		<category><![CDATA[Postfix]]></category>
		<category><![CDATA[smtp]]></category>

		<guid isPermaLink="false">http://www.xiaojb.com/?p=713</guid>
		<description><![CDATA[同事在迁移邮件系统的时候，发现邮件系统在新机器上报告这样的日志： warning: SASL authentication problem: unable to open Berkeley db /etc/sasldb2: No such file or directory 我们使用的authdaemond的认证方式，所以出现这种情况肯定是sasl判断到最后使用了默认的sasldb来验证。由于我好久没看邮件系统，而且这个问题我碰到了多次，在blog上也没有记录，于是重新解决了一遍。思路如下： 1、要判断使用的sasl的版本 我是自己编译的sasl，安装目录是/home/postfix/sasl，使用ldd查看一下postfix使用的是系统的sasl2，还是自己编译的。 [root@squid5 ~]# ldd /home/postfix/sbin/postfix libmysqlclient.so.15 => /lib/libmysqlclient.so.15 (0x00a40000) libm.so.6 => /lib/tls/libm.so.6 (0&#215;00647000) libsasl2.so.2 => /home/postfix/sasl/lib/libsasl2.so.2 (0&#215;00558000) libssl.so.4 => /lib/libssl.so.4 (0x002c8000) libcrypto.so.4 => /lib/libcrypto.so.4 (0x001dc000) libpcre.so.0 => /lib/libpcre.so.0 (0x001b8000) libdb-4.2.so => /lib/tls/i686/libdb-4.2.so (0&#215;00717000) libnsl.so.1 => /lib/libnsl.so.1 (0x006d3000) [...]]]></description>
			<content:encoded><![CDATA[<p>同事在迁移邮件系统的时候，发现邮件系统在新机器上报告这样的日志：<br />
warning: SASL authentication problem: unable to open Berkeley db /etc/sasldb2: No such file or directory</p>
<p>我们使用的authdaemond的认证方式，所以出现这种情况肯定是sasl判断到最后使用了默认的sasldb来验证。由于我好久没看邮件系统，而且这个问题我碰到了多次，在blog上也没有记录，于是重新解决了一遍。思路如下：</p>
<p>1、要判断使用的sasl的版本<br />
我是自己编译的sasl，安装目录是/home/postfix/sasl，使用ldd查看一下postfix使用的是系统的sasl2，还是自己编译的。<br />
[root@squid5 ~]# ldd /home/postfix/sbin/postfix<br />
        libmysqlclient.so.15 => /lib/libmysqlclient.so.15 (0x00a40000)<br />
        libm.so.6 => /lib/tls/libm.so.6 (0&#215;00647000)<br />
        libsasl2.so.2 => /home/postfix/sasl/lib/libsasl2.so.2 (0&#215;00558000)<br />
        libssl.so.4 => /lib/libssl.so.4 (0x002c8000)<br />
        libcrypto.so.4 => /lib/libcrypto.so.4 (0x001dc000)<br />
        libpcre.so.0 => /lib/libpcre.so.0 (0x001b8000)<br />
        libdb-4.2.so => /lib/tls/i686/libdb-4.2.so (0&#215;00717000)<br />
        libnsl.so.1 => /lib/libnsl.so.1 (0x006d3000)<br />
        libresolv.so.2 => /lib/libresolv.so.2 (0x006be000)<br />
        libc.so.6 => /lib/tls/libc.so.6 (0x002fc000)<br />
        libcrypt.so.1 => /lib/libcrypt.so.1 (0x0068e000)<br />
        libdl.so.2 => /lib/libdl.so.2 (0&#215;00641000)<br />
        /lib/ld-linux.so.2 (0x004f9000)<br />
        libgssapi_krb5.so.2 => /usr/lib/libgssapi_krb5.so.2 (0x007fc000)<br />
        libkrb5.so.3 => /usr/lib/libkrb5.so.3 (0&#215;00835000)<br />
        libcom_err.so.2 => /lib/libcom_err.so.2 (0x0066c000)<br />
        libk5crypto.so.3 => /usr/lib/libk5crypto.so.3 (0&#215;00812000)<br />
        libz.so.1 => /usr/lib/libz.so.1 (0x0067c000)<br />
        libpthread.so.0 => /lib/tls/libpthread.so.0 (0x006fd000)<br />
2、查看sasl的配置smtpd.conf<br />
系统的路径应该是/usr/lib/sasl2/smtpd.conf<br />
内容应该如下：<br />
pwcheck_method: authdaemond<br />
mech_list:PLAIN LOGIN<br />
使用了authdaemond应该还可以指定socket文件的位置，不过我忘了。<br />
如果自己编译的，这个文件的位置应该是 ~/lib/sasl2</p>
<p>3、authdaemond的socket文件的权限<br />
我使用的是<a href="http://sourceforge.net/projects/courier">Courier-Authlib</a>，socket文件默认的路径应该是~/var/socket,所有要认证的程序的执行用户，都要有访问这个socket的权限。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xiaojb.com/archives/mailtech/unable-to-open-berkeley-db.shtml/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[postfix] 查看某信箱发信的详细情况</title>
		<link>http://www.xiaojb.com/archives/mailtech/postfix-user-deliver-detail.shtml</link>
		<comments>http://www.xiaojb.com/archives/mailtech/postfix-user-deliver-detail.shtml#comments</comments>
		<pubDate>Wed, 18 Jul 2007 03:13:22 +0000</pubDate>
		<dc:creator>xjb</dc:creator>
				<category><![CDATA[MailTech]]></category>
		<category><![CDATA[Postfix]]></category>
		<category><![CDATA[信箱]]></category>

		<guid isPermaLink="false">http://www.xiaojb.com/archives/mailtech/postfix-user-deliver-detail.shtml</guid>
		<description><![CDATA[grep &#8220;from=&#8221; /var/log/maillog &#124; cut -d &#8216;:&#8217; -f4&#124;while read LINE;do echo;grep $LINE /var/log/maillog;done 如果查询某个信箱发信的详细情况，可以使用这个简陋的脚本。]]></description>
			<content:encoded><![CDATA[<p><coolcode linenum="off"><br />
grep &#8220;from=<user@domain.com>&#8221; /var/log/maillog | cut -d &#8216;:&#8217; -f4|while read LINE;do echo;grep $LINE /var/log/maillog;done<br />
</coolcode></p>
<p>如果查询某个信箱发信的详细情况，可以使用这个简陋的脚本。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xiaojb.com/archives/mailtech/postfix-user-deliver-detail.shtml/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Postfix权威指南(Postfix: The Definitive Guide)中文PDF版下载</title>
		<link>http://www.xiaojb.com/archives/mailtech/postfix-guide.shtml</link>
		<comments>http://www.xiaojb.com/archives/mailtech/postfix-guide.shtml#comments</comments>
		<pubDate>Tue, 05 Jun 2007 03:53:05 +0000</pubDate>
		<dc:creator>xjb</dc:creator>
				<category><![CDATA[MailTech]]></category>
		<category><![CDATA[Postfix]]></category>

		<guid isPermaLink="false">http://www.xiaojb.com/archives/mailtech/postfix-guide.shtml</guid>
		<description><![CDATA[Postfix权威指南中文PDF版下载 还没看呢，先share给大家 如何编译、安装Postfix？如何用Postfix架设一台简单的邮件服务器？如何架设网域邮件网关？如何架设备用服务器？DNS与邮件系统的关系为何？mbox与maildir这两种邮箱格式有何不同？如何用同一台机器架设多个网域的邮件服务器？如何让Postfix使用MySQL或LDAP数据库里的账户信息而不使用系统的/etc/passwd密码文件？Postfix如何透过LMTP投递邮件给Cyrus IMAP server？如何使用TLS来保密通信内容？Postfix如何搭配Majordomo或Mailman之类的邮件列表管理程序？如何使用SASL让出差的同事也能使用办公室的邮件服务器来寄信？如何让Postfix预先挡掉部分垃圾邮件？Postfix如何与外部的过滤程序接轨来合作打击垃圾邮件？如果你曾经苦思过上述的某个问题，这本书就是你要的。 【目录信息】 序. 前言 第一章简介 Posftix的起源与设计理念 E-mail与Internet Postnx的角色 Postfix的安全性 如何取得Postfix 第二章基本概念 Unix的概念 E-mail的概念 第三章Postfix的结构 Postfix的组件 邮件如何进入Postfix系统 Postfix的队列管理器 投递操作 实际追踪Postfix的邮件处理流程 第四章基本的配置与管理 第一次启动Posttfix 配置文件]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.xiaojb.com/upload/postfix.rar">Postfix权威指南中文PDF版下载</a></p>
<p>还没看呢，先share给大家<br />
<coolcode><br />
如何编译、安装Postfix？如何用Postfix架设一台简单的邮件服务器？如何架设网域邮件网关？如何架设备用服务器？DNS与邮件系统的关系为何？mbox与maildir这两种邮箱格式有何不同？如何用同一台机器架设多个网域的邮件服务器？如何让Postfix使用MySQL或LDAP数据库里的账户信息而不使用系统的/etc/passwd密码文件？Postfix如何透过LMTP投递邮件给Cyrus IMAP server？如何使用TLS来保密通信内容？Postfix如何搭配Majordomo或Mailman之类的邮件列表管理程序？如何使用SASL让出差的同事也能使用办公室的邮件服务器来寄信？如何让Postfix预先挡掉部分垃圾邮件？Postfix如何与外部的过滤程序接轨来合作打击垃圾邮件？如果你曾经苦思过上述的某个问题，这本书就是你要的。<br />
【目录信息】<br />
序.<br />
前言<br />
第一章简介<br />
Posftix的起源与设计理念<br />
E-mail与Internet<br />
Postnx的角色<br />
Postfix的安全性<br />
如何取得Postfix<br />
第二章基本概念<br />
Unix的概念<br />
E-mail的概念<br />
第三章Postfix的结构<br />
Postfix的组件<br />
邮件如何进入Postfix系统<br />
Postfix的队列管理器<br />
投递操作<br />
实际追踪Postfix的邮件处理流程<br />
第四章基本的配置与管理<br />
第一次启动Posttfix<br />
配置文件<br />
<< 查看详细目录<br />
【前言】<br />
已经安装了sendmail的人不必失望，因为Postfix也兼容于sendmail。在换成Postfix之后，原本针对sendmail而写的应用程序或脚本同样可继续使用。.<br />
本书宗旨在于弥补在线说明的不足。虽然在线文件提供了所有参数的说明与语法，但是却没示范如何完成特定的工作，也没解释隐藏在那些参数之后的运作理念。作者Kyle D. Dent在这本书解释了Postfix的组织结构与设计理念，并示范如何设定Postfix来担任特殊工作。Postfix的祖师爷，也就是大名鼎鼎的网络安全专家—— Wietse Venema，他全程参与了本书的审阅工作。.. 如何编译、安装Postfix？如何用Postfix架设一台简单的邮件服务器？如何架设网域...<br />
【序言】<br />
“所有程序员都是理想主义者。”大约三十年前，Frederick P．Brooks，Jr.写下了这么一句至理名言(注1)，而Postfix邮件系统刚好就是最佳例证。Postfix起源于我在纽约州IBM Research的网络安全部门的一个半年期的项目。虽然半年的时光确实足以让我换掉自己工作站上的邮件系统，但是还不足以建构出一套通用的完整邮件系统。在接下来的几年，一组合作无间的专家在测试这套软件时，又为它添加了许多程序代码。五年之后，当我决定将以通用公共许可证(GPL)来发表 Postfix时，它的规模——程序量与功能性，已经是初期版本的两倍了，而且研发进程比以往更为活跃。. Postfix的主要目标之一是使其具有“...<br />
</coolcode linenum="off"></p>
]]></content:encoded>
			<wfw:commentRss>http://www.xiaojb.com/archives/mailtech/postfix-guide.shtml/feed</wfw:commentRss>
		<slash:comments>53</slash:comments>
		</item>
		<item>
		<title>Protected: Jianbin Xiao&#8217;s RESUME</title>
		<link>http://www.xiaojb.com/xjb</link>
		<comments>http://www.xiaojb.com/xjb#comments</comments>
		<pubDate>Mon, 04 Jun 2007 15:10:55 +0000</pubDate>
		<dc:creator>xjb</dc:creator>
				<category><![CDATA[有一说一]]></category>
		<category><![CDATA[肖建彬]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Postfix]]></category>
		<category><![CDATA[SEO]]></category>

		<guid isPermaLink="false">http://www.xiaojb.com/xjb</guid>
		<description><![CDATA[There is no excerpt because this is a protected post.]]></description>
			<content:encoded><![CDATA[<form action="http://www.xiaojb.com/wp-pass.php" method="post">
<p>This post is password protected. To view it please enter your password below:</p>
<p><label for="pwbox-545">Password:<br />
<input name="post_password" id="pwbox-545" type="password" size="20" /></label><br />
<input type="submit" name="Submit" value="Submit" /></p></form>
]]></content:encoded>
			<wfw:commentRss>http://www.xiaojb.com/xjb/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>12日晚遭遇的调试postfix/smtpd的问题</title>
		<link>http://www.xiaojb.com/archives/mailtech/debugsmtpd.shtml</link>
		<comments>http://www.xiaojb.com/archives/mailtech/debugsmtpd.shtml#comments</comments>
		<pubDate>Mon, 12 Dec 2005 16:11:26 +0000</pubDate>
		<dc:creator>xjb</dc:creator>
				<category><![CDATA[MailTech]]></category>
		<category><![CDATA[Postfix]]></category>

		<guid isPermaLink="false">http://www.xiaojb.com/wp/?p=221</guid>
		<description><![CDATA[今天有闲心升级了一下pmail.xiaojb.com的postfix，结果升级后发现smtpd总是异常退出，log中的记录是： warning: process /home/postfix/libexec/smtpd pid 15753 exit status 127 修改master.cf,smtpd后边加上-v,继续调试依然看不出问题所在。 没有办法了，只好用strace。 postfix的smtpd是由master启动的，25端口没有请求，master是不会启动smtpd的，但是启动后很快会异常退出 最后使用的办法是 postfix stop postfix start telnet localhost 25 马上在另一个窗口运行 strace -p `ps -ax&#124;grep smtpd &#124; grep -v grep&#124;awk &#8216;{print $1}&#8217;` 最后得到了这样的结果 writev(2, [{"smtpd", 5}, {": ", 2}, {"relocation error", 16}, {": ", 2}, {"smtpd", 5}, {": ", 2}, {"undefined symbol: sasl_version_i"..., 35}, {"", [...]]]></description>
			<content:encoded><![CDATA[<p>今天有闲心升级了一下pmail.xiaojb.com的postfix，结果升级后发现smtpd总是异常退出，log中的记录是：<br />
 warning: process /home/postfix/libexec/smtpd pid 15753 exit status 127</p>
<p>修改master.cf,smtpd后边加上-v,继续调试依然看不出问题所在。<br />
没有办法了，只好用strace。</p>
<p>postfix的smtpd是由master启动的，25端口没有请求，master是不会启动smtpd的，但是启动后很快会异常退出<br />
最后使用的办法是<br />
postfix stop<br />
postfix start<br />
telnet localhost 25<br />
马上在另一个窗口运行<br />
strace -p `ps -ax|grep smtpd | grep -v grep|awk &#8216;{print $1}&#8217;`</p>
<p>最后得到了这样的结果<br />
writev(2, [{"smtpd", 5}, {": ", 2}, {"relocation error", 16}, {": ", 2}, {"smtpd", 5}, {": ", 2}, {"undefined symbol: sasl_version_i"..., 35}, {"", 0}, {"", 0}, {"\n", 1}], 10) = 68</p>
<p>原来是sasl库的问题<br />
ldd /home/postfix/libexec/smtpd,发现使用的sasl2的链接库是系统默认的，而我编译postfix的时候是自己编译的cygrus-sasl2,只有重新编译postfix。<br />
make的时候加上这样的环境变量<br />
export LD_RUN_PATH=/home/postfix/sasl/lib:/usr/lib/mysql:/home/postfix/authlib/lib/courier-authlib</p>
<p>重新编译调试，一切OK了。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xiaojb.com/archives/mailtech/debugsmtpd.shtml/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>用Postfix作Firebird BBS/KBS BBS的MTA</title>
		<link>http://www.xiaojb.com/archives/mailtech/postfixfirebird.shtml</link>
		<comments>http://www.xiaojb.com/archives/mailtech/postfixfirebird.shtml#comments</comments>
		<pubDate>Fri, 25 Nov 2005 09:41:50 +0000</pubDate>
		<dc:creator>xjb</dc:creator>
				<category><![CDATA[MailTech]]></category>
		<category><![CDATA[Firebird]]></category>
		<category><![CDATA[Postfix]]></category>

		<guid isPermaLink="false">http://www.xiaojb.com/wp/?p=200</guid>
		<description><![CDATA[以往网上流传的firebird bbs邮件配置的文档都是针对sendmail的，本文档是针对postfix，配置方法比sendmail简单多了。 修改master.cf bbsmail unix &#8211; n n &#8211; &#8211; pipe flags=FRh. user=bbs:bbs argv=/home/bbs/bin/bbsmail ${user} transport中加入 bbs.bjsing.net bbsmail 然后运行postmap transport main.cf中加入 relay_domains = bbs.bjsing.net 然后运行postfix reload 这样就可以了，调试的时候不要忘了看/var/log/maillog]]></description>
			<content:encoded><![CDATA[<p>以往网上流传的firebird bbs邮件配置的文档都是针对sendmail的，本文档是针对postfix，配置方法比sendmail简单多了。</p>
<p>修改master.cf<br />
bbsmail   unix  &#8211;       n       n       &#8211;       &#8211;       pipe<br />
  flags=FRh. user=bbs:bbs argv=/home/bbs/bin/bbsmail ${user}</p>
<p>transport中加入<br />
bbs.bjsing.net      bbsmail</p>
<p>然后运行postmap transport</p>
<p>main.cf中加入</p>
<p>relay_domains = bbs.bjsing.net</p>
<p>然后运行postfix reload</p>
<p>这样就可以了，调试的时候不要忘了看/var/log/maillog</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xiaojb.com/archives/mailtech/postfixfirebird.shtml/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Postfix: howto disable lookup the SMTP client hostname?</title>
		<link>http://www.xiaojb.com/archives/mailtech/postfix_disable_lookup.shtml</link>
		<comments>http://www.xiaojb.com/archives/mailtech/postfix_disable_lookup.shtml#comments</comments>
		<pubDate>Thu, 24 Nov 2005 16:03:01 +0000</pubDate>
		<dc:creator>xjb</dc:creator>
				<category><![CDATA[MailTech]]></category>
		<category><![CDATA[Postfix]]></category>

		<guid isPermaLink="false">http://www.xiaojb.com/wp/?p=199</guid>
		<description><![CDATA[/etc/postfix/main.cf smtpd_peername_lookup = no Available in Postfix version 2.3 and later: smtpd_peername_lookup (yes) Attempt to look up the SMTP client hostname, and verify that the name matches the client IP address. http://www.postfix.org/postconf.5.html#smtpd_peername_lookup]]></description>
			<content:encoded><![CDATA[<p>/etc/postfix/main.cf</p>
<p>smtpd_peername_lookup = no</p>
<p>       Available in Postfix version 2.3 and later:</p>
<p>       smtpd_peername_lookup (yes)<br />
              Attempt to look up the SMTP  client  hostname,  and<br />
              verify that the name matches the client IP address.</p>
<p><a href="http://www.postfix.org/postconf.5.html#smtpd_peername_lookup">http://www.postfix.org/postconf.5.html#smtpd_peername_lookup</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.xiaojb.com/archives/mailtech/postfix_disable_lookup.shtml/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>调试maildrop的方法</title>
		<link>http://www.xiaojb.com/archives/mailtech/how_to_debug_ma.shtml</link>
		<comments>http://www.xiaojb.com/archives/mailtech/how_to_debug_ma.shtml#comments</comments>
		<pubDate>Thu, 24 Nov 2005 01:47:45 +0000</pubDate>
		<dc:creator>xjb</dc:creator>
				<category><![CDATA[MailTech]]></category>
		<category><![CDATA[Maildrop]]></category>
		<category><![CDATA[Postfix]]></category>

		<guid isPermaLink="false">http://www.xiaojb.com/wp/?p=197</guid>
		<description><![CDATA[maildrop是目前较流行的mda,是courier的组件之一。 /etc/maildroprc logfile &#8220;/var/log/maildrop.log&#8221; VERBOSE=&#8221;4&#8243;]]></description>
			<content:encoded><![CDATA[<p>maildrop是目前较流行的mda,是courier的组件之一。</p>
<p>/etc/maildroprc</p>
<p>logfile &#8220;/var/log/maildrop.log&#8221;<br />
VERBOSE=&#8221;4&#8243;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xiaojb.com/archives/mailtech/how_to_debug_ma.shtml/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Data timeout from MS Exchange</title>
		<link>http://www.xiaojb.com/archives/mailtech/data_timeout_fr.shtml</link>
		<comments>http://www.xiaojb.com/archives/mailtech/data_timeout_fr.shtml#comments</comments>
		<pubDate>Mon, 21 Nov 2005 01:40:50 +0000</pubDate>
		<dc:creator>xjb</dc:creator>
				<category><![CDATA[MailTech]]></category>
		<category><![CDATA[Postfix]]></category>

		<guid isPermaLink="false">http://www.xiaojb.com/wp/?p=194</guid>
		<description><![CDATA[question: Morten Albrigtsen wrote: I have a MS Exchange server on an internal network, which is supposed to relay all mail to my postfix server so that mail doesnt get stuck inside the building, but is accesible from the internet. The exchange server sends the emails to the postfix server, but I suspect it sends [...]]]></description>
			<content:encoded><![CDATA[<p>question:<br />
Morten Albrigtsen wrote:</p>
<pre>
I have a MS Exchange server on an internal network, which is supposed
to relay all mail to my postfix server so that mail doesnt get stuck
inside the building, but is accesible from the internet.

The exchange server sends the emails to the postfix server, but I
suspect it sends some sort of crazy format that doesnt properly end
the DATA transfer, log:

 &gt; unknown[192.168.20.2]: 220 xxx.xxxx.xxx ESMTP Postfix (Trustix)
 unknown[192.168.20.2]: 250-xxxxx.xxxxx.xxxxx
 &gt; unknown[192.168.20.2]: 250-PIPELINING
 &gt; unknown[192.168.20.2]: 250-SIZE 10240000
 &gt; unknown[192.168.20.2]: 250-VRFY
 &gt; unknown[192.168.20.2]: 250-ETRN
 &gt; unknown[192.168.20.2]: 250-STARTTLS
 &gt; unknown[192.168.20.2]: 250 8BITMIME
 unknown[192.168.20.2]: 220 Ready to start TLS
 SIZE=3116
 &gt; unknown[192.168.20.2]: 250 Ok

 &gt; unknown[192.168.20.2]: 250 Ok
 unknown[192.168.20.2]: 354 End data with .
 &gt; unknown[192.168.20.2]: 421 xxx.xxxxxxxx.xx Error: timeout exceeded

And:
: timeout after DATA from unknown[192.168.20.2]

I have googled now for about 2 days, trying a lot of crazy things but
things just dont seem to work.

This has been driving me crazy, anyone who have experienced anything
like it? Or have a clever tip?
</pre>
<p>The answers involve:</p>
<pre>
This is a standard problem with servers behind PPP over Ethernet.
Try a smaller MTU on your server ethernet interface, or configure
your router to spoof a smaller MTU in the replies from your server.

The client has a broken PIPELINING implementation. Turn off PIPELINING
on the Postfix side (requires Postfix 2.3 smtpd_discard_ehlo_keywords
or smtpd_discard_ehlo_keyword_address_maps feature).

These answers are archived world-wide.
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.xiaojb.com/archives/mailtech/data_timeout_fr.shtml/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Howto Disable 8BITMIME?</title>
		<link>http://www.xiaojb.com/archives/mailtech/howto_disable_8.shtml</link>
		<comments>http://www.xiaojb.com/archives/mailtech/howto_disable_8.shtml#comments</comments>
		<pubDate>Sat, 22 Oct 2005 14:10:14 +0000</pubDate>
		<dc:creator>xjb</dc:creator>
				<category><![CDATA[MailTech]]></category>
		<category><![CDATA[Postfix]]></category>

		<guid isPermaLink="false">http://www.xiaojb.com/wp/?p=177</guid>
		<description><![CDATA[起因(Eric Merrill )： Is there a way to disable 8BITMIME smtp relaying. Basically Exchange servers (4-5.5) advertise that they accept 8BITMIME encoding over SMTP relay, but reject such messages (This is admitted by MS, and they have a tech note on how to &#8216;fix&#8217; (stop it from advertising 8bit) exchange), but I dont have access [...]]]></description>
			<content:encoded><![CDATA[<p>起因(Eric Merrill )：<br />
Is there a way to disable 8BITMIME smtp relaying. Basically Exchange<br />
servers (4-5.5) advertise that they accept 8BITMIME encoding over<br />
SMTP relay, but reject such messages (This is admitted by MS, and<br />
they have a tech note on how to &#8216;fix&#8217; (stop it from advertising 8bit)<br />
exchange), but I dont have access to the destination server.</p>
<p>Basically my server is setup to be an authenticated SMTP relay, with<br />
a mail client connecting directly to it, then the server relays the<br />
message. Is there a way to stop my server from using 8BITMIME encoding?</p>
<p>Do I lose anything by disabling this (if possible)?</p>
<p>解决办法(Wietse Venema)：<br />
Then tell Postfix not to SEND 8BITMIME to that machine.</p>
<p>/etc/postfix/main.cf:<br />
   transport_maps = hash:/etc/postfix/transport</p>
<p>/etc/postfix/transport:<br />
   example.com         dumb:</p>
<p>/etc/postfix/master.cf:<br />
   dumb      unix  &#8211;       &#8211;       n       &#8211;       &#8211;       smtp<br />
       -o smtp_never_send_ehlo=yes</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xiaojb.com/archives/mailtech/howto_disable_8.shtml/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

