I'm having some difficulty figuring out how to configure both recipient and
sender dependent relay hosts.

1. Some of my users need to send mail through specific relay hosts with
login:password;
2. Other users on the same box will use the local SMTP server to relay
mail: the default transport if you will, without password;
3. Finally, some outgoing mail has to be routed through other relay hosts
according to the recipient domain without consideration of the sender.
Those relays have login:password.

Option 1 can be configured by using the sender_dependent_relayhost_maps
option and both a sender_relay and a sasl_passwd file.

Option 2 is selected by Postfix if the specified sender is not found in the
sender_relay file mentioned above.

Option 3 is made possible by using a transport_map file where the specific
recipient domain is listed, with a proper [some-relay.tld]:587 affixed.

But where do I put the login:password of [some-relay.tld]:587?  If I put it
in the sasl_passwd file, ALL mail not specified in the sender_relay file is
routed through [some-relay.tld]:587, and not the local SMTP relay.

Is there any configuration that could make 1, 2 and 3 possible concurrently?

Thanks for your help.

----------------------------------------

François

Reply via email to