Postfix用户认证问题,再次请求帮助

由 ydx 在 07-30-2003 13:02 发表:

Postfix用户认证问题,再次请求帮助

我在Trustix Secure Linux 2.0下安装了Postfix,不作用户认证时可以正常发送邮件。

我安装了TSL2.0安装盘里提供的cyrus-sasl-2.1.15和cyrus-sasl-mysql-2.1.15后,按文档说明,在/etc/postfix/main.cf文件启用sasl认证:

smtpd_sasl_auth_enable = yes

smtpd_sasl_security_options = noanonymous

smtpd_sasl_auth_clients = yes

smtpd_recipient_restrictions = permit_sasl_authenticated permit_auth_destination reject

并在/usr/lib/sasl2/smtpd.conf文件中设置认证方式:

pwcheck_method: auxprop

auxprop_plugin: mysql

mysql_user: xxxx

mysql_passwd: xxxx

mysql_hostnames: localhost

mysql_database: maildb

mysql_statement: select password from users where username='%u'

mysql_verbose: true

重新启动postfix服务

用命令telnet localhost 25测试时

程序很快退出,检查/var/log/mail下的日志文件,errors文件有以下提示:

no SASL authentication mechanisms

于是我改换成另一种认证方式:

安装pam_mysql并确保/lib/security/pam_mysql.so文件存在

将pwcheck_method改为pam,并在/etc/pam.d/smtp文件设置其他参数,

重新启动postfix服务,用命令telnet localhost 25测试时,仍然出现上述

错误,但我用saslauthd -v检查时,pam认证是支持的。

哪位大虾有smtp认证方面的经验,望请赐教,谢谢!


由 zzw 在 05-24-

Published At
Categories with 服务器类
Tagged with
comments powered by Disqus