Log SpamAsssassin X-Spam-Status (rules and scores) into amavis log file

Henrik K hege at hege.li
Sat Jul 20 10:34:18 CEST 2019


On Sat, Jul 20, 2019 at 07:38:57AM -0000, Giovanni Bechis wrote:
> mabi <mabi at protonmail.ch> wrote:
> > [-- text/plain, encoding base64, charset: UTF-8, 10 lines --]
> > 
> > ????????????????????? Original Message ?????????????????????
> > On Friday, July 19, 2019 3:55 PM, Dominic Raferd <dominic at timedicer.co.uk> wrote:
> > 
> >> The X-Spam-Status header is added by Amavis itself. With postfix (and postfix-pcre) you could log it thus (untested):
> > 
> > Thank you Dominic for that trick. Unfortunately I am not using Postfix but OpenSMTPD. So I will see maybe if OpenSMTPD can somehow extract this information too.
> 
> I have this line in amavisd.conf and it just works with OpenSMTPD as well, no need to depend on mta.
> 
> $log_templ = $log_verbose_templ;

Heh yes it seems it's this simple.. sorry for my noise :D



More information about the amavis-users mailing list