Wouldn't procmail do something like this? I haven't used procmail for quite some time, but iirc it can handle passing to a filter program, then the filter can hand it to the lmtp (dovecot for instance).
Just a thought. I now return to the lurkers lair. --Curtis On February 15, 2019 6:58:00 AM EST, Andrey Repin <anrdae...@yandex.ru> wrote: >Greetings, Jan P. Kessler! > >>>> Does anyone have any suggestions for a tool for filtering out click >>>> trackers from links in email bodies and rewriting the links without >>>> the click tracking? >>> Anything that does this will also break DKIM, if the email has it >>> (which many do). But perhaps you are confident that your users won't >>> be bothered about this. > >> Isn't DKIM usually checked at MX (or at a downstream content filter)? >> Then it would not necessarily bother users: > >It is checked where it is checked. This includes MUA for those capable >of >validating it. > >> Step-1: MX checks DKIM, acts on that information (reject or pass) and >> optionally removes DKIM-header >> Step-2: MX passes mail to click track remover, after that to user's >mailbox > >> Or did I miss something? > >Other message signing techniques, as indicated above. > > >-- >With best regards, >Andrey Repin >Friday, February 15, 2019 14:56:57 > >Sorry for my terrible english... -- Sent from my Android device with K-9 Mail. Please excuse my brevity.