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

I have three servers running sendmail as an MTA:, and The first one, holds the email for users and provides IMAP service, for recipients other than it sends to an ISP MTA.

I want scripts on alpha and bravo to be able to send email alerts to that joe can pick up in his regular email using IMAP from

How do I configure sendmail on alpha and bravo to send mail to to rather than to joe's account on the sending machine?

share|improve this question
up vote 0 down vote accepted

alpha and bravo will only consider mail for to be local if they have defined in /etc/mail/local-host-names.

Each host should have it's hostname listed, not the domain name. should have both it's hostname and the domain name listed.

Mail should then route correctly, so long as your MX records are also correct.

share|improve this answer
That helped. I should have mentioned that replaced as the LAN email server and so the local-host-names file on alpha did indeed contain as well as – RedGrittyBrick Sep 29 '10 at 14:20

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.