Re: [exim] Remove headers before ACL

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Alexandre Busquets Triola
Dátum:  
Címzett: exim-users
Tárgy: Re: [exim] Remove headers before ACL
I have problems with emails with sender spamassassin headers

This is a sample

X-Spam-Status: Yes, score=8.0 required=7.0 tests=BAYES_50,FORGED_MUA_OUTLOOK,
    HOST_EQ_STATIC,HOST_EQ_STATICIP,HOST_MISMATCH_NET,SUBJ_ALL_CAPS autolearn=no
    version=3.1.9
X-Spam-Level: ********
X-Spam-Checker-Version: SpamAssassin 3.1.9 (2007-02-13) on
    arg0748.imaginalia.es
X-Spam-Score: -0.9 (/)


My server says

X-Spam-Score: -0.9 (/)


My configuration is:

acl_check_content:

  warn message = X-Spam-Flag:YES
        !authenticated = *
        condition = ${if <{$message_size}{1200k}{1}{0}}
        spam      = spamd:true
        condition = ${if >{$spam_score_int}{50}{1}{0}}


  warn message   = X-Spam-Score: $spam_score ($spam_bar)
        !authenticated = *
        condition = ${if <{$message_size}{1200k}{1}{0}}
        spam      = spamd:true
        #condition = ${if >{$spam_score_int}{50}{1}{0}}



deny message   = This message scored $spam_score spam points. See
http://www.sput.nl/spam/
        !authenticated = *
#       !hosts         = +relay_from_hosts
        condition = ${if <{$message_size}{1200k}{1}{0}}
        spam            = spamd:true
        condition = ${if >{$spam_score_int}{150}{1}{0}}



,......


virtual_delivery:
  driver = appendfile
  mode = 0600
  maildir_format = true
  delivery_date_add
  envelope_to_add
  return_path_add
  create_directory = true
  headers_remove = Subject : X-Spam-Flag
  headers_add = Subject: ${if eq{$h_X-Spam-Flag:}{YES} {*****SPAM*****
$h_Subject:}{$h_Subject:}}
  directory = ${lookup sqlite{/etc/gestionaisp/gestionaisp.db select smtp
from users,domains \
                where localpart = '${quote_sqlite:$local_part}' \
                and domain = '${quote_sqlite:$domain}' \
                and users.domain_id = domains.domain_id}}


,......






2008/7/11 Phil Pennock <exim-users@???>:

> On 2008-07-11 at 13:24 +0400, Gennady Proskurin wrote:
> > You can also remove headers in system filter (after acl and before
> routers or transports)
>
> Thank you.
>
> (I thought so, but couldn't find it in a search of filters.txt to
> double-check and got confused; it's system filters only and so
> documented in the main documentation, which I failed to check. My
> mistake.)
>
> --
> ## List details at http://lists.exim.org/mailman/listinfo/exim-users
> ## Exim details at http://www.exim.org/
> ## Please use the Wiki with this list - http://wiki.exim.org/
>