AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 936780
Accepted
kittygirl
kittygirl
Asked: 2018-10-24 05:01:38 +0800 CST2018-10-24 05:01:38 +0800 CST 2018-10-24 05:01:38 +0800 CST

应该将 SPF 添加到 smtpd_sender_restrictions 还是 smtpd_recipient_restrictions?

  • 772

我在 centos 7 中使用 postfix+dovecot。
我使用

postconf -e 'smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination,reject_invalid_hostname,reject_non_fqdn_hostname,reject_non_fqdn_sender,reject_non_fqdn_recipient'
postconf -e 'smtpd_sender_restrictions =reject_non_fqdn_sender,reject_unknown_sender_domain,reject_rbl_client sbl-xbl.spamhaus.org,check_policy_service unix:private/policy'
postconf -e 'policy_time_limit = 3600s'
postconf -e 'policy-spf_time_limit = 3600'  

设置后缀 main.cf。
注意check_policy_service unix:private/policy,smtpd_sender_restrictions这意味着我证明我正在使用正确的邮件域来发送邮件。
我认为 mypostconf是完美的,但有人说smtpd_sender_restrictions应该在smtpd_recipient_restrictions.
应该将 SPF 添加到 smtpd_sender_restrictions 还是 smtpd_recipient_restrictions?

postfix
  • 1 1 个回答
  • 672 Views

1 个回答

  • Voted
  1. Best Answer
    Michael Hampton
    2018-10-24T06:02:21+08:002018-10-24T06:02:21+08:00

    smtpd_sender_restrictions这些选项将在或中正常运行smtpd_recipient_restrictions。

    您应该添加它们的原因smtpd_recipient_restrictions与 SMTP 协议本身有关。在协议的每个阶段,发送者首先用 EHLO 或 HELO 标识自己,然后使用 MAIL FROM 发送发送者的电子邮件地址,然后使用 RCPT TO 发送接收者的地址。在每个阶段,Postfix 都可以采取行动,例如withsmtpd_helo_restrictions和。但是,如果您在 MAIL FROM 之后拒绝收到的邮件,则您不知道预期的收件人是谁。如果邮件是合法的并且收件人抱怨,您将无法在日志中找到它们。通过等到收件人地址发送后,您可以记录有关该消息的所有可用元数据,以防您以后需要查找它。smtpd_sender_restrictionssmtpd_recipient_restrictions

    • 6

相关问题

  • Postfix 在特定端口上接受邮件

  • 让 Postfix 以两种方式处理垃圾邮件

  • Postfix 或 exim:自动/程序化和转发电子邮件设置

  • 后缀电子邮件地址

  • 什么是最好的开源电子邮件解决方案包

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve