Cron Email Locally

Residual Envy asked:

I have my crontab configured to mail to a specific address, for example purposes lets say “test@test.com”. test.com is also the host name of my box, however I have my mx email records configured externally to point at gmail domain. All emails work fine going to test.com and I log into there no problem.

However with crontab and I’m assuming other processes it sends the email locally, again assuming it thinks it should be accepting all emails going to test.com .

Suggestions on how to fix this without breaking outgoing emails sending from the test.com address?

Updated, the mail server is sendmail here is the config file: http://pastebin.com/4sSApB1y

My answer:


Rename the computer. Anything that’s not test.com would be sufficient. After all, this computer almost certainly isn’t. Perhaps chief.test.com or cortana.test.com?


View the full question and answer on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.