StormShadow's avatar

Mandrill not sending to Google Apps address

Hi there!

My app is sending most outgoing emails fine via the Mandrill API and Laravel 5.1

We are however having trouble with trying to send an email to the same address as the from field. We need this when a user is submitting a support request via a form on the site. e.g. admin@mysite.com (Mandrill) is sending to admin@mysite.com (Google Apps)

We have a Google Apps account to handle incoming mail to admin@mysite.com

That email never even shows up in the Mandrill dashboard, so I guess its getting blocked. When I change the to field to my own personal gmail address it sends fine.

Any hints on what i should do? is it a misconfiguration in Mandrill or Google Apps? Any help would be most appreciated :)

0 likes
4 replies
Bloomanity's avatar

There should be a log of some kind somewhere in the settings area that tells you why some emails are blocked.

Also you can contact them and ask for help.

layer7's avatar

I don't know if this is the case with Mandrill or in your case at all, but a lot of mail providers are starting to check the SPF record in DNS. If that is set as your domain, make sure that both the IP address of your web server running Laravel and the Mandrill IP addresses are contained within that IP address.

SPF is basically a definition of which servers can send mails for a particular domain. Besides a listing of the server IP's and hostnames, it can contain includes of other domains and such, but in your case perhaps more importantly, it can define how a receiving mail server should handle a mail request if SPF doesn't match. You can tell it to not care, be neutral, or to give it a negative rating (in which case your mail may be blocked or sent to spam).

More info about SPF: http://www.openspf.org/

Maybe this applies for you, maybe it doesn't. You can check if it does with the following command:

  1. For windows nslookup -type=txt yourdomain.com
  2. For linux dig txt yourdomain.com

Let us know if this helps.

Please or to participate in this conversation.