Re: [exim] Combine hosts/sender_domains in condition?

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Jasen Betts
Fecha:  
A: exim-users
Asunto: Re: [exim] Combine hosts/sender_domains in condition?
On 2021-09-08, MRob via Exim-users <exim-users@???> wrote:
> On 2021-09-08 05:03, Jasen Betts via Exim-users wrote:
>> On 2021-09-07, MRob via Exim-users <exim-users@???> wrote:
>>> Hellos, I was trying to write a clause that needs to combine
>>> 'sender_domains' and 'hosts' in *OR* condition so I can't put on two
>>> separate lines.
>>>
>>> Is only way for this to repeat the full clause, once with
>>> sender_domains
>>> and one with hosts?
>>
>>
>> if it was an accept or deny rule you could just have another
>> rule for the other condition
>>
>> So it must be a require rule
>>
>> change it to a deny rule and invert both conditions.
>> De Morgan's theorem.
>
> It's a deny rule, but I can't change it to accept because if it doesn't
> match I want it to continue to the next clause.


make two deny rules.

deny sender_domains = +thing
     message = I don't like that domain
deny hosts = +thing
     message = I don't like that host


--
Jasen.