当前位置:Gxlcms > mysql > MySQL数据库+Postfix投递经过验证的邮件正确设置

MySQL数据库+Postfix投递经过验证的邮件正确设置

时间:2021-07-01 10:21:17 帮助过:14人阅读

以下的文章主要讲述的是Postfix+Cyrus-SASL+MySQL数据库投递经过验证的邮件正确设置的实际操作步骤,就算它是要投到本地域的邮件或来自本地局域网的邮件都要通过验证,否则就不让过。main.cf 这一段要如何修改呢? mynetworks_style = host mynetworks = 168

以下的文章主要讲述的是Postfix+Cyrus-SASL+MySQL数据库投递经过验证的邮件正确设置的实际操作步骤,就算它是要投到本地域的邮件或来自本地局域网的邮件都要通过验证,否则就不让过。main.cf 这一段要如何修改呢?

  1. mynetworks_style = host

mynetworks = 168.100.189.0/28, 127.0.0.0/8

定义你的服务器IP

  1. #====================SASL=====================
  2. smtpd_sasl_auth_enable = yes
  3. smtpd_sasl_security_clients = noanonymous
  4. broken_sasl_auth_clients = yes
  5. smtpd_delay_reject = yes
  6. smtpd_recipient_restrictions = permit_sasl_authenticated
  7. reject_rbl_client opm.blitzed.org
  8. reject_rbl_client list.dsbl.org
  9. reject_rbl_client bl.spamcop.net
  10. reject_rbl_client sbl-xbl.spamhaus.org
  11. reject_rbl_client cbl.anti-spam.org.cn
  12. reject_rbl_client cdl.anti-spam.org.cn
  13. reject_rbl_client cblplus.anti-spam.org.cn
  14. reject_invalid_hostname
  15. reject_unknown_sender_domain
  16. reject_non_fqdn_sender
  17. reject_non_fqdn_recipient
  18. reject_unknown_recipient_domain
  19. reject_unauth_pipelining
  20. reject_unauth_destination
  21. permit_mynetworks
  22. check_recipient_maps
  23. smtpd_client_restrictions = permit_sasl_authenticated
  24. smtpd_helo_restrictions = reject_invalid_hostname
  25. smtpd_sender_restrictions = permit_sasl_authenticated
  26. reject_non_fqdn_sender
  27. reject_unknown_sender_domain
  28. reject_sender_login_mismatch
  29. smtpd_sasl_authenticated_header = yes
  30. smtpd_helo_required = yes

以上的相关内容就是对Postfix+Cyrus-SASL+MySQL数据库投递经过验证的邮件设置的介绍,望你能有所收获。

人气教程排行