简体   繁体   中英

directadmin/exim not delivering email from phpsendmail to (same) google apps domain

I've been trying to figure this one out for a while.

We use Magento. And it sends order emails to customers from the address contact@domain.com through php sendmail. A BCC or separate email is sent (as a copy) to contact@domain.com

The customer receives the email. But the BCC or separate email to contact@domain.com never arrives in our google apps account (sent from contact@domain.com to contact@domain.com).

Help appreciated.

Sean


We followed this http://help.directadmin.com/item.php?id=8

Even this shell command does not reach the contact@domain.com emailbox

echo "Test" | mail -s "Test" contact@domain.com

exim bt output

[domain@vpsxxxx ~]$ exim -bt contact@domain.com
contact@domain.com
  router = lookuphost, transport = remote_smtp
  host ASPMX.L.GOOGLE.com      [2a00:1450:4008:c01::1a] MX=10
  host ASPMX.L.GOOGLE.com      [74.125.136.26]          MX=10
  host ALT2.ASPMX.L.GOOGLE.com [2a00:1450:4008:c01::1b] MX=20
  host ALT2.ASPMX.L.GOOGLE.com [74.125.143.27]          MX=20
  host ALT1.ASPMX.L.GOOGLE.com [173.194.69.26]          MX=20
  host ASPMX4.GOOGLEMAIL.com   [74.125.25.26]           MX=30
  host ASPMX5.GOOGLEMAIL.com   [173.194.64.26]          MX=30

Log records from main log

2014-01-25 17:08:26 1W75mT-0004xJ-L9 => contact@domain.com F=<user1@vpsxxxxxx.public.cloudvps.com> R=lookuphost T=remote_smtp S=580 H=ASPMX.L.GOOGLE.com [2a00:1450:4008:c01::1a] X=UNKNOWN:ECDHE-RSA-AES128-GCM-SHA256:128 C="250 2.0.0 OK 1390666106 k2si7548786bkr.9 - gsmtp"
2014-01-25 17:09:47 1W75nn-0004yi-At <= domain@vpsxxxxxx.public.cloudvps.com U=domain P=local S=537 T="Test" from <domain@vpsxxxxxx.public.cloudvps.com> for contact@domain.com
2014-01-25 17:09:47 1W75nn-0004yi-At => contact@domain.com F=<domain@vpsxxxxxx.public.cloudvps.com> R=lookuphost T=remote_smtp S=555 H=ASPMX.L.GOOGLE.com [2a00:1450:4008:c01::1a] X=UNKNOWN:ECDHE-RSA-AES128-GCM-SHA256:128 C="250 2.0.0 OK 1390666187 om1si7503738bkb.219 - gsmtp"

I found this sollution, which works for all my clients!

  1. Login as admin
  2. Click Show all Users
  3. Find the user that owns the domain
  4. Click that user
  5. Click Modify User
  6. Make sure DNS Control is checked and Save
  7. Click Home and Repeat 2-4
  8. Click Login as
  9. Click the domain if there is more than one. If only one skip this step.
  10. Click MX records
  11. Uncheck "Use this server to handle my emails" which is under the "Local Mail Server" section.

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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