- 论坛徽章:
- 0
|
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认证,请问哪位大哥知道在哪里出了问题,谢谢? |
|