回复 #609 wangjyl 的帖子
打开认证日志,问题应该会一目了然的!前面的帖子中有具体实现办法,建议参照。 我按照marion 老大这个配置来做的,但我的最后发现不通过身份验证也能发邮件
随便输一个帐号,以这个邮件服务器来发送,也能发邮件
有人一样的情况吗?
邮件日志里
SASL authentication failure: cannot connect to Courier authdaemond: No such file or directory
# more /etc/authdaemonrc | grep -v "#"
authmodulelist="authmysql"
authmodulelistorig="authmysql"
daemons=10
authdaemonvar=/usr/local/courier-authlib/var/spool/authdaemon
# ls -la /usr/local/courier-authlib/var/spool/authdaemon
total 12
drwxr-xr-x 2 daemon daemon 4096 Apr 23 16:06 .
drwxr-xr-x 3 root root 4096 Apr 21 17:34 ..
-rw-r--r-- 1 root root 5 Apr 23 16:06 pid
-rw------- 1 root root 0 Apr 21 17:40 pid.lock
srwxrwxrwx 1 root root 0 Apr 23 16:06 socket
main.cf中
##############SASL####################
smtpd_sasl_auth_enable = yes
smtpd_sasl2_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions =
permit_mynetworks,
permit_sasl_authenticated,
reject_unknown_sender_domain,
reject_non_fqdn_sender,
reject_non_fqdn_recipient,
reject_unknown_recipient_domain,
reject_unauth_pipelining,
reject_unauth_destination,
permit
smtpd_sender_login_maps =
mysql:/etc/postfix/mysql_virtual_sender_maps.cf,
mysql:/etc/postfix/mysql_virtual_alias_maps.cf
smtpd_reject_unlisted_sender = yes
smtpd_sender_restrictions =
reject_sender_login_mismatch,
reject_authenticated_sender_login_mismatch,
reject_unauthenticated_sender_login_mismatch
# more /usr/local/sasl2/lib/sasl2/smtpd.conf
pwcheck_method: authdaemond
log_level: 3
mech_listLAIN LOGIN
authdaemond_path:/usr/local/courier-authlib/var/spool/authdaemon/socket
求助,那里的错误呢
[ 本帖最后由 bladezxf 于 2008-4-23 16:31 编辑 ]
回复 #611 bladezxf 的帖子
记得本版块中有个专门的帖子讨论过这个问题及解决办法,你耐心找一找。:wink:courier-authlib重起后一直提示如下错误
Apr 26 16:43:16 test authdaemond: stopping authdaemond childrenApr 26 16:43:17 test authdaemond: modules="authmysql", daemons=10
Apr 26 16:43:18 test authdaemond: Installing libauthmysql
Apr 26 16:43:18 test authdaemond: libauthmysql.so: cannot open shared object file: No such file or directory
提示没有libauthmysql.so这个文件,这个文件是不是在编译courier-authlib时生成的,我没有在系统中找到这个文件,各位老大请指点,谢谢 谢谢楼主了。
回复 #613 sikun 的帖子
重新检查一下courier-authlib的安装步骤,同时注意查看是否把库文件目录进行了输出。加了病毒防护和垃圾过滤,开始抱这样一个错误
加了病毒防护和垃圾过滤,开始抱这样一个错误May 28 17:18:33 mail amavis: (14452-03) (!!)run_av (ClamAV-clamd) FAILED - unexpected , output="/var/amavis/tmp/amavis-20080528T171832-14452/parts: lstat() failed. ERROR\n"
May 28 17:18:33 mail amavis: (14452-03) (!!)ClamAV-clamd av-scanner FAILED: CODE(0x9212358) unexpected , output="/var/amavis/tmp/amavis-20080528T171832-14452/parts: lstat() failed. ERROR\n" at (eval 112) line 523.
May 28 17:18:33 mail amavis: (14452-03) (!!)WARN: all primary virus scanners failed, considering backups
May 28 17:18:33 mail amavis: (14452-03) (!!)TROUBLE in check_mail: virus_scan FAILED: virus_scan: ALL VIRUS SCANNERS FAILED: ClamAV-clamd av-scanner FAILED: CODE(0x9212358) unexpected , output="/var/amavis/tmp/amavis-20080528T171832-14452/parts: lstat() failed. ERROR\n" at (eval 112) line 523.
请给个检查思路?