PDA

View Full Version : Need help setting up Postfix for a unique use case


thecgmguy
11th June 2008, 01:21
Hi Guys,

Lemmie start by saying that I'm proficient with SMTP but completely clueless with postfix. Perhaps this is an easy thing to do.

I have multiple domains:

domaina.com
domainb.com
domainc.com

I'd like to setup my centos box so that it's a backup MX gateway for domaina:

Internet email addressed to user@domaina.com >> postfix gateway >> static route pointing to primary MX host for domaina.com.


I'd like to setup the same centos box so that it hosts all inbound mail for domainb:

Internet message for user@domainb.com >> postfix gateway >> stored locally

I'd like to setup the same centos box so that it forwards all mail for domainc to an external address:

Internet message for user@domainc.com >> postfix gateway >> redirects to someexternaladdressoutonthenet@somedomain.com

Is this possible? If so, how is this done? I have postfix installed with TLS support (as per falko's awesome perfect server setup). ISPConfig is NOT installed.

Thanks!

falko
11th June 2008, 14:36
I'd like to setup my centos box so that it's a backup MX gateway for domaina:

Internet email addressed to user@domaina.com >> postfix gateway >> static route pointing to primary MX host for domaina.com.Take a look here: http://www.howtoforge.com/postfix_backup_mx


I'd like to setup the same centos box so that it hosts all inbound mail for domainb:

Internet message for user@domainb.com >> postfix gateway >> stored locally This thread might help: http://www.howtoforge.com/forums/showthread.php?t=2

I'd like to setup the same centos box so that it forwards all mail for domainc to an external address:

Internet message for user@domainc.com >> postfix gateway >> redirects to someexternaladdressoutonthenet@somedomain.com

You can do this with Postfix transports. Take a look at man 5 transport