[exim] Selectively add spamassassin headers to messages

Góra strony
Delete this message
Reply to this message
Autor: Kate Dawson
Data:  
Dla: exim-users
Temat: [exim] Selectively add spamassassin headers to messages
Hi,

I am adding spamassassin headers to all messages by using

warn
spam = Debian-exim:true
    add_header = X-CORP-Spam-Score: $spam_score ($spam_bar)
    add_header = X-CORP-Spam-Report: $spam_report
    log_message = spam score =  $spam_score



BUT,

I am seeing failures when delivering to a host using postfix and amavisd
- who send me the helpful error message

>  INVALID HEADER                                                                                                                                              

>
>   Improper folded header field made up entirely of whitespace (char 20
>   hex):                                                                                
>     X-CORP-Spam-Report: ...that system for details.\n \n
>     Content                                                                                    
>     previ[...]                                                                                                                                              

>


I would like to add a condition so that the header is NOT added when
sending email is destined for the recipients on that host.

Can I add a

hosts = ! +no_spam_headers

line ?


Otherwise, how best to do this ?


Thanks in advance.

Kate Dawson
--
"The introduction of a coordinate system to geometry is an act of violence"