|Main Archive Page > Month Archives > postfix-users archives|
On Thu, Jan 20, 2011 at 05:34:52PM +0100, Andrea Scarso wrote:
> i need to make a configuration to send mails as below:
> firstname.lastname@example.org ----> IP1
> email@example.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...
It's not only ugly, but it does NOT work, since FILTER is a
message-level action, in this case misapplied to a message feature that
is recipient-specific. Multi-recipient mail will be mis-routed.
> Is there a way to make postfix send one mail to firstname.lastname@example.org via
> IP1, and one mail to email@example.com via IP2?
Plenty of examples in the list archives, for example: