首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >配置后缀以将邮件路由到域的外部

配置后缀以将邮件路由到域的外部
EN

Server Fault用户
提问于 2011-09-18 09:11:06
回答 2查看 2.4K关注 0票数 1

我有一个运行在亚马逊EC2 ubuntu实例中的站点。我的网络服务器是apache。我正在使用php邮件功能,以发送邮件从联系形式。我已经安装了后缀并使用了默认的八次配置。我们域名的电子邮件是由rackspace托管的。当contacr表单试图将邮件发送到我们域中的电子邮件id (info@jivity.com)时,mail.log会显示后缀试图在本地传递它。但是,对于gmail ids,它可以正常工作。以下是服务器上的mail.log:

代码语言:javascript
复制
Sep 17 07:48:15 ip-10-134-177-117 postfix/pickup[2189]: EC11D68106: uid=0 from=<root>
Sep 17 07:48:15 ip-10-134-177-117 postfix/cleanup[11700]: EC11D68106: message-id=<20110917074815.EC11D68106@ip-10-134-177-117.ap-southeast-1.compute.internal>
Sep 17 07:48:15 ip-10-134-177-117 postfix/qmgr[17377]: EC11D68106: from=<root@jivity.com>, size=650, nrcpt=1 (queue active)
Sep 17 07:48:15 ip-10-134-177-117 postfix/local[11702]: EC11D68106: to=<root@jivity.com>, orig_to=<root>, relay=local, delay=0.05, delays=0.03/0.01/0/0.01, dsn=2.0.0, status=sent (delivered to mailbox)
Sep 17 07:48:15 ip-10-134-177-117 postfix/qmgr[17377]: EC11D68106: removed
Sep 17 08:01:53 ip-10-134-177-117 postfix/pickup[13498]: AC5EA68106: uid=33 from=<www-data>
Sep 17 08:01:53 ip-10-134-177-117 postfix/cleanup[13628]: AC5EA68106: message-id=<20110917080153.AC5EA68106@ip-10-134-177-117.ap-southeast-1.compute.internal>
Sep 17 08:01:53 ip-10-134-177-117 postfix/qmgr[17377]: AC5EA68106: from=<www-data@jivity.com>, size=604, nrcpt=4 (queue active)
Sep 17 08:01:53 ip-10-134-177-117 postfix/local[13631]: AC5EA68106: to=<info@jivity.com>, relay=local, delay=0.28, delays=0.04/0.23/0/0.02, dsn=5.1.1, status=bounced (unknown user: "info")
Sep 17 08:01:55 ip-10-134-177-117 postfix/local[13632]: AC5EA68106: to=<nithin.kv@jivity.com>, relay=local, delay=1.5, delays=0.04/0.23/0/1.2, dsn=5.1.1, status=bounced (unknown user: "nithin.kv")
Sep 17 08:01:58 ip-10-134-177-117 postfix/smtp[13630]: AC5EA68106: to=<jivitydeals@gmail.com>, relay=gmail-smtp-in.l.google.com[74.125.45.27]:25, delay=5.2, delays=0.04/0.08/0.94/4.2, dsn=2.0.0, status=sent (250 2.0.0 OK 1316246518 m10si2182807yhk.92)
Sep 17 08:01:58 ip-10-134-177-117 postfix/smtp[13630]: AC5EA68106: to=<jivityindia@gmail.com>, relay=gmail-smtp-in.l.google.com[74.125.45.27]:25, delay=5.2, delays=0.04/0.08/0.94/4.2, dsn=2.0.0, status=sent (250 2.0.0 OK 1316246518 m10si2182807yhk.92)
Sep 17 08:01:58 ip-10-134-177-117 postfix/cleanup[13628]: DB42468107: message-id=<20110917080158.DB42468107@ip-10-134-177-117.ap-southeast-1.compute.internal>
Sep 17 08:01:58 ip-10-134-177-117 postfix/qmgr[17377]: DB42468107: from=<>, size=2795, nrcpt=1 (queue active)
Sep 17 08:01:58 ip-10-134-177-117 postfix/bounce[13633]: AC5EA68106: sender non-delivery notification: DB42468107
Sep 17 08:01:58 ip-10-134-177-117 postfix/qmgr[17377]: AC5EA68106: removed
Sep 17 08:01:58 ip-10-134-177-117 postfix/local[13631]: DB42468107: to=<www-data@jivity.com>, relay=local, delay=0.09, delays=0.01/0/0/0.07, dsn=2.0.0, status=sent (delivered to mailbox)
Sep 17 08:01:58 ip-10-134-177-117 postfix/qmgr[17377]: DB42468107: removed
Sep 17 08:27:43 ip-10-134-177-117 postfix/pickup[13498]: 22FC468106: uid=33 from=<www-data>
Sep 17 08:27:43 ip-10-134-177-117 postfix/cleanup[15563]: 22FC468106: message-id=<20110917082743.22FC468106@ip-10-134-177-117.ap-southeast-1.compute.internal>
Sep 17 08:27:43 ip-10-134-177-117 postfix/qmgr[17377]: 22FC468106: from=<www-data@jivity.com>, size=624, nrcpt=5 (queue active)
Sep 17 08:27:43 ip-10-134-177-117 postfix/local[15566]: 22FC468106: to=<info@jivity.com>, relay=local, delay=0.06, delays=0.03/0.02/0/0.02, dsn=5.1.1, status=bounced (unknown user: "info")
Sep 17 08:27:44 ip-10-134-177-117 postfix/local[15567]: 22FC468106: to=<nithin.kv@jivity.com>, relay=local, delay=0.98, delays=0.03/0.02/0/0.93, dsn=5.1.1, status=bounced (unknown user: "nithin.kv")
Sep 17 08:27:45 ip-10-134-177-117 postfix/smtp[15565]: 22FC468106: to=<jivitydeals@gmail.com>, relay=gmail-smtp-in.l.google.com[74.125.45.26]:25, delay=2.9, delays=0.03/0.02/0.93/1.9, dsn=2.0.0, status=sent (250 2.0.0 OK 1316248065 g47si9242631yhn.13)
Sep 17 08:27:45 ip-10-134-177-117 postfix/smtp[15565]: 22FC468106: to=<jivityindia@gmail.com>, relay=gmail-smtp-in.l.google.com[74.125.45.26]:25, delay=2.9, delays=0.03/0.02/0.93/1.9, dsn=2.0.0, status=sent (250 2.0.0 OK 1316248065 g47si9242631yhn.13)
Sep 17 08:27:45 ip-10-134-177-117 postfix/smtp[15565]: 22FC468106: to=<thefornax@gmail.com>, relay=gmail-smtp-in.l.google.com[74.125.45.26]:25, delay=2.9, delays=0.03/0.02/0.93/1.9, dsn=2.0.0, status=sent (250 2.0.0 OK 1316248065 g47si9242631yhn.13)
Sep 17 08:27:45 ip-10-134-177-117 postfix/cleanup[15563]: F3DBA68107: message-id=<20110917082745.F3DBA68107@ip-10-134-177-117.ap-southeast-1.compute.internal>
Sep 17 08:27:46 ip-10-134-177-117 postfix/qmgr[17377]: F3DBA68107: from=<>, size=2815, nrcpt=1 (queue active)
Sep 17 08:27:46 ip-10-134-177-117 postfix/bounce[15568]: 22FC468106: sender non-delivery notification: F3DBA68107
Sep 17 08:27:46 ip-10-134-177-117 postfix/qmgr[17377]: 22FC468106: removed
Sep 17 08:27:46 ip-10-134-177-117 postfix/local[15566]: F3DBA68107: to=<www-data@jivity.com>, relay=local, delay=0.02, delays=0.01/0/0/0.01, dsn=2.0.0, status=sent (delivered to mailbox)
Sep 17 08:27:46 ip-10-134-177-117 postfix/qmgr[17377]: F3DBA68107: removed

如何告诉后缀将我的邮件发送到外部jivity.com,而不是将其视为本地域?谢谢。

EN

回答 2

Server Fault用户

回答已采纳

发布于 2011-09-18 10:03:27

最有可能的是,这个域名被列在后缀的mydestination指令中。解决方案是编辑/etc/后缀/main.cf并更改myhostname和mydestination指令:

代码语言:javascript
复制
myhostname = hostname.jivity.com
mydestination = $myhostname

这样,您的邮件服务器将只将hostname.jivity.com视为本地主机名,其他所有内容都将被正确路由。

票数 5
EN

Server Fault用户

发布于 2011-09-18 10:11:31

你的机器是那个邮件的这个最终目的地。您需要调整$mydestination,以便这样的邮箱不再在局部域类中,也不会得到转到当地的交通工具上

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

https://serverfault.com/questions/312673

复制
相关文章

相似问题

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