免费注册 查看新帖 |

Chinaunix

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

[Mail] freebsd+postfix+sasl2认证通不过? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-06-02 22:21 |只看该作者 |倒序浏览
Jun  2 22:12:51 mail postfix/smtpd[4788]: connect from localhost.mail.ibox.com.cn[127.0.0.1]
Jun  2 22:13:55 mail postfix/smtpd[4788]: warning: SASL authentication problem: unknown password verifier     
Jun  2 22:13:55 mail postfix/smtpd[4788]: warning: localhost.mail.ibox.com.cn[127.0.0.1]: SASL login authentication failed
Jun  2 22:14:24 mail postfix/smtpd[4788]: warning: SASL authentication problem: unknown password verifier      
Jun  2 22:14:24 mail postfix/smtpd[4788]: warning: localhost.mail.ibox.com.cn[127.0.0.1]: SASL login authentication failed




安装cyrus-sasl-2.1.12
1、安装
server# tar -zxvf cyrus-sasl-2.1.12.tar.gz
server# cd cyrus-sasl-2.1.12
server# ./configure --disable-sample --disable-pwcheck --disable-cram --disable-digest --disable-krb4 --disable-gssapi --disable-anon
--with-saslauthd=/var/run/saslauthd --enable-plain --enable-login
server# make
server# make install
server# ln -s /usr/local/lib/sasl2 /usr/lib/sasl2

2、配置sasl的lib库
在ldconfig_paths="/usr/loca/lib后面加上/usr/local/lib/sasl2"

3、使用pam直接认证:
server# echo pwcheck_method: pam >; /usr/local/lib/sasl2/smtpd.conf

4、安装 pam_mysql-0.4.7
server# pkg_add pam_mysql-0.4.7.tgz
server# cp /usr/local/lib/pam_mysql.so /usr/lib/
2、配置pam.conf调用mysql支持sasl认证
将pop3 和imap的前面加上#)
添加下列代码:
smtp auth sufficient pam_mysql.so user=postfix passwd=liubinw host=localhost db=mail table=virtual_users usercolumn=id passwdcolumn=password crypt=1
smtp account required pam_mysql.so user=postfix passwd=liubinw host=localhost db=mail table=virtual_users usercolumn=id passwdcolumn=password crypt=1

安装postfix-2.0.7
1、停止sendmail
server# mv /usr/bin/newaliases /usr/bin/newaliases.OFF
server# mv /usr/bin/mailq /usr/bin/mailq.OFF
server# mv /usr/sbin/sendmail /usr/sbin/sendmail.OFF
server# mv /etc/rc.sendmail /etc/sendmail.OFF
server# edit /etc/rc.conf(在sendmail="YES"添加# )
2、添加postfix用户
server# pw groupadd postfix -g 2003
server# pw groupadd postdrop -g 2004
server# pw useradd postfix -u 2003 -g 2003 -d /dev/null -s /nologin
3、安装
server# tar zxvf postfix-2.0.7.tar.gz
server# cd postfix-2.0.7
server# make -f Makefile.init makefiles 'CCARGS=-DUSE_SASL_AUTH -DHAS_MYSQL -I/usr/local/mysql/include/mysql -I/usr/local/include/sasl' 'AUXLIBS=-L/usr/local/lib/ -L/usr/local/mysql/lib/mysql -lmysqlclient -lsasl2 -lz -lm'
server# make
server# make install
4、配置
server# echo ‘postfix: root’ >;>; /etc/aliases
server# /usr/bin/newaliases



本系统过程中,无法进行sasl认证,请问哪位大哥知道在哪里出了问题,谢谢?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP