Matthias Rieber via Exim-users <exim-users@exim.org> (Mo 19 Okt 2020 12:28:01 
CEST):
> Hello,
> 
> 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? I've concerns that this might affect relearning mails if
> this headers are added or modified.

While (as Jeremy proposes) a direct connection to SA might be the
preferrable way, you can try to configure the receiving Exim (the one
from the spam_check command, to set 

     received_header_text = ${if eq{$received_protocol}{spam-scanned}{}{<…>}}

At "<…>" you need to insert the original received header text, which you
might retrieve via

        exim -C /dev/null -bP received_header_text

    Best regards from Dresden/Germany
    Viele Grüße aus Dresden
    Heiko Schlittermann
--
 SCHLITTERMANN.de ---------------------------- internet & unix support -
 Heiko Schlittermann, Dipl.-Ing. (TU) - {fon,fax}: +49.351.802998{1,3} -
 gnupg encrypted messages are welcome --------------- key ID: F69376CE -

Attachment: signature.asc
Description: PGP signature

-- 
## List details at https://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/

Reply via email to