免费注册 查看新帖 |

Chinaunix

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

[Mail] 请教关于postfix+clamav+spam+amavisd的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-12-13 19:03 |只看该作者 |倒序浏览
按照本章的关于该配置的文章,配置好了,不过发现无法正常工作
客户端提示发送邮件成功,但是对方无法收到,服务器上看到日志信息如下
当postfix不使用amavisd的时候是工作正常的,估计是amavisd的问题,请各位帮忙看看了,谢谢

Dec 13 18:50:58 XXX imapd: Connection, ip=[127.0.0.1]
Dec 13 18:50:58 XXX imapd: LOGIN, user=XXX@XXX.com, ip=[127.0.0.1], port=[60917], protocol=IMAP
Dec 13 18:50:58 XXX imapd: LOGOUT, user=XXX@XXX.com, ip=[127.0.0.1], headers=0, body=0, rcvd=51, sent=432, time=0
Dec 13 18:51:00 XXX postfix/qmgr[1785]: 9402F5ED674: from=<XXX@XXX.com>, size=1002, nrcpt=1 (queue active)
Dec 13 18:51:00 XXX clamd[7439]: SelfCheck: Database status OK.
Dec 13 18:51:00 XXX amavis[2970]: (02970-01) (!!)TROUBLE in check_mail: delivery-notification FAILED: Explicit forwarding, but not all recips done at ./amavisd/sbin/amavisd line 3632.
Dec 13 18:51:00 XXX amavis[2970]: (02970-01) (!)PRESERVING EVIDENCE in /opt/XXX/Mail/amavisd/tmp/amavis-20071213T185100-02970
Dec 13 18:51:00 XXX postfix/smtp[4126]: 9402F5ED674: to=<XXXwu@XXX.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=363, delays=362/0.01/0.01/0.11, dsn=4.5.0, status=deferred (host 127.0.0.1[127.0.0.1] said: 451 4.5.0 Error in processing, id=02970-01, delivery-notification FAILED: Explicit forwarding, but not all recips done at ./amavisd/sbin/amavisd line 3632. (in reply to end of DATA command))
Dec 13 18:51:58 XXX imapd: Connection, ip=[127.0.0.1]
Dec 13 18:51:58 XXX imapd: LOGIN, user=XXX@XXX.com, ip=[127.0.0.1], port=[60919], protocol=IMAP
Dec 13 18:51:58 XXX imapd: LOGOUT, user=XXX@XXX.com, ip=[127.0.0.1], headers=0, body=0, rcvd=51, sent=432, time=0

论坛徽章:
0
2 [报告]
发表于 2007-12-14 14:41 |只看该作者
以上问题不知道怎么就不出现了。。。
反复的把postfix中关于调用amavisd的部分屏蔽又打开后来就不出现的
main.cf

content_filter = smtp-amavis:[127.0.0.1]:10024

master.cf

smtp-amavis     unix    -       -       n       -       2       smtp
-o smtp_data_done_timeout=1200
-o smtp_send_xforward_command=yes
-o disable_dns_lookups=yes
-o max_use=20

127.0.0.1:10025 inet    n       -       n       -       -       smtpd
-o content_filter=
-o smtpd_delay_reject=no
-o smtpd_client_restrictions=permit_mynetworks,reject
-o smtpd_helo_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,reject
-o smtpd_data_restrictions=reject_unauth_pipelining
-o smtpd_end_of_data_restrictions=
-o smtpd_restriction_classes=
-o mynetworks=127.0.0.0/8
-o smtpd_error_sleep_time=0
-o smtpd_soft_error_limit=1001
-o smtpd_hard_error_limit=1000
-o smtpd_client_connection_count_limit=0
-o smtpd_client_connection_rate_limit=0
-o receive_override_options=no_header_body_checks,no_unknown_recipient_checks,no_milters
-o local_header_rewrite_clients=


# -o content_filter=
# -o local_recipient_maps=
# -o relay_recipient_maps=
# -o smtpd_restriction_classes=
# -o smtpd_client_restrictions=
# -o smtpd_helo_restrictions=
# -o smtpd_sender_restrictions=
# -o smtpd_recipient_restrictions=permit_mynetworks,reject
# -o mynetworks=127.0.0.0/8
# -o strict_rfc821_envelopes=yes

------------------------------------------------------------------------------------------------------------------
新问题,测试发送病毒邮件,将被正常拒绝,并退信

当发送垃圾或者正常邮件时,似乎都被认为是垃圾邮件并退信了,退信内容如下(也就是说,现在不管发送什么邮件都被退信了)

A message from <copywu@xxxxxx.com>
to: -> copywu@xxxxxx.com

was considered unsolicited bulk e-mail (UBE).
Our internal reference code for your message is 04262-02/i-6NBZEBUHet

The message carried your return address, so it was either a genuine mail from you, or a sender address was faked and your e-mail address abused by third party, in which case we apologize for undesired notification.

We do try to minimize backscatter for more prominent cases of UBE and for infected mail, but for less obvious cases of UBE some balance between losing genuine mail and sending undesired backscatter is sought, and there can be some collateral damage on both sides.

First upstream SMTP client IP address: [127.0.0.1] localhost.localdomain According to a 'Received:' trace, the message originated at: [127.0.0.1], 192.168.88.88 localhost.localdomain [127.0.0.1]

Return-Path: <copywu@xxxxxx.com>
Message-ID: <b5fd356d854f1cad175a8e3d661e71e2@localhost>
Subject: adf
Delivery of the email was stopped!

Reporting-MTA: dns; mail.xxxxxx.com Received-From-MTA:
smtp; smtp.xxxxxx.com ([127.0.0.1])
Arrival-Date: Fri, 14 Dec 2007 14:31:34 +0800 (CST)
Original-Recipient: rfc822;copywu@xxxxxx.com
Final-Recipient: rfc822;copywu@xxxxxx.com
Action: failed
Status: 5.7.0 Diagnostic-Code: smtp; 554 5.7.0 Reject, id=04262-02 - SPAM
Last-Attempt-Date: Fri, 14 Dec 2007 14:31:34 +0800 (CST)
Final-Log-ID: 04262-02/i-6NBZEBUHet

[ 本帖最后由 copywu 于 2007-12-14 14:42 编辑 ]

论坛徽章:
0
3 [报告]
发表于 2007-12-28 11:03 |只看该作者

回复 #1 copywu 的帖子

你参照哪个文章配置的,能把文章帖给我么,我也用的postfix -clamav-spamassass-amavis

可是安装amavis出错。

论坛徽章:
0
4 [报告]
发表于 2007-12-28 18:58 |只看该作者
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP