Answer the question
In order to leave comments, you need to log in
Rule to block messages from local users?
Good afternoon.
There is Debian, exim.
It is necessary to write a rule that would prohibit sending messages by local users to any domains other than those explicitly listed in the specified file (/etc/exim4/dom). The rule is necessary for local users (not for smtp on localhost).
I tried the following:
In the file /etc/exim4/dom I registered domains, for example:
domain1.ru
domain2.ru
domainlist local_domains = lsearch;/etc/exim4/dom
acl_not_smtp = acl_check_not_smtp
begin acl
acl_check_not_smtp:
deny domains = !+local_domains
message = Bad domain
F=<> rejected by non-SMTP ACL: cannot test domains condition in non-SMTP ACL
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question