Re: [Exim] Refuse specific recipients?

Top Page
Delete this message
Reply to this message
Author: Darren Casey
Date:  
To: Martin Brooks, exim-users
Subject: Re: [Exim] Refuse specific recipients?
> I'd like exim4 to refuse recipients from a list in a text file. I've
> seen several possible mechanisms for doing this but I wondered if anyone
> had some real world experience of doing this. Any tips appreciated.


to block the sender domain on a match

deny senders = @@lsearch;/etc/reject-by-domain
message = $local_part@$domain does not want your email

Or recipent :-
deny recipients = @@lsearch;/etc/reject-by-domain
message = $local_part@$domain is an invalid e-mail address

The format of reject-by-domain is
lowestonweb.info : *
pcpartner.net : *
domain.com : alias : priceless : n : mains : matrixsolutions : ains

Have the above working on many mail servers with no issues

The above should be in

acl_check_rcpt:

put it below
accept hosts = :

Regards
Darren