Email not received at Google Apps

November 12, 2014 1.3k views

I'm testing to send an email with "echo test | mail" and I can receive the email.
But not to my google apps email (echo test | mail
I dont receive that email (already checked the spam folder as well).
There should not be any issue with the DNS I believe as I can send/receive the Google apps email as usual from external source.

I'm asking this because the Contact Form 7 in my website doesnt work. When I changed to my personal gmail I do receive it. So I come down to this testing process and that's what I encountered.

Here's my DNS zone file
$TTL 1800 IN SOA 1415421753 10800 3600 604800 1800 1800 IN A 1800 IN NS 1800 IN NS 1800 IN NS 1800 IN A 1800 IN MX 1 1800 IN MX 5 1800 IN MX 5 1800 IN MX 10 1800 IN MX 10

Why can't I receive email in my Google Apps here?
Thanks for any help.

1 Answer

Are you using sendmail?

I have the same problem before, if your droplet's hostname is the same as the receiving domain.

sendmail will deliver the mail locally.

You may verify that by checking /var/mail/<myemail>.

You can follow this post to disable sendmail's local delivery.

Have another answer? Share your knowledge.