Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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 a web application that sends email connecting to localhost as the SMTP. The SMTP is using send mail. My configuration was working fine where all emails to * where handled by google apps for domain. My VPS was rebooted and now if the app tries to send emails to * it ends up in my root email box on the vps (not gmail). If I send to the same address from outside the server all works fine.

I know I was messing with some host settings a few weeks ago and I think after the reboot SOME setting took effect and now sendmail things should be handled locally. Any ideas what setting I might have messed up?

hostname still shows (not my domain).

share|improve this question
Try running 'sendmail -bt' and entering '$=w' on prompt shown. It should print list of domains which sendmail recognizes as local. – AlexD Jun 14 '11 at 16:38

If you are indeed running sendmail and not postfix or qmail (they both provide a binary named sendmail for compatibility reasons) then this blog post might be of help.

share|improve this answer

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.