> but it is a C program and I am no C programmer ... > Do you like Perl better? You can use the before_send-hook inside your own Amavis::Custom [1] implementation. One caveat though is that one cannot modify a multi-recipient message differently for different recipients inside that hook.
[1] https://gitlab.com/amavis/amavis/raw/master/amavisd-custom.conf
