bumping if anyone has a better idea.

On 21.04.22 17:51, Matus UHLAR - fantomas wrote:
I'm trying to implement SRS using postsrsd. Since it always rewrites non-local sender (even for incoming mail) I'm trying to restrict it only for outgoing mail.

I managed configuring local SMTP server (alternative port) that rewrites sender using canonical_maps, but:

I would like only to send mail from non-local senders using sender_dependent_relayhost_maps:

sender_dependent_relayhost_maps = hash:/etc/postfix/sender_relayhost

% cat /etc/postfix/sender_relayhost
fantomas.sk     DUNNO
*               smtp:[localhost]:10027

is it possible to selectively route mail through next hop, ONLY if the sender domain is not my local one?

the only diferent way I see now is using another instance...

however, the docs of sender_dependent_relayhost_maps say that:

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

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

I guess that at least relay_transport and default_transport are nearly always set, so do I really need to undefine these in order to make sender_dependent_relayhost_maps work?

Or should I use sender_dependent_default_transport_maps instead, which seems not to support "*" or any other wildcard?

I'm trying to keep configuration and mail flow as simple as possible.


--
Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
On the other hand, you have different fingers.

Reply via email to