On 23.06.22 14:43, Derek B. Noonburg wrote:
I'm running postfix to handle email for several users.  One of them
has a .forward file that points to a gmail address.  Gmail's servers
are rejecting some email for various causes ("low reputation of
sending domain", SPF failures).

one of tricks is implementing sender rewriting scheme when forwarding mail: https://en.wikipedia.org/wiki/Sender_Rewriting_Scheme

one of way to implement this is using postsrsd for canonical_maps:
https://github.com/roehling/postsrsd

one issue is that canonical_maps only works when receiving mail, so:
- either you'll have to rewrite senders for all incoming mail
- or you'll have to send outgoing mail via another postfix instance, e.g. postfix on different port that will do the SRS.

nice part of this is that this works with forwarding via .forward, aliases or virtual_alias_maps.

ugly part of this is that is anyone will forward their mail to non-existing address, the original sender (which may not know mail has been forwarded) will get the bounce (sending them I have implemented a trick where postmaster will get copy of all bounces to SRS0/SRS1 addresses handle, the mail can be redirected instead of copying.


--
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.
Christian Science Programming: "Let God Debug It!".

Reply via email to