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 / 问题 / 822261
Accepted
amoe
amoe
Asked: 2016-12-23 06:24:39 +0800 CST2016-12-23 06:24:39 +0800 CST 2016-12-23 06:24:39 +0800 CST

允许从任何子域(PTR、SPF、Gmail)发送邮件

  • 772

我使用单个智能主机作为集线器来路由来自我的网络的所有电子邮件,以便我可以通过 Gmail 的 SPF 检查。但是,虽然我总是通过同一台服务器发送,但From地址可能不同。例如,服务器上的 cron 作业dev.mydomain.com可能会生成 From address [email protected]。我使用/etc/aliases将此 cron 电子邮件重定向到我的真实电子邮件地址。此电子邮件使用托管的 Gmail,因此 MXmydomain.com指向 Gmail 的服务器。

但是,Gmail 不喜欢这些From地址,可能是因为它们与定义的 SPF 记录不完全匹配mydomain.com。我收到消息说Our system has detected that this message does not meet IPv6 sending guidelines regarding PTR records and authentication。

我不想定义单独的 SPF 记录,允许我的一个邮件服务器为我希望在From地址中允许的每个子域提交电子邮件。相反,我想允许*@*.mydomain.com,只要它是通过正确的服务器发送的。

2016-12-22 14:04:17 1cK3yj-0007Wz-4I <= [email protected] H=(dev.mydomain.com) [2a01:7e00::f03c:91ff:fe79:81b] P=esmtp S=586 [email protected]
2016-12-22 14:04:17 1cK3yj-0007Wz-4I ** [email protected] R=dnslookup T=remote_smtp X=TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128 DN="C=US,ST=California,L=Mountain View,O=Google Inc,CN=mx.google.com": SMTP error from remote mail server after end of data: host ASPMX.L.GOOGLE.com [2a00:1450:400c:c07::1a]: 550-5.7.1 [2a01:7e00::f03c:91ff:febb:7422] Our system has detected that this\n550-5.7.1 message does not meet IPv6 sending guidelines regarding PTR records\n550-5.7.1 and authentication. Please review\n550-5.7.1  https://support.google.com/mail/?p=IPv6AuthError for more information\n550 5.7.1 . p21si28305523wmb.29 - gsmtp

我在 Debian 上使用 Exim。

[编辑:似乎原因是反向 DNS/PTR 记录。]

email exim reverse-dns gmail ptr-record
  • 1 1 个回答
  • 1062 Views

1 个回答

  • Voted
  1. Best Answer
    Lars Lind Nilsson
    2016-12-23T08:00:10+08:002016-12-23T08:00:10+08:00

    由于来自 Google 的消息提到了 PTR 记录,我认为在这种情况下,问题可能不在于 SPF,而是由您的服务器缺少 PTR 记录引起的。如果您检查消息中提到的 URL:https: //support.google.com/mail/?p=IPv6AuthError在“IPv6 的附加指南”下,您应该有您的服务器的 PTR 记录(以及匹配的 AAAA 记录指向回到相同的 IP 地址)。如果2a01:7e00::f03c:91ff:febb:7422是您服务器的 IPv6 地址,则它没有 PTR 记录。

    • 2

相关问题

  • 如何绕过 ISP 的限制性电子邮件政策?

  • SharePoint 传入电子邮件出现“未知别名”错误

  • 电子邮件帐户的角色名称与人名

  • 如何在笔记本电脑上使用 Tobit David?[关闭]

  • 随行人员通过 VPN 连接到 Exchange 2007

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