Am 20.01.2011 17:34, schrieb Andrea Scarso:
Hi,
i need to make a configuration to send mails as below:

u...@domain.com ---->  IP1
user.to...@domain.com ---->  IP2

So i added on transport_maps:
domain.com smtp:[IP1]

and on header_checks:
/^to:.*\.town1@domain\.com/       FILTER smtp:[IP2]

It's ugly, but it works... obviously EXCEPTS for mails sent to both addresses.
In fact if I send to us...@domain.com and in copy to
user2.to...@domain.com, the FILTER sends the mail to IP2 only.

Is there a way to make postfix send one mail to us...@domain.com via
IP1, and one mail to user2.to...@domain.com via IP2?

I know a third level domain should be used, but I'm not the admin of
the domain.com servers.

Thanks!
Andrea

Hi Andrea,

If I get you right you want filtering (or no filtering) per domain.
Try restriction classes.
http://www.postfix.org/RESTRICTION_CLASS_README.html

John

Reply via email to