email - 邮件服务器拒绝 MailGun 发送的邮件(发送至其控制的域)

标签 email mailgun iredmail

设置如下:

  • iRedMail 服务器设置以发送和接收电子邮件。 (发送手工制作的电子邮件)

  • MailGun 服务发送电子邮件。 (发送计算机自动生成的邮件)

接受从 MailGun 向 iRedMail 服务器实例以外的邮件服务器发送邮件。

从 MailGun 向我的 iRedMail 服务器发送邮件被拒绝,状态代码为 450。

下面的粘贴显示了 MailGun 发送到我的 iRedMail 服务器实例的电子邮件的 MailGun 日志条目。

{
    "severity": "permanent",
    "tags": [],
    "delivery-status": {
        "tls": true,
        "mx-host": "m1.managemun.org",
        "code": 450,
        "description": "",
        "session-seconds": 1.262861967086792,
        "utf8": true,
        "retry-seconds": 14400,
        "attempt-no": 8,
        "message": "4.1.8 <<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="4a28253f24292f617f737f7f7e7c642f287c727f7f6725272b3877272b242b2d2f273f246425382d0a272d64272b242b2d2f273f246425382d" rel="noreferrer noopener nofollow">[email protected]</a>>: Sender address rejected: Domain not found",
        "certificate-verified": true
    },
    "recipient-domain": "managemun.org",
    "id": "1GWMCXnjTBKo5MlCth6Faw",
    "campaigns": [],
    "reason": "old",
    "user-variables": {},
    "flags": {
        "is-routed": false,
        "is-authenticated": true,
        "is-system-test": false,
        "is-test-mode": false
    },
    "log-level": "error",
    "timestamp": 1507644954.828214,
    "envelope": {
        "transport": "smtp",
        "sender": "<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="63000c0d17020017230e020d0204060e160d4d0c1104" rel="noreferrer noopener nofollow">[email protected]</a>",
        "sending-ip": "XXX.XXX.XXX.XX",
        "targets": "<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="2a45474b586a474b444b4d4f475f440445584d" rel="noreferrer noopener nofollow">[email protected]</a>"
    },
    "message": {
        "headers": {
            "to": "<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="583735392a18353936393f3d352d3676372a3f" rel="noreferrer noopener nofollow">[email protected]</a>",
            "message-id": "<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="281e4a4d1b4a4e1010051f1f1a1d051f1f1d10054d11111d057070707070707070707070707068454946494f4d455d4606475a4f" rel="noreferrer noopener nofollow">[email protected]</a>",
            "from": "ManageMUN <<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="7615191802171502361b17181711131b031858190411" rel="noreferrer noopener nofollow">[email protected]</a>>",
            "subject": "Password Reset"
        },
        "attachments": [],
        "size": 1656
    },
    "recipient": "<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="4d22202c3f0d202c232c2a2820382363223f2a" rel="noreferrer noopener nofollow">[email protected]</a>",
    "event": "failed"
}

如何解决这个问题?

如果您对设置有任何建议,请随时提出建设性的批评

最佳答案

返回的错误是由 Sender Address Verification 引起的。收件人服务器对发件人地址的 MX 记录执行回调以验证信封。邮件发件人地址 <<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="ed8f8298838e88c6d8d4d8d8d9dbc3888fdbd5d8d8c082808c9fd0808c838c8a88809883c3829f8aad808ac3808c838c8a88809883c3829f8a" rel="noreferrer noopener nofollow">[email protected]</a>> .

在这种情况下,收件人服务器尝试回调“mg.managemun.org”,但由于子域没有 MX 记录而失败。因此,通过将 Mailgun 的 MX 记录添加到您的子域 mg.managemun.org,这些电子邮件服务器的 MX 查找将成功,并且服务器将接受您的邮件。 Mailgun的两条MX记录可以引用here :

Value : mxa.mailgun.org
Priority: 10

Value : mxb.mailgun.org
Priority: 10

**免责声明我在 Mailgun 工作

关于email - 邮件服务器拒绝 MailGun 发送的邮件(发送至其控制的域),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46696432/

相关文章:

php - 如何设置入站邮件 Controller 以便用户可以向唯一的电子邮件地址发帖?

java - 我如何在 Kotlin 中使用具有 .to 方法的 Java 库,因为它假定我的意思是使用中缀运算符来创建一对

python-3.x - 安装 iRedMail 时在 Centos 7 上需要 : python(abi) = 3. 6

email - 将系统日期插入 ssmtp 电子邮件的主题字段

python - 为什么 smtplib.SMTP().sendmail 不发送 DKIM 签名邮件

java - 如何使用入站解析捕获 OOO(不在办公室)电子邮件?

node.js - Mailgun.js 是否提供发送模板的可能性?

ssl - iRedMail SSL 使用 Lets Encrypt certbot-auto

express - iRedMail 在标准安装后阻止自定义端口

python - 使用 Python 在特定目录中更改文件的电子邮件通知