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

转载于:https://www.cnblogs.com/yanl/archive/2010/11/22/1883893.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值