开发者

Sending locally sent email (with sendmail) to Google Apps Mail Server

开发者 https://www.devze.com 2022-12-21 19:46 出处:网络
I have a domain, call it mydom.com. A while ago I started using Google App\'s email server. I set up MX and the rest of the stuff records as Google wanted, and all is working well since.

I have a domain, call it mydom.com. A while ago I started using Google App's email server. I set up MX and the rest of the stuff records as Google wanted, and all is working well since.

On www.mydom.com I have a website, DNS and still running mail server (which basically doesn't do much). Among other things, on www.mydom.com, I have some contact form - basic php page that takes user's input and sends it to predefined email address at mydom.com. It sends it with php's sendmail function.

My issue is - all those email that get sent from localhost to *@mydom.com (by php's function, or possible by some cron jobs reporting some issues) DO NOT go to Google's email servers but instead get picked up by localhost and it's mail server.

So far, I was resolving this issue by setting up a new mail account at Google account, which was开发者_运维技巧 basically calling my local mail server by it's IP address, logging into old, abandoned email account and pulling those misplaced emails to the new, @mydom.com account at Google App.

Obviously I'm missing some entry either in local DNS, host file or something.. Does anyone know how do I fix it?


Hey, the same question was asked here: https://serverfault.com/questions/102647/sendmail-to-local-domain-ignoring-mx-records-part-2

and the answer to it works for me, don't forget to include the dot after the domain!

If it doesn't work to the test call and see how the mail traces.

best of luck, svullo

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号