V
V
Vovanys2016-03-01 17:29:53
Exim
Vovanys, 2016-03-01 17:29:53

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

2 answer(s)
V
Vyacheslav Rakhinsky, 2016-03-02
@Vovanys

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

D
Dmitry, 2016-03-01
@Tabletko

The return address field can be replaced, you need to look in the mailer logs from where it came from. And in your case, you can simply disable sending without smtp authorization.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question