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.

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

1 Answer 1

what you need is to specify the relayhost parameter in main.cf (usually /etc/postmaster/main.cf):

relayhost = [relayserver]

after editing the file, reload postfix:

# postfix reload [enter]
share|improve this answer

Your Answer

 
discard

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.