简体   繁体   English

Magento / exim电子邮件未到达,发送到自己的域名

[英]Magento/exim emails not arriving, sent to and from own domain

We have an interesting problem related to Exim. 我们有一个与Exim相关的有趣问题。 We use Magento. 我们使用Magento。

Emails are being sent by our server to customers and we have the send copy by separate or bcc in backend. 电子邮件由我们的服务器发送给客户,我们在后端通过单独或密件发送副本。 We use Google apps MX. 我们使用Google应用MX。

But the email never arrives. 但电子邮件永远不会到来。 If the email is sent to a different email address or domain then it arrives. 如果电子邮件发送到其他电子邮件地址或域,则它会到达。 And if it is the same account: 如果它是相同的帐户:

  • sent from: info@domain.com 发送者:info@domain.com
  • to: customer@house.com 发送至:customer@house.com
  • bcc: info@domain.com 密送:info@domain.com

the emails don't arrive @ info@domain.com 电子邮件不会到达@ info@domain.com

Question : what can this be? 问题 :这可能是什么? I have the idea that exim is not sending the email with info@domain.com to the Google apps MX server for sending 我认为exim不会将带有info@domain.com的电子邮件发送到Google Apps MX服务器进行发送

ps. PS。 I already read this, but that is OK and not the problem http://inchoo.net/ecommerce/magento/fight-spam-emails/comment-page-1/#comment-53370 我已经读过这个了,但这没关系,而不是问题http://inchoo.net/ecommerce/magento/fight-spam-emails/comment-page-1/#comment-53370

Major thanks 非常感谢

UPDATE ADDED MAILLOG 更新增加的MAILLOG

2013-07-23 19:55:29 1V1go5-00034h-8G <= domain@domain.com U=domain P=local S=10216 T="Uw bestelling is vandaag verzonden" from for rgoossSNIPPED@gmail.com contact@domain.com 2013-07-23 19:55:29 1V1go5-00034h-8G => contact@domain.com F= R=lookuphost T=remote_smtp S=10281 H=ASPMX.L.GOOGLE.com [2a00:1450:4013:c01::1a] X=TLSv1:RC4-SHA:128 C="250 2.0.0 OK 1374602129 r42si29746715eep.2 - gsmtp" 2013-07-23 19:55:30 1V1go5-00034h-8G => rgoossSNIPPED@gmail.com F= R=lookuphost T=remote_smtp S=10281 H=gmail-smtp-in.l.google.com [2a00:1450:4013:c01::1a] X=TLSv1:RC4-SHA:128 C="250 2.0.0 OK 1374602130 x6si29680305eew.317 - gsmtp" 2013-07-23 19:55:30 1V1go5-00034h-8G Completed 2013-07-23 19:55:29 1V1go5-00034h-8G <= domain@domain.com U =域P =本地S = 10216 T =“Uw bestelling is vandaag verzonden”from rgoossSNIPPED@gmail.com contact @ domain .com 2013-07-23 19:55:29 1V1go5-00034h-8G => contact@domain.com F = R = lookuphost T = remote_smtp S = 10281 H = ASPMX.L.GOOGLE.com [2a00:1450:4013 :c01 :: 1a] X = TLSv1:RC4-SHA:128 C =“250 2.0.0 OK 1374602129 r42si29746715eep.2 - gsmtp”2013-07-23 19:55:30 1V1go5-00034h-8G => rgoossSNIPPED @ gmail .com F = R = lookuphost T = remote_smtp S = 10281 H = gmail-smtp-in.l.google.com [2a00:1450:4013:c01 :: 1a] X = TLSv1:RC4-SHA:128 C =“ 250 2.0.0 OK 1374602130 x6si29680305eew.317 - gsmtp“2013-07-23 19:55:30 1V1go5-00034h-8G已完成

2013-07-24 10:29:09 1V1uRZ-0005yg-PX <= domain@domain.com U=domain P=local S=10056 T="Uw bestelling is geplaatst en wordt verwerkt" from for SNIPPED@loyenslo-eff.com contact@domain.com 2013-07-24 10:29:10 1V1uRZ-0005yg-PX => contact@domain.com F= R=lookuphost T=remote_smtp S=10120 H=ASPMX.L.GOOGLE.com [2a00:1450:4013:c00::1b] X=TLSv1:RC4-SHA:128 C="250 2.0.0 OK 1374654550 z6si31979271eel.292 - gsmtp" 2013-07-24 10:29:10 1V1uRZ-0005yg-PX => SNIPPED@loyenslo-eff.com F= R=lookuphost T=remote_smtp S=10120 H=mail.loyenslo-eff.com [62.132.204.200] C="250 ok: Message 36327691 accepted" 2013-07-24 10:29:10 1V1uRZ-0005yg-PX Completed 2013-07-24 10:29:09 1V1uRZ-0005yg-PX <= domain@domain.com U =域P =本地S = 10056 T =“Uw bestelling is geplaatst en wordt verwerkt”from SNIPPED @ loyenslo-eff。 com contact@domain.com 2013-07-24 10:29:10 1V1uRZ-0005yg-PX => contact@domain.com F = R = lookuphost T = remote_smtp S = 10120 H = ASPMX.L.GOOGLE.com [2a00 :1450:4013:c00 :: 1b] X = TLSv1:RC4-SHA:128 C =“250 2.0.0 OK 1374654550 z6si31979271eel.292 - gsmtp”2013-07-24 10:29:10 1V1uRZ-0005yg-PX = > SNIPPED@loyenslo-eff.com F = R = lookuphost T = remote_smtp S = 10120 H = mail.loyenslo-eff.com [62.132.204.200] C =“250 ok:消息36327691已接受”2013-07-24 10: 29:10 1V1uRZ-0005yg-PX已完成

And I updated some settings. 我更新了一些设置。 This is what I am seeing: 这就是我所看到的:

2013-07-29 14:40:11 1V3mkF-0004vN-Jf <= info@mywebstore.com U=shirts350 P=local S=11736 T="Uw bestelling is geplaatst en wordt verwerkt" from <info@mywebstore.com> for info@mywebstore.com
2013-07-29 14:40:12 1V3mkF-0004vN-Jf => info@mywebstore.com F=<info@mywebstore.com> R=lookuphost T=remote_smtp S=11810 H=ASPMX.L.GOOGLE.com [2a00:1450:4013:c01::1a] X=TLSv1:RC4-SHA:128 C="250 2.0.0 OK 1375101612 3si5304843eej.103 - gsmtp"
2013-07-29 14:40:12 1V3mkF-0004vN-Jf Completed

2013-07-29 14:40:12 1V3mkG-0004vS-1k <= info@mywebstore.com U=shirts350 P=local S=11740 T="Uw bestelling is geplaatst en wordt verwerkt" from <info@mywebstore.com> for mytestemail@gmail.com
2013-07-29 14:40:12 1V3mkG-0004vS-1k => mytestemail@gmail.com F=<info@mywebstore.com> R=lookuphost T=remote_smtp S=11814 H=gmail-smtp-in.l.google.com [2a00:1450:4013:c00::1b] X=TLSv1:RC4-SHA:128 C="250 2.0.0 OK 1375101612 e5si53052514eeg.102 - gsmtp"
2013-07-29 14:40:12 1V3mkG-0004vS-1k Completed

I changed the exim.conf file but this is not The solution. 我更改了exim.conf文件,但这不是解决方案。 Email from and to The Same domain. 来自和来自同一域的电子邮件。 And from and to The Same email ard not sent 并且来自和发送相同的电子邮件ard

As I understand it: 据我了解:

The code below looks at local_domains to see of the email is for here, or the outside world. 下面的代码查看local_domains,以查看此处或外部世界的电子邮件。 As our email is not handled by the local mail server, but rather google local domains should also be routed via smtp 由于我们的电子邮件不是由本地邮件服务器处理,而是谷歌本地域也应该通过smtp路由

this line excludes local domains from smtp 此行从smtp中排除本地域

domains = ! domains =! +local_domains + local_domains

so we uncommented it 所以我们取消评论它

thx 谢谢

# This router routes to remote hosts over SMTP using a DNS lookup. Any domain
# that resolves to an IP address on the loopback interface (127.0.0.0/8) is
# treated as if it had no DNS entry.

lookuphost:
  driver = dnslookup
  # domains = ! +local_domains
  ignore_target_hosts = 127.0.0.0/8
  condition = "${perl{check_limits}}"
  transport = remote_smtp
  no_more

I've run into this same problem and this is how I solved it. 我遇到了同样的问题,这就是我解决它的方法。 Instead of changing lookuphost like the other answer, I added another router 我没有像其他答案一样改变lookuphost,而是添加了另一个路由器

In the routers section of my exim conf after the lookuphost router, I added 在lookuphost路由器之后我的exim conf的路由器部分,我补充说

routetogoogle:
  driver = manualroute
  route_list = mydomain.com 
  transport = remote_smtp

This manually forces anything going to mydomain.com to use the remote_smtp transport which will look up the correct MX records. 这会手动强制任何进入mydomain.com的东西使用remote_smtp传输,它将查找正确的MX记录。 Subtle difference from changing lookuphost - but this will allow you to still deliver mail locally for other domains if needed. 与更改lookuphost的细微差别 - 但这将允许您在必要时仍在本地为其他域提供邮件。

我有一个在EC2实例中运行的magento和电子邮件托管我使用bluehost,我通过在系统 - >配置 - >高级 - >系统 - >邮件发送设置中将“ 设置返回路径设置来解决此问题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM