• postfix防垃圾邮件


    Postfix 2.x

     打开/etc/postfix/main.cf文件,在其中增加如下的几行(如果相关的配置存在,就替换之):

     vi /etc/postfix/main.cf

     [...]

     smtpd_helo_required = yes

     disable_vrfy_command = yes

     strict_rfc821_envelopes = yes

     invalid_hostname_reject_code = 554

     multi_recipient_bounce_reject_code = 554

     non_fqdn_reject_code = 554

     relay_domains_reject_code = 554

     unknown_address_reject_code = 554

     unknown_client_reject_code = 554

     unknown_hostname_reject_code = 554

     unknown_local_recipient_reject_code = 554

     unknown_relay_recipient_reject_code = 554

     unknown_sender_reject_code = 554

     unknown_virtual_alias_reject_code = 554

     unknown_virtual_mailbox_reject_code = 554

     unverified_recipient_reject_code = 554

     unverified_sender_reject_code = 554

     smtpd_recipient_restrictions =

      reject_invalid_hostname,

      reject_unknown_recipient_domain,

      reject_unauth_pipelining,

      permit_mynetworks,

      permit_sasl_authenticated,

      reject_unauth_destination,

      reject_rbl_client multi.uribl.com,

      reject_rbl_client dsn.rfc-ignorant.org,

      reject_rbl_client dul.dnsbl.sorbs.net,

      reject_rbl_client list.dsbl.org,

      reject_rbl_client sbl-xbl.spamhaus.org,

      reject_rbl_client bl.spamcop.net,

      reject_rbl_client dnsbl.sorbs.net,

      reject_rbl_client cbl.abuseat.org,

      reject_rbl_client ix.dnsbl.manitu.net,

      reject_rbl_client combined.rbl.msrbl.net,

      reject_rbl_client rabl.nuclearelephant.com,

      permit

     [...]

     然后重新启动Postfix:

     /etc/init.d/postfix restart

     Postfix 1.x

     打开/etc/postfix/main.cf,并在其中加入如下几行(如果相关的配置已经存在就替换之):

     vi /etc/postfix/main.cf

     [...]

     smtpd_helo_required = yes

     disable_vrfy_command = yes

     strict_rfc821_envelopes = yes

     invalid_hostname_reject_code = 554

     multi_recipient_bounce_reject_code = 554

     non_fqdn_reject_code = 554

     relay_domains_reject_code = 554

     unknown_address_reject_code = 554

     unknown_client_reject_code = 554

     unknown_hostname_reject_code = 554

     unknown_local_recipient_reject_code = 554

     unknown_relay_recipient_reject_code = 554

     unknown_sender_reject_code = 554

     unknown_virtual_alias_reject_code = 554

     unknown_virtual_mailbox_reject_code = 554

     unverified_recipient_reject_code = 554

     unverified_sender_reject_code = 554

     maps_rbl_domains =

      multi.uribl.com,

      dsn.rfc-ignorant.org,

      dul.dnsbl.sorbs.net,

      list.dsbl.org,

      sbl-xbl.spamhaus.org,

      bl.spamcop.net,

      dnsbl.sorbs.net,

      cbl.abuseat.org,

      ix.dnsbl.manitu.net,

      combined.rbl.msrbl.net,

      rabl.nuclearelephant.com

     smtpd_recipient_restrictions =

      permit_sasl_authenticated,

      permit_mynetworks,

      reject_invalid_hostname,

      reject_non_fqdn_hostname,

      reject_non_fqdn_sender,

      reject_unknown_sender_domain,

      reject_unknown_recipient_domain,

      reject_maps_rbl,

      check_relay_domains

     [...]

     然后重新启动Postfix:

     /etc/init.d/postfix restart
    ,转自中国存储网,原文链接:http://www.chinastor.com/a/jishu/postfix/0G391622014.html

  • 相关阅读:
    ubuntu16.04自动删除内核
    禅道服务数据的迁移
    k8s常用命令3
    使用logstash迁移es集群数据
    es集群迁移脚本
    helm常用命令1
    【操作】python2升级到python3
    【推荐】构建脚本之shell编写规范
    【推荐】linux使用zip命令
    Sublime使用大全
  • 原文地址:https://www.cnblogs.com/bethal/p/5442430.html
Copyright © 2020-2023  润新知