dropping the hostname in sendmail
February 5, 2008 3:25 PM
Subscribe
I need to change sendmail from sending emails from individual machines as user@host.domain.com to user@domain.com.
any time I try and use unix mail ( among other things), and try and send an email, it always gets rejected as no host on this domain. I am NATed, so my internal DNS is fine for the local network, but all my machines are obviously aren't seen by the dns that my mail server in the ISP has.
This is on RHEL5 boxes. I had the same issue on osx, but It seems that they run postfix by default, vs sendmail on linux. This was a relatively easy fix in postfix, but so far, I haven't figured out sendmail after much googling.
On top of fixing this issue in the short term, Is this the correct way to handle this? Or is there some DNS fix that I am missing on my local network?
I would rather get sendmail working vs. installing postfix and disabling sendmail.
posted by brent_h to computers & internet (6 comments total)
1 user marked this as a favorite
MASQUERADE_AS(`domain.com')dnl
in /etc/mail/sendmail.mc, then to run a 'make' in /etc/mail to rebuild sendmail.cf. Then restart sendmail.
For more info
posted by 5MeoCMP at 3:40 PM on February 5, 2008