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'm in over my head, and became in charge of a Linux server that runs a tomcat application. The application currently is configured to send email directly to a postfix relay server. I was asked if it would be possible to set up Postfix locally on the server and have the app send mail to it, and then have Postfix deliver to the mail relay server. I said "sure!", but now I'm not sure how to do this. Can someone point me in the right direction? I'm not sure what the terminology I need to search for is. If the mail relay server is down, will the local Postfix instance queue the mail until it can be delivered?

thanks for the help.

share|improve this question

what you need is to specify the relayhost parameter in (usually /etc/postmaster/

relayhost = [relayserver]

after editing the file, reload postfix:

# postfix reload [enter]
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.