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

Giovanni Bechis giovanni at paclan.it
Sat Jul 20 09:38:57 CEST 2019


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;

 Giovanni



More information about the amavis-users mailing list