On 18.05.22 14:05, Jaroslaw Rafa wrote:
I want to do sender address rewriting on outgoing mail similar to what
sender_canonical_maps does, but only for mail that is sent to one
particular domain (for example gmail.com). If the mail has no recipients in
that domain, rewriting should not be done.

The rewriting should happen both for mail that is submitted locally via
/usr/sbin/sendmail and for mail that is submitted from SMTP clients.

Is it possible to do it using only Postfix configuration directives or do I
need to use a milter for this?

are you trying to implement SRS when sending to gmail?

I'm just working on this issue (not only to gmail) - conditionally rewrite sender if it's not from local domain.

--
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.
Eagles may soar, but weasels don't get sucked into jet engines.

Reply via email to