Re: [exim] Discard mail to certain recipients if the subject…

Góra strony
Delete this message
Reply to this message
Autor: Evgeniy Berdnikov
Data:  
Dla: exim-users
Temat: Re: [exim] Discard mail to certain recipients if the subject matches a string
On Tue, Apr 04, 2017 at 06:11:00PM +0300, Александр Кириллов via Exim-users wrote:
> I need to discard mail from a known address to certain recipients IF the
> subject matches a known string. I've tried to add
>
>   discard message = The $sender_address is prohibited to send commit
> notifications to these recipients
>           senders       = <known address>
>           recipients    = <recipient 1> : <recipient 2>
>           condition     = ${if match{$h_subject:}{Commit}}

>
> to acl_check_data section of exim.conf but got an error:
>
> ... temporarily rejected after DATA: cannot test recipients condition in
> DATA ACL


This message points to "recipients" condition failure, not for the subject
match. So inspect carefully right side of "recipients=..." expression.
Try to run exim with -d+acl debugging flag.

P.S. Use of cyrillic From: is not good for english-language mail list.
--
Eugene Berdnikov