免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1954 | 回复: 2
打印 上一主题 下一主题

[Mail] postfix+sasl不能通过认证的问题!!请教! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-10-24 11:42 |只看该作者 |倒序浏览
软件:redhat 9.0
         postfix 2.2.5
         cyrus-sasl-2.1.21
         berklerydb(系统带)

编译:cyrus-sasl

./configure --enable-cmulocal=no --enable-sample=yes --disable-dependency-tracking --enable-static=
no --enable-shared=yes --enable-fast-install=yes --enable-libtool-lock --enable-staticdlopen=no --e
nable-java=no --enable-alwaystrue=no --enable-checkapop=yes --enable-cram=no --enable-digest=no --e
nable-otp=no --enable-srp=no --enable-srp-setpass=no --enable-krb4=no --enable-gssapi=no --enable-g
ss_mutexes=no --enable-plain=yes --enable-anon=no --enable-login=yes --enable-ntlm=no --enable-pass
dss=no --enable-sql=no --enable-ldapdb=no --enable-macos-framework --with-dbpath=/etc/sasldb2 --wit
h-ipctype=unix
make
make install

postfix

make tidy
make makefiles CCARGS="-DUSE_SASL_AUTH -I/usr/local/include/sasl"  AUXLIBS="-L/usr/local/lib -lsasl2"
make
make install

sasldblistusers2结果

baoming@qmail.zmdns.com: userPassword
cyrus@qmail.zmdns.com: userPassword

/etc/sasldb2权限

-rw-r-----    1 cyrus    postfix     12288 Oct 24 10:18 sasldb2

/usr/lib/sasl2/smtpd.conf

pwcheck_method: auxprop
mech_list:      plain   login
log_level:      2

/etc/postfix/main.cf
smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject
smtpd_sasl_application_name = smtpd
smtpd_sasl_local_domain = $mydomain
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous

postfix start正常 看到有监听25端口

perl -MMIME::Base64 -e 'print encode_base64("\0baoming\0baoming";'
AGJhb21pbmcAYmFvbWluZw==

telnet 服务器IP 25

220 qmail.abc.com ESMTP Postfix
ehlo qmail.abc.com
250-qmail.abc.com
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-AUTH LOGIN PLAIN
250-AUTH=LOGIN PLAIN
250 8BITMIME
auth plain AGJhb21pbmcAYmFvbWluZw==
535 Error:authentication failed

tail /var/log/maillog

Oct 24 11:38:24 qmail postfix/smtpd[2004]: warning: SASL authentication failure: Password verification failed
Oct 24 11:38:24 qmail postfix/smtpd[2004]: warning: unknown[221.221.172.11]: SASL plain authentication failed


无法通过认证,请问高手这是什么原因?

论坛徽章:
0
2 [报告]
发表于 2005-10-25 12:52 |只看该作者

postfix+sasl不能通过认证的问题!!请教!

问题解决,将main.cf中的smtpd_sasl_local_domain设为空即可。

论坛徽章:
0
3 [报告]
发表于 2005-10-25 15:05 |只看该作者

postfix+sasl不能通过认证的问题!!请教!

[quote]原帖由 "bao_m"]问题解决,将main.cf中的smtpd_sasl_local_domain设为空即可。[/quote 发表:


鼓掌,
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP