以下是设置:
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 <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"
}
如何解决此问题?
如果您对设置有任何建议,请随意批评建议
答案 0 :(得分:1)
返回的错误是由Sender Address Verification引起的。收件人服务器执行回调发件人地址的MX记录以验证来自地址<bounce+595546.eb6855-omar=managemun.org@mg.managemun.org>
的envelope.mail-。
在这种情况下,收件人服务器会尝试回拨“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工作