【问题标题】:Can't send emails to custom domains (non-gmail/hotmail emails) using Mailgun无法使用 Mailgun 将电子邮件发送到自定义域(非 gmail/hotmail 电子邮件)
【发布时间】:2016-06-03 12:16:59
【问题描述】:

当用户注册时,我会发送确认(和其他电子邮件)。问题是,当我发送到不是 gmail 或 hotmail 或任何大型电子邮件服务的地址时,它会在电子邮件标题中引发错误。

{
  "severity": "permanent",
  "tags": [],
  "delivery-status": {
    "tls": false,
    "mx-host": "mxer.customdomain.com",
    "code": 553,
    "description": null,
    "session-seconds": 6.566637992858887,
    "message": "553 5.1.8 <user@customdomain.com>... Domain of sender address bounce+e06614.0f9698-user=customdomain.com@mg.mydomain.com does not exist",
    "certificate-verified": false
  },
  "envelope": {
    "transport": "smtp",
    "sender": "accounts@mydomain.com",
    "sending-ip": "123.45.678.900",
    "targets": "user@customdomain.com"
  },
  "recipient-domain": "customdomain.com",
  "id": "AbCDeFGhiJk_lMn",
  "campaigns": [],
  "reason": "generic",
  "user-variables": {},
  "flags": {
    "is-routed": null,
    "is-authenticated": true,
    "is-system-test": false,
    "is-test-mode": false
  },
  "log-level": "error",
  "timestamp": 1456123374.411238,
  "message": {
    "headers": {
      "to": "First Last <user@customdomain.com>",
      "message-id": "56caade72ed26_***********9@6e5120c5-0d27-4491-a430-1a2dc4e6b862.mail",
      "from": "Team Accounts <accounts@mydomain.com>",
      "subject": "Confirmation instructions"
    },
    "attachments": [],
    "recipients": [
      "user@customdomain.com"
    ],
    "size": 1143
  },
  "recipient": "user@customdomain.com",
  "event": "failed"
}

我是否错误地设置了我的标头,或者在我可以向自定义域发送电子邮件之前我需要设置什么配置?

【问题讨论】:

    标签: ruby-on-rails email mailgun


    【解决方案1】:

    似乎对于某些电子邮件服务,它需要您的域/子域的有效“接收”MX 记录(对于 Mailgun,它是 mg.mydomain.com)来验证发件人的身份。我添加了 MX 记录

    10 mxa.mailgun.org
    10 mxb.mailgun.org
    

    对于mg.mydomain.com,它似乎奏效了。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-11-30
      • 1970-01-01
      • 1970-01-01
      • 2018-03-07
      • 1970-01-01
      • 2012-06-19
      • 2011-10-16
      • 2017-04-30
      相关资源
      最近更新 更多