I want to block some users to sending out mails to other domains in Exim4
.
I tried the following configuration but did not work.
Changes done in exim.conf
file:
In the main configuration section, enabled the acl_smtp_mail
control as follows:
acl_smtp_mail = acl_check_mail
Then, in the acl_check_rcpt ACL configuration section, created a new rule:
accept condition = ${lookup{$sender_address}lsearch{/etc/exim/freezelist_sender_addresses}{1}{0}}
control = freeze/no_tell
I tried this but not worked. Please advice me with configuration.