Re: [exim] rspamd add header ACL problem

2017-08-15 Thread Renaud Allard via Exim-users


On 08/15/2017 11:19 AM, Graeme Fowler wrote:
> On 11 Aug 2017, at 08:11, Renaud Allard via Exim-users
> > wrote:
>> condition   = ${if eq{$spam_action}{add header}}
> 
> I'd make that
> 
>   condition   = ${if match{$spam_action}{\N^add header$\N}}
> 
> Graeme

Actually, the condition works, it was just not at the right place in the
ACL block.



smime.p7s
Description: S/MIME Cryptographic 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/

Re: [exim] rspamd add header ACL problem

2017-08-15 Thread Graeme Fowler via Exim-users
On 11 Aug 2017, at 08:11, Renaud Allard via Exim-users > wrote:
> condition   = ${if eq{$spam_action}{add header}}

I'd make that

  condition   = ${if match{$spam_action}{\N^add header$\N}}

Graeme
-- 
## 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/


[exim] rspamd add header ACL problem

2017-08-11 Thread Renaud Allard via Exim-users
Hello,

I recently installed rspamd instead of spamassassin, I have 2 ACLs for
it, the deny one which works and the fakereject one which doesn't work
at all. Is the name of the action supposed to be "add header" without
quotes and with a space? Note that the ACL were working with
spamassassin except they were based on spam_score_int.

#Deny incoming spam
deny
!hosts  = +relay_from_hosts
!sender_domains = +local_domains
condition   = ${if <={$message_size}{4096k}{1}{0}}
condition   = ${if eq{$spam_action}{reject}}
message = Message rejected due to spam score: $spam_score
log_message = $sender_host_address (for $acl_m_rcpt) has spam score:
$spam_score
spam= nobody/defer_ok

#store spam
warn
!hosts  = +relay_from_hosts
!sender_domains = +local_domains
condition   = ${if <={$message_size}{4096k}{1}{0}}
condition   = ${if eq{$spam_action}{add header}}
message = Message rejected due to spam score: $spam_score
log_message = $sender_host_address (for $acl_m_rcpt) has spam score:
$spam_score
spam= nobody/defer_ok
control = fakereject/Message rejected due to spam score: $spam_score

thanks



smime.p7s
Description: S/MIME Cryptographic 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/