L
L
linelect2014-07-09 18:42:29
Exim
linelect, 2014-07-09 18:42:29

How can I prevent sending mail from certain domains in Exim?

There are about 100 domains on the server.
There are domains from which you need to prohibit sending mail (for example, for the domain bladeomen.com it is forbidden to send mail). These domains are removed from Exim's list of domains (domainlist local_domains = lsearch;/etc/exim/domains)
But still, Exim sends mail from these domains (mail from [email protected] goes to [email protected] without problems)
How to disable in Exim send mail from specific domains?
Tried:

reject_domains:
driver = redirect
domains = +blocked_domains
#blocked_domains
allow_fail = yes
data = :fail: Connection rejected: SPAM source $domain is manually blacklisted.
no_more

but it works only if I send mail to my "forbidden" domains (+blocked_domains) from another mailer (when sending a letter from [email protected] to [email protected], the rule is triggered).
But it is necessary on the contrary, so that it is not possible to send [email protected] mail to any address

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vlad Zhivotnev, 2014-07-09
@linelect

https://debian.pro/1541 it's easier to go from the opposite way
Although I also wrote in the comments how to disable certain boxes, on the contrary.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question