This is a discussion on forwarding within the mailing.postfix.users forums, part of the Mail Servers and Related category; New to Postfix. Not sure how to accomplish this. Right now I've got MS-SMTP behind NAT. Ports 25 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
New to Postfix. Not sure how to accomplish this.
Right now I've got MS-SMTP behind NAT. Ports 25 and 587 forwarded. I would like to forward 25 to Postfix, so Postfix can perform filtering, and then Postfix can forward mail to MS-SMTP. Users could still auth-relay with MS-SMTP on port 587. I'm not worried about filtering at this point. I'd just like to get forwarding going. I need to forward e-mail for three domains from Postfix to MS-SMTP and disable all other traffic on Postfix. I've read doc after doc and I'm still not sure how to make this happen. Will continue researching... Help much appreciated. |
|
|||
|
Allow me to simplify my example:
I've got two Postfix (pf1 and pf2) open relays and an MS-SMTP (ms). DNS: pf1.domain.com a 192.168.0.7 pf2.domain.com a 192.168.0.8 ms.domain.com a 192.168.0.2 domain.com mx pf2.domain.com MUA sends mail for anybox@domain.com to pf1.domain.com (designated SMTP). pf1.domain.com sends mail for anybox@domain.com to pf2.domain.com (designated MX). How do I get pf2.domain.com to forward mail for anybox@domain.com to ms.domain.com. |
|
|||
|
"D" <d@invalid> wrote in news:4299202e$0$85758$892e7fe2
@authen.white.readfreenews.net: > How do I get pf2.domain.com to forward mail for anybox@domain.com to > ms.domain.com. something like: main.cf: relay_domains = domain.com transport_maps = hash:/etc/postfix/transport /etc/postfix/transport: domain.com smtp:[192.168.0.2] If you do something like this, you will probably want to setup relay_recipient_maps so that invalid mail is rejected upfront instead of passed on and bounced later. |
|
|||
|
Thanks.
I wonder, is it possible to use a wildcard in the virtual alias map? Something like: postmaster@* postmaster@domain.com |