网络

Mailgun 5.1.8 Domain of sender address xxx does not exist.

By jere on 2017-06-07 0 Comments

我们使用Mailgun来发送邮件,今天发现大部分的邮件都可以发送出去,而对有些客户邮件就始终失败,难道是对方邮件有问题?

dig customeremail.domain.com mx

返回的是正常的,那可能是我们自己的配置有问题。

我们自己的邮箱是[email protected],看了一下mailgun上发出的邮件from 是[email protected]。而我们没有添加mail.ourdomain.com的解析,估计是这里的问题。
于是,我们把from 改成了[email protected]

结果还是发送失败,看日志提醒依旧是
Mailgun 5.1.8 Domain of sender address xxx does not exist. 再看日志详情,发送的envelop的from还是mail.ourdomain.com.

Google搜索,看mailgun帮助,应该是我们的MX查询失败导致的。
dig mx mail.ourdomain.com是失败的。

mailgun里也写的很清楚

MX records are recommended for all domains, even if you are only sending messages.
Unless you already have MX records for @mail.ourdomain.com pointing to another email provider(e.g. gmail), you should update the following records.
Type Priority Enter this value
MX 10 mxa.mailgun.org
MX 10 mxb.mailgun.org

添加了这些MX解析后,问题终于解决了。

打赏

Leave a comment

您的电子邮箱地址不会被公开。 必填项已用*标注