[Exim] Bug: Missing mail headers with "logwrite = :reject: .…

Top Page
Delete this message
Reply to this message
Author: Tor Slettnes
Date:  
To: Exim Users
Subject: [Exim] Bug: Missing mail headers with "logwrite = :reject: ..."
Hello,

There seems to be a bug in the "logwrite" ACL modifier. In my
acl_smtp_data ACL, I am trying the following:

> # 40_exim4-config_check_data
> acl_check_data:
>
>    [...]

>
>    warn message     = X-Spam-Score: $spam_score
>         spam        = mail:true

>
>    warn message     = X-Spam-Status: $spam_report
>         spam        = mail:true

>
>    accept
>         spam        = mail
>         control     = fakereject
>         logwrite    = :main,reject: Classified as spam (score
> $spam_score)
>         delay       = 20s


In /var/log/exim4/rejectlog, I see all mail headers except for the two
I just added here, "X-Spam-Score:" and "X-Spam-Status:".

For now, as a workaround, I explicitly embed the information I want in
the "logwrite" line:

>    accept
>         spam        = mail
>         control     = fakereject
>         logwrite    = :main: Classified as spam (score $spam_score)
>         logwrite    = :reject: SPAM: $spam_report
>         delay       = 20s



-tor