I have a RH server that I renamed a few days ago from XXXX to YYYY. Previously email sent from the server would be sent from [email protected]. After using hostname to rename the server, they now appear as coming from [email protected]. That changing the hostname causes this issue makes me believe there was something using a search pattern on emails to find xxxx.network.int and renaming that to @domain.com. If not, the same domain should have continued being used. Unfortunately I'm very new to linux and am having trouble finding where this renaming could take place.

I've looked in /etc/mail/sendmail.mc and there's nothing in there that seems to fit (likewise unless I'm doing it wrong, MASQUERADE_AS(`domain.com')dnl as suggested at http://www.cyberciti.biz/tips/sendmail-masquerading-configuration-howto.html has no effect.) Trying to find information on this subject with whatever keywords I use turns up plenty of information, but nothing that quite fits this issue. I'm sure this is just a problem caused by my unfamiliarity with Linux, however.

Any suggestions on where I need to go to resolve this issue?

  • HOW did you go about renaming the host?
    – tink
    Commented Apr 19, 2013 at 19:24
  • Sendmail, huh? Well, there's your first problem... Commented Apr 19, 2013 at 19:38
  • tink: The command to change the hostname is "hostname XXXX" as described here: linux.about.com/library/cmd/blcmdl8_named.htm Aaron: I'm pretty much figuring this out as I go, and sendmail is what's running on the server.
    – Ben
    Commented Apr 19, 2013 at 20:05

1 Answer 1


Turns out the first link I posted did not have all the steps required. I followed this link and was able to resolve the issue by adding the MASQUERADE_AS lines to the sendmail.mc, generating the .cf file, then updating the .sf file as described in steps 4-6 here: http://www.yolinux.com/TUTORIALS/Sendmail.html

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .