Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Our webserver just changed its name from to There is already a mail domain called on another server. Now sendmail is confused, because it considers any to be local, so we cannot send mails to the actual mail server. I'm trying to teach sendmail to see a different domain as local, but all my attempts have failed. I never really worked with sendmail, so I don't know much about how to configure it.

I added define(confDOMAIN_NAME, to and restarted the service, but it doesn't seem to make any difference. It still uses the machines hostname as local domain. Can anyone point me in the right direction here?

share|improve this question
Rename the host. Problem solved. – Michael Hampton Apr 11 '14 at 16:38
Writing to mc file and restarting sendmail is not enough. You have to generate the new from before restarting sendmail service : m4 /path/to/ > /path/to/ Make backup before all – krisFR Apr 11 '14 at 17:25

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.