EMOS中如何停止dspam
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
邮件可以发出去了,但是后台日志还有错误信息。
把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