- 论坛徽章:
- 0
|
本帖最后由 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)
请大家帮忙看看!是哪里出了问题! |
|