Re: [exim] Block mails sent to a spacific address

Página Inicial
Delete this message
Reply to this message
Autor: Andrew
Data:  
Para: Vaidya nathan
CC: exim-users
Assunto: Re: [exim] Block mails sent to a spacific address
Andrew wrote:
> Vaidya nathan wrote:
>> Thanks for your response. Actually i'm running Exim on Cygwin in windows.
>>
>> The mails are submitted locally to Exim.
>>
>> Other point i forgot to say is that i need to allow mails to all other IDs of the domain example.com except abc@???.
>>
>> But I hope the below entry would actually block sending mails to example.com.
>>
>> reject_user:
>>
>>    driver = redirect

>>
>>    domains = example.com

>>
>>    allow_fail

>>
>>    data = ${lookup{$local_part}lsearch{/path/to/above/file}}

>>


BTW to take out the whole domain just replace
data = ${lookup{ etc
with
data = :fail: This domain is blocked.
or
data = :freeze:


cheers


--snip--