Answer the question
In order to leave comments, you need to log in
How to disable local relay on Exim?
There was a lot of spam coming from my own domain to my own domain)
Spam like from [email protected] to [email protected]
Checked via telnet
telnet server.ru 25
Trying 123.456.789.11...
Connected to interaffairs.ru.
Escape character is '^]'.
220 server.ru ESMTP Exim 4.84 Tue, 01 Mar 2016 17:07:19 +0300
HELO server.ru
250 server.ru Hello server.ru [164.132.11.11]
MAIL from:
250 OK
RCPT to:
250 Accepted
Works, no authorization did not ask anything. Only works if the sender domain is equal to the to domain. Those. not a complete relay, it does not send to other domains.
How to turn it off?
hostlist relay_from_hosts = 127.0.0.1 did
not
help
.
Answer the question
In order to leave comments, you need to log in
acl_check_smtp_rcpt:
accept
hosts = localhost : 127.0.0.1
control = dkim_disable_verify
.....
Your extra checks
.....
deny
!authenticated = *
sender_domains = +domains_local : +domains_alias
message = You are local sender but not authenticated!
If it's just something like this
domains_local, domains_alias are lists of domains for receiving mail, you can have your own names
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question