邮件服务器拒绝 MailGun 发送的邮件(发往它控制的域)

Mail server rejecting mail (to a domain it controls) sent by MailGun

设置如下:

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

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

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

{
    "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 <bounce+595546.eb6855-omar=managemun.org@mg.managemun.org>: 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": "contact@managemun.org",
        "sending-ip": "XXX.XXX.XXX.XX",
        "targets": "omar@managemun.org"
    },
    "message": {
        "headers": {
            "to": "omar@managemun.org",
            "message-id": "6be3bf88-7725-7758-e995-XXXXXXXXXXXXX@managemun.org",
            "from": "ManageMUN <contact@managemun.org>",
            "subject": "Password Reset"
        },
        "attachments": [],
        "size": 1656
    },
    "recipient": "omar@managemun.org",
    "event": "failed"
}

我该如何解决这个问题?

如对设置有任何建议,欢迎提出建设性意见

返回的错误是由Sender Address Verification引起的。收件人服务器对发件人地址的 MX 记录执行回调以验证 envelope.mail-发件人地址 <bounce+595546.eb6855-omar=managemun.org@mg.managemun.org>.

在这种情况下,收件人服务器尝试回调到“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 工作