首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >不能使用邮件发送电子邮件到自定义域(非gmail/hotmail电子邮件)

不能使用邮件发送电子邮件到自定义域(非gmail/hotmail电子邮件)
EN

Stack Overflow用户
提问于 2016-02-22 06:52:08
回答 1查看 736关注 0票数 3

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

代码语言:javascript
复制
{
  "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"
}

我是设置了错误的标题,还是在发送电子邮件到自定义域之前,我需要设置一个配置?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2016-02-22 08:40:13

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

代码语言:javascript
复制
10 mxa.mailgun.org
10 mxb.mailgun.org

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

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/35547414

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档