block people from sending to a specific domain or mail

chanklish

Well-Known Member
May 22, 2015
82
1
56
kinshasa
cPanel Access Level
Root Administrator
I found this online but has no idea where to find this acl or where or how to add it , can you please guide me ?

acl_smtp_rcpt = acl_check_rcpt

acl_check_rcpt:

deny
message = The $sender_address is prohibited to send mail to the $domain
senders = lsearch;/etc/exim/restricted_sender
domains = lsearch;/etc/exim/restricted_domains

/etc/exim/restricted_sender
[email protected]

/etc/exim/restricted_domains
gmail.com