LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 955|回复: 1

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

[复制链接]
发表于 2003-7-30 13:02:26 | 显示全部楼层 |阅读模式
我在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认证方面的经验,望请赐教,谢谢!
发表于 2004-5-24 11:34:49 | 显示全部楼层

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

/etc/postfix/sasl/smtpd.conf文件中添加一行:
mech_list: plain login 等等,你的认证方式。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表