如何configurationPostfix客户端中继到Exchange 2010服务器

我越来越

  (交付暂时中止:SASLauthentication失败;服务器myserver.com [xxx.xxx.xxx.x]表示:535 5.7.3authentication不成功) 

当我尝试将邮件从Debian Lenny框中的Postfix 2.5.5-1.1中继到Exchange 2010。

我想我尝试了所有可能的组合,但是我肯定错过了一些东西。 这里是main.cf的相关部分:

  broken_sasl_auth_clients =是
 smtp_sasl_auth_enable =是
 smtp_sasl_security_options = noanonymous
 smtp_sasl_password_maps = hash:/ etc / postfix / sasl_passwd
 smtp_pix_workarounds =
 smtp_sasl_type = cyrus
 smtp_always_send_ehlo =是
 relayhost = myserver.com

我安装了libsasl2-modules。 有谁成功地在Postfix和Exchange之间转发邮件? 哦,我已经仔细检查了密码是否正确。

Exchange服务器将提供GSSAPI(Kerberos),但似乎向Postfix提供身份validation服务的Cyrus SASL未configuration为处理GSSAPI。

man 5 postconf | less + / ^ smtp_sasl_mechanism_filter

这将告诉你你需要设置smtp_sasl_mechanism_filter为了得到这个正确的身份validation。

看来,他们已经打破了他们的AUTH LOGIN实施。 我也遇到了这个不幸的情况。 有我发现的:

在smtp对话中,当postfix尝试执行login身份validation时:

250 OK AUTH LOGIN 334 VXNlcm5hbWU6 

有一个\ 0(二进制零)在用户名:string,我想不应该在那里,无论如何通过添加\ 0(二进制零)到用户名和密码的末尾之前base64他们和发送交换,我可以成功login,但是如何告诉postfix在login名和密码末尾附加\ 0我不知道。

 # echo -e 'username\0' | base64 abcdefg # echo -e 'password\0' | base64 hijklmno 250 OK AUTH LOGIN 334 VXNlcm5hbWU6 abcdefg 334 UGFzc3dvcmQ6 hijklmno 235 2.7.0 Authentication successful.