Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Our webserver just changed its name from old.example.com to new.example.com. There is already a mail domain called new.example.com on another server. Now sendmail is confused, because it considers any user@new.example.com 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, other.example.com)dnl to sendmail.mc 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 at 16:38
    
Writing to mc file and restarting sendmail is not enough. You have to generate the new sendmail.cf from sendmail.mc before restarting sendmail service : m4 /path/to/sendmail.mc > /path/to/sendmail.cf. Make backup before all –  krisFR Apr 11 at 17:25

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.