Thanks for the hint Noel.

The problem I found with sender_dependent_relayhost_maps is that

"This information is overruled with relay_transport, default_transport
and with the transport(5) table."

so if you already have a transport map for that particular domain, it
won't work. 

I will investigate the SASL/sender_relay thing.


Etienne 
-----Original Message-----
From: Noel Jones [mailto:njo...@megan.vbhcs.org] 
Sent: July 24, 2009 12:19 PM
To: Kenneth Marshall
Cc: Etienne Simard; postfix-users@postfix.org
Subject: Re: transport maps using "from" address field filtering

Kenneth Marshall wrote:
> On Fri, Jul 24, 2009 at 11:50:19AM -0400, Etienne Simard wrote:
>> Hi,
>>
>> I must have been searching at the wrong place or using the wrong 
>> keywords as I have been trying to find how to correctly transport to 
>> a particular smtp relay or have postfix do a MX query based on the
"from"
>> address field. I did look at the postfix doc, in se's and the 
>> postfix-users archives withtout any luck. The transport maps do a 
>> great job of doing it based on the "to" address field or domain but I

>> am still looking to find how to do it with a "from" field. I hope 
>> someone can point me to the right doc.
>>
>>
>> Etienne
>>
> 
> Hi Etienne,
> 
> We have been looking at a similar type of functionality but are using 
> the client IP address instead. The two options we looked at both set 
> the envelope recipient address using "+xxx" to encode the sender 
> information which could then be used by a prce/regex transport map to 
> send the message to the correct place. Either a policyd or a 
> header_checks content filter would work. We are going to use the 
> policyd to avoid processing a large data stream. Let me know what you 
> end up doing and if you find any other options.
> 
> Regards,
> Ken
> 

Look at
http://www.postfix.org/postconf.5.html#sender_dependent_relayhost_maps

and maybe also
http://www.postfix.org/SOHO_README.html#client_sasl_sender

   -- Noel Jones

Reply via email to