D. R. Evans:
> I must be doing something particularly obviously stupid, because doing my best
> to follow the advice from Wietse in the thread "different treatment for
> different From: domains", I have tried everything I can think of, and am
> unable to get sender_dependent_relayhost_maps to actually change the relayhost
> for mails from a particular domain.
>
> 1. I created the following /etc/postfix/relayhost_maps file:
>
> ----
> @arrl.net       [smtp.pobox.com]:587
> ----
>
> 2. I added the following to main.cf:
>
> sender_dependent_relayhost_maps = hash:/etc/postfix/relayhost_maps
>
> 3. I executed:
>
> postmap /etc/postfix/relayhost_maps
>     and
> postfix reload
>
> My understanding from the little I can find on the subject is that
> with this configuration, when the server receives an e-mail from
> my address n...@arrl.net, it should now forward it to smtp.pobox.com:587.
> But it doesn't.  It still forwards it to the host identified by
> the ordinary relayhost= line in main.cf.

Basic questions: 

1) Does Postfix log n...@arrl.net as the envelope sender?

    <date> <time> host postfix/qmgr[pid]: queueid: from=<???>,
        size=nnn, nrcpt=nnn (queue active)

2) Are there any settings that OVERRIDE sender_dependent_relayhost_maps?
As documented, sender_dependent_relayhost_maps is overruled with
relay_transport, sender_dependent_default_transport_maps,
default_transport and with the transport(5) table.

        Wietse

Reply via email to