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 decided to have a separate mail server for my app. When i use php to send email, postfix sends successfully to other domains( etc), but uses local relay for the addresses hosted on my mail server. The MX record works fine. All i need is to get the local addresses out. I dont know where to start. Please, help.

share|improve this question
up vote 1 down vote accepted

I believe you're looking for the relayhost configuration option. In your /etc/postfix/ file, enter a line containing relayhost = This should make all outgoing mail go through

--Christopher Karel

share|improve this answer
postconf -e "local_transport = error:No local mail delivery"
share|improve this answer

postconf -e "local_transport = smtp:[external.relay]"

share|improve this answer
What does that do, why should it work? – Chris S Jan 4 '13 at 16:42

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.