如何停止slockd和dspam
直接在extman中停止会导到客户端发不出邮件,通过查找日志,发现报错如下:Feb 22 00:42:38 emos amavis[2660]: (02660-06) (!)checking with spam scanner DSPAM failed: DSPAM: error running program /usr/bin/dspam: exit 251
Feb 22 00:42:38 emos amavis[2660]: (02660-06) (!!)TROUBLE in check_mail: spam_scan FAILED: DSPAM failed: DSPAM: error running program /usr/bin/dspam: exit 251 at (eval 99) line 109, <GEN70> line 117.
Feb 22 00:42:38 emos amavis[2660]: (02660-06) (!)PRESERVING EVIDENCE in /var/spool/vscan/tmp/amavis-20100222T004237-02660
Feb 22 00:42:38 emos postfix/smtp[24514]: E483E198787: to=<[email]c@extmail.cn[/email]>, relay=127.0.0.1[127.0.0.1]:10024, delay=1.4, delays=0.15/0.06/0.05/1.2, dsn=4.5.0, status=deferred (host 127.0.0.1[127.0.0.1] said: 451 4.5.0 Error in processing, id=02660-06, spam_scan FAILED: DSPAM failed: DSPAM: error running program /usr/bin/dspam: exit 251 at (eval 99) line 109, <GEN70> line 117. (in reply to end of DATA command))
邮件防火墙已有过滤,所以不想开启emos的病毒和垃圾邮件过滤功能,应该如果设置才能正确关闭呢? main.cf中注释掉以下几行
# smtpd related config
#check_policy_service inet:127.0.0.1:10030
#header_checks = regexp:/etc/postfix/dspam_header_checks
# Content-Filter
#content_filter = smtp-amavis:[127.0.0.1]:10024
#receive_override_options = no_address_mappings
在master.cf释掉dspam的设置。
# DSPAM training settings
#
#retrain unix - n n - - pipe
# flags=Rhq user=dspam argv=/usr/bin/dspam --client --mode=teft --class=$nexthop --source=corpus --user extmail --deliver=spam,innocent
#spamtrap unix - n n - - pipe
# flags=Rhq user=dspam argv=/usr/bin/dspam --client --mode=teft --class=spam --source=inoculation --user extmail
邮件可以发出去了,但是后台日志还有错误信息。
Feb 22 01:16:21 emos dspam[25560]: Connection to 127.0.0.1:10028 failed: Connection refused
Feb 22 01:16:21 emos dspam[25560]: Unable to connect to server
Feb 22 01:16:21 emos dspam[25560]: Client exited with error -5
Feb 22 01:16:21 emos amavis[2659]: (02659-10) (!)DSPAM stderr: 25560: [02/22/2010 01:16:21] Connection to 127.0.0.1:10028 failed: Connection refused\n25560: [02/22/2010 01:16:21] Unable to connect to server\n25560: [02/22/2010 01:16:21] Client exited with error -5\n
Feb 22 01:16:21 emos amavis[2659]: (02659-10) (!)checking with spam scanner DSPAM failed: DSPAM: error running program /usr/bin/dspam: exit 251
Feb 22 01:16:21 emos amavis[2659]: (02659-10) (!!)TROUBLE in check_mail: spam_scan FAILED: DSPAM failed: DSPAM: error running program /usr/bin/dspam: exit 251 at (eval 99) line 109, <GEN101> line 117.
Feb 22 01:16:21 emos amavis[2659]: (02659-10) (!)PRESERVING EVIDENCE in /var/spool/vscan/tmp/amavis-20100222T011620-02659
Feb 22 01:16:21 emos postfix/smtp[25557]: F337919875C: to=<[email]c@xiaolan.cn[/email]>, relay=127.0.0.1[127.0.0.1]:10024, delay=2447, delays=2447/0.02/0.02/0.36, dsn=4.5.0, status=deferred (host 127.0.0.1[127.0.0.1] said: 451 4.5.0 Error in processing, id=02659-10, spam_scan FAILED: DSPAM failed: DSPAM: error running program /usr/bin/dspam: exit 251 at (eval 99) line 109, <GEN101> line 117. (in reply to end of DATA command))
从志日看,邮件能正常发出了,但是过滤程序还在报错。
请问应该如何解决呢? 把master.cf中的amavis调用注释掉,就完全能把反病毒和垃圾邮件过滤停止掉了。日志文件不再有报错信息。
#127.0.0.1:10025 inet n - n - - smtpd
# -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
# -o smtpd_error_sleep_time=0
# -o smtpd_soft_error_limit=1001
# -o smtpd_hard_error_limit=1000
# -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
#smtp-amavis unix - - n - 3 smtp
# -o smtp_data_done_timeout=1200
# -o smtp_send_xforward_command=yes
# -o disable_dns_lookups=yes
# -o max_use=10
页:
[1]