marion 发表于 2008-04-22 22:23

回复 #609 wangjyl 的帖子

打开认证日志,问题应该会一目了然的!前面的帖子中有具体实现办法,建议参照。

bladezxf 发表于 2008-04-23 15:35

我按照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 编辑 ]

marion 发表于 2008-04-25 20:54

回复 #611 bladezxf 的帖子

记得本版块中有个专门的帖子讨论过这个问题及解决办法,你耐心找一找。:wink:

sikun 发表于 2008-04-28 14:33

courier-authlib重起后一直提示如下错误

Apr 26 16:43:16 test authdaemond: stopping authdaemond children
Apr 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时生成的,我没有在系统中找到这个文件,各位老大请指点,谢谢

nicsky 发表于 2008-05-05 16:08

谢谢楼主了。

marion 发表于 2008-05-09 17:41

回复 #613 sikun 的帖子

重新检查一下courier-authlib的安装步骤,同时注意查看是否把库文件目录进行了输出。

falalala 发表于 2008-05-28 17:28

加了病毒防护和垃圾过滤,开始抱这样一个错误

加了病毒防护和垃圾过滤,开始抱这样一个错误
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.

请给个检查思路?

kufang_he1209 发表于 2008-05-29 10:23

回复 #612 marion 的帖子

有没有人在FREEBSD上实验成功的。都快理不清头绪了。有的话交流一下。

marion 发表于 2008-05-29 13:39

回复 #616 falalala 的帖子

检查一下clamav的运行用户是否跟amavis的为同一个用户。

falalala 发表于 2008-06-02 11:11

回复 #618 marion 的帖子

没错,就是用户的问题。解决了,谢谢!
页: 52 53 54 55 56 57 58 59 60 61 [62] 63 64 65 66 67 68 69 70 71
查看完整版本: RHEL4上安装基于postfix的全功能邮件服务器(全部使用目前最新源码包构建)