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

Etusivu
Poista viesti
Vastaa
Lähettäjä: Matthias Rieber
Päiväys:  
Vastaanottaja: exim-users
Aihe: Re: [exim] Don't add received header for scanned mails
Hello,

On Tue, 20 Oct 2020, Heiko Schlichting via Exim-users wrote:

> 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.


Thanks, I'll try that, too!

Regards,
Matthias