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.

Any help much appreciated. I am out of ideas.

  Doc

--
Web:  http://enginehousebooks.com/drevans

Reply via email to