Re: [exim] scanning at ACL using external program

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Sander Smeenk
Dátum:  
Címzett: exim-users
Tárgy: Re: [exim] scanning at ACL using external program
Quoting Marcin Krol (mrkafk@???):

> > Exim can then make whatever headers you wish..
> ..except it's rather hard to add a header like this using Exim's builtin 
>   features:
> X-Spam-Status: Yes, score=15.9 required=15.0 tests=BOTNET,BOTNET_CLIENT,
>     BOTNET_IPINHOSTNAME,HTML_MESSAGE,URIBL_BLACK,URIBL_JP_SURBL
>     autolearn=spam version=3.2.3


No, that's rather easy. That would be:

                add_header = X-Spam-Status: $spam_report


In your DATA ACL.

I use:

warn
condition = <condition>
spam = <username>:true
set acl_m3 = ${if gt{$spam_score_int}{0}{${sg{$spam_bar}{\N\+\N}{*}}}{${sg{$spam_bar}{\N-\N}{}}}}
add_header = X-Spam-Level: ${acl_m3}
add_header = X-Spam-Status: $spam_report
add_header = X-Spam-Checker-Version: SpamAssassin (3.2.4) on $primary_hostname

And i get these headers:

X-Spam-Level:
X-Spam-Status: No, score=-1.8 required=4.0 tests=ALL_TRUSTED autolearn=disabled version=3.2.5
X-Spam-Checker-Version: SpamAssassin (3.2.4) on filter2.filter.dmz.bit.nl

(Sorry, i had no spam-example at hand)

-Sndr.
--
| The older you get, the better you realize you were.
| 1024D/08CEC94D - 34B3 3314 B146 E13C 70C8 9BDB D463 7E41 08CE C94D