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

2020-10-20 Thread Matthias Rieber via Exim-users
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}{lo

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

2020-10-20 Thread Heiko Schlittermann via Exim-users
Matthias Rieber via Exim-users (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

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

2020-10-20 Thread Heiko Schlittermann via Exim-users
Hi Heiko, Heiko Schlichting via Exim-users (Di 20 Okt 2020 18:01:58 CEST): … > 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 configurat

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

2020-10-20 Thread Heiko Schlichting via Exim-users
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-

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

2020-10-20 Thread Wolfgang Breyha via Exim-users
On 20/10/2020 14:12, Matthias Rieber via Exim-users wrote:   data = ..ldap.. with   address_data = ..ldap..   data = $address_data Exactly. BTW, you can "transport" a lot more information than only the recipient address from your routers to an ACL. Basically everything $address_data can hold

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

2020-10-20 Thread Matthias Rieber via Exim-users
Hello, On Tue, 20 Oct 2020, Wolfgang Breyha via Exim-users wrote: On 20/10/2020 13:43, Matthias Rieber via Exim-users wrote: Another issue while trying to do that in the ACL phase was, that I couldn't access the result of the verified RCPT TO address. I thought the result of the last router is

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

2020-10-20 Thread Wolfgang Breyha via Exim-users
On 20/10/2020 13:43, Matthias Rieber via Exim-users wrote: Another issue while trying to do that in the ACL phase was, that I couldn't access the result of the verified RCPT TO address. I thought the result of the last router is available in the $address_data variable in the acl_smtp_rcpt ACLs. P

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

2020-10-20 Thread Matthias Rieber via Exim-users
Hello Jeremy, On Tue, 20 Oct 2020, Jeremy Harris via Exim-users wrote: On 19/10/2020 11:28, Matthias Rieber via Exim-users wrote: I'm passing mails to spamassassin via a transport like: I'm wondering if it's possible to NOT add new received header and a new envelope-to header? Not while u

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

2020-10-20 Thread Jeremy Harris via Exim-users
On 19/10/2020 11:28, Matthias Rieber via Exim-users wrote: I'm passing mails to spamassassin via a transport like: I'm wondering if it's possible to NOT add new received header and a new envelope-to header? Not while using that way of talking to SA. You could perhaps switch to a direct call

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

2020-10-20 Thread Matthias Rieber via Exim-users
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