Sendmail Shows Return Address Domain localhost.localdomain

July 19, 2004

Look in /etc/mail and you'll see a Edit this file to the proper domain. You're looking for the LOCAL_DOMAIN directive. Then, you'll have to reconfigure the real sendmail config file ( by running

make -C /etc/mail

Just a warning- you'll need the sendmail-cf package installed to be able to do this. After that, everything should work pending a restart of the sendmail service.

Related Posts

1 Comment

Comment December 4, 2008 by anonymous
That didn't work on mine. I had to edit the /etc/hosts file and put the host name before localhost entry then restart sendmail service.