On 3/9/2011 6:29 AM, deconya wrote:
Hi guys
I need to configure my server to relay domains to and antispam
server but by different hosts. I was looking and now I have
doubts.In my configuration Im using two variables, relayhost
and mydestination. I need to change it and I found to use
transport_maps but I don't view examples to understand how it
works and If is the best option.Someone can help me ?
I need to map subdomains of the root domain to appoint to
different servers.
For exemple:
sub1.domain,com:10.0.0.10
sub2.domain.com:10.0.0.11
Thanks for your time
Best Regards
Yes, transport_maps is the right solution for sending
different domains to different spam filter destinations.
The setup would look something like:
# main.cf
transport_maps = hash:/etc/postfix/transport
# /etc/postfix/transport
one.example.com relay:[10.10.10.1]
two.example.com relay:[10.10.10.2]
The "[ ]" brackets are required when you use an IP address for
the nexthop.
Run "postfix reload" after editing main.cf
Run "postmap transport" after editing the transport file
The transport table is essentially a global postfix property.
If the mail from the spam filter is returned to postfix,
you'll need another instance of postfix (not just another
smtpd listener) to route the mail properly to its final
destination.
http://www.postfix.org/MULTI_INSTANCE_README.html
-- Noel Jones