0

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

2 Answers2

0

If you don't want mail send to test.com not to be delivered locally, then remove the domain from the sendmail config file. It is usually under /etc/mail/sendmail.mc with the option name LOCAL_DOMAIN(test.com). Comment that out with dnl at the beginning of the line. If you can't find test.com in that file, search it using grep in /etc/mail and remove it if is there to set local delivery of that domain.

Daniel t.
  • 9,061
  • 1
  • 32
  • 36
0

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?

Michael Hampton
  • 237,123
  • 42
  • 477
  • 940
  • haha I love it. The problem is Michael that I still want outgoing mail to come from test.com and renaming the computer something else appears to break that. – Residual Envy Feb 22 '13 at 20:51
  • So, [place your desired address in the `From:` field](http://serverfault.com/a/121154/126632), like you do everywhere else. – Michael Hampton Feb 23 '13 at 02:17