免费注册 查看新帖 |

Chinaunix

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

[Mail] 求助 sasl2 + authdaemond 的验证被绕过! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-07-01 13:40 |只看该作者 |倒序浏览
本帖最后由 mylinger 于 2010-07-01 13:41 编辑

求助一个问题,目前邮件系统正在运行,不过测试出一个问题。不知道是不是我的配置有问题

邮件系统是 postfix + mysql + sasl2 + authdaemond 验证的

现在竟然可以随便输入一个用户名(不存在的) 1234@abc.com  然后用 smtp验证发送给本域内的任何用户和群组。但如果用outlook,确实显示验证用户名和密码错误!有点迷糊了,请大大们指教

附上  sasl2/lib/sasl2/smtpd.conf 文件
pwcheck_method: authdaemond
log_level: 3
mech_list: PLAIN LOGIN
authdaemond_path:/usr/local/courier-authlib/var/spool/authdaemon/socket

而 /etc/postfix/main.cf 文件中也做了 smtp的设置

smtpd_recipient_restrictions=permit_mynetworks,permit_sasl_authenticated,reject_invalid_hostname,reject_non_fqdn_hostname,reject_unknown_sender_domain,reject_non_fqdn_sender,reject_non_fqdn_recipient,reject_unknown_recipient_domain,reject_unauth_pipelining,reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_security_options = noanonymous
smtpd_sasl_application_name = smtpd
smtpd_banner = Welcome to our $myhostname ESMTP

附上  /etc/authmysqlrc  文件
MYSQL_SERVER localhost
MYSQL_PORT 3306   
MYSQL_USERNAME extmail
MYSQL_PASSWORD extmail
MYSQL_SOCKET  /tmp/mysql.sock
MYSQL_DATABASE  extmail
MYSQL_USER_TABLE  mailbox
MYSQL_CRYPT_PWFIELD  password
#MYSQL_UID_FIELD  '2525'
#MYSQL_GID_FIELD  '2525'
MYSQL_UID_FIELD  '1001'
MYSQL_GID_FIELD  '1001'
MYSQL_LOGIN_FIELD  username
MYSQL_HOME_FIELD  concat('/var/mailbox/',homedir)
MYSQL_NAME_FIELD  name
MYSQL_MAILDIR_FIELD  concat('/var/mailbox/',maildir)

请大家帮忙看看!是哪里出了问题!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP