D. R. Evans:
> I have a postfix setup that, for a long time, has done exactly what I want. 
> But now I have to change something and I have no idea how to make this 
> particular change:
> 
> E-mail from several domains are sourced on my network. Now I need to treat 
> e-mail with the From: line
>    u...@domain1.com
> differently from e-mail with the From: line
>    otheru...@domain2.com
> 
> Until now, both those From: lines have been treated the same -- some 
> processing, then mostly sent to a relayhost, with some specific destinations 
> handled via the transport map; but now I need to send all e-mails with the 
> second From: line to a different relayhost from the one that handles the 
> first 
> From: line.

There are two features that support sender-dependent routing:

sender_dependent_relayhost_maps

    This looks up a relayhost value that depends on sender.
    Like relayhost, this uses default_transport.
    It is seached with the envelope sender address and @domain.

sender_dependent_default_transport_maps

    This overrides transport and destination.
    It is seached with the envelope sender address and @domain.

In most cases, sender_dependent_relayhost_maps will do the job.

sender_dependent_default_transport_maps can be used to implement
quality of service for different senders.

        Wietse

> It's been more than a decade since I've had much to do with postfix 
> configuration, so I don't remember a whole lot; but looking around online I 
> couldn't find any hints as to how to deal with the above situation. So any 
> pointers would be gratefully received.
> 
>    Doc Evans
> 
> -- 
> Web:  http://enginehousebooks.com/drevans
> 

Reply via email to