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 [email protected].
>>
>> 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--
--
## List details at http://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/