免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
楼主: marion
打印 上一主题 下一主题

[Mail] RHEL4上安装基于postfix的全功能邮件服务器(全部使用目前最新源码包构建) [复制链接]

论坛徽章:
0
611 [报告]
发表于 2008-04-22 22:23 |只看该作者

回复 #609 wangjyl 的帖子

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

论坛徽章:
0
612 [报告]
发表于 2008-04-23 15:35 |只看该作者
我按照marion 老大这个配置来做的,
但我的最后发现不通过身份验证也能发邮件
随便输一个帐号,以这个邮件服务器来发送,也能发邮件
有人一样的情况吗?

邮件日志里
SASL authentication failure: cannot connect to Courier authdaemond: No such file or directory

[root@mail ~]# more /etc/authdaemonrc | grep -v "#"
authmodulelist="authmysql"
authmodulelistorig="authmysql"
daemons=10
authdaemonvar=/usr/local/courier-authlib/var/spool/authdaemon

[root@mail ~]# 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

[root@mail ~]#           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 编辑 ]

论坛徽章:
0
613 [报告]
发表于 2008-04-25 20:54 |只看该作者

回复 #611 bladezxf 的帖子

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

论坛徽章:
0
614 [报告]
发表于 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时生成的,我没有在系统中找到这个文件,各位老大请指点,谢谢

论坛徽章:
0
615 [报告]
发表于 2008-05-05 16:08 |只看该作者
谢谢楼主了。

论坛徽章:
0
616 [报告]
发表于 2008-05-09 17:41 |只看该作者

回复 #613 sikun 的帖子

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

论坛徽章:
0
617 [报告]
发表于 2008-05-28 17:28 |只看该作者

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

加了病毒防护和垃圾过滤,开始抱这样一个错误
May 28 17:18:33 mail amavis[14452]: (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]: (14452-03) (!!)ClamAV-clamd av-scanner FAILED: CODE(0x921235 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]: (14452-03) (!!)WARN: all primary virus scanners failed, considering backups
May 28 17:18:33 mail amavis[14452]: (14452-03) (!!)TROUBLE in check_mail: virus_scan FAILED: virus_scan: ALL VIRUS SCANNERS FAILED: ClamAV-clamd av-scanner FAILED: CODE(0x921235 unexpected , output="/var/amavis/tmp/amavis-20080528T171832-14452/parts: lstat() failed. ERROR\n" at (eval 112) line 523.

请给个检查思路?

论坛徽章:
0
618 [报告]
发表于 2008-05-29 10:23 |只看该作者

回复 #612 marion 的帖子

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

论坛徽章:
0
619 [报告]
发表于 2008-05-29 13:39 |只看该作者

回复 #616 falalala 的帖子

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

论坛徽章:
0
620 [报告]
发表于 2008-06-02 11:11 |只看该作者

回复 #618 marion 的帖子

没错,就是用户的问题。解决了,谢谢!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP