Re: [exim] Don't add received header for scanned mails

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Heiko Schlichting
Date:  
À: Matthias Rieber via Exim-users
Sujet: Re: [exim] Don't add received header for scanned mails
Hi,

Matthias Rieber wrote:
>
> I'm passing mails to spamassassin via a transport like:
>
> spamcheck:
>     no_verify
>     driver         = accept
>     condition      = ${if and {{!eq {$received_protocol}{spam-scanned}}{eq{$domain}{localhost}}}}
>     headers_remove = X-Spam-Flag:X-Spam-Report:X-Spam-Status:X-Spam-Level:X-Spam-Checker-Version
>     transport      = spam_check

>
> spam_check:
>     driver            = pipe
>     command           = /usr/sbin/exim -oMr spam-scanned -bS
>     use_bsmtp
>     transport_filter  = /usr/bin/spamc -u $local_part@$domain
>     home_directory    = /tmp
>     current_directory = /tmp

>
> I'm wondering if it's possible to NOT add new received header and a new
> envelope-to header?


No received header is added if received_header_text is set to an empty
string. You can use:

    received_header_text = ${if eq{$received_protocol}{spam-scanned} {} {...}}


Replace "..." with your configuration of received_header_text or the
default. See "exim -bP received_header_text" or documentation of this
option which shows the default.

Envelope-To: header can be suppressed by setting

    no_envelope_to_add


in the router.

Regards,
Heiko

Heiko Schlichting                Freie Universität Berlin
heiko.schlichting@???   Zentraleinrichtung für Datenverarbeitung
Telefon +49 30 838-54327         Fabeckstraße 32
Telefax +49 30 838454327         14195 Berlin