I am running exim4 on a vanilla Debian Stable system. The machine has proper DNS A and MX records. I want to use it as a mail server.
SMTP with TLS already works fine for authenticated users.
However I can still telnet from somewhere else to the server using smtp and send mails to my own domain by spoofing the MAIL FROM and picking the right RCPT TO.
How can I configure exim so that only real mail hosts with MX record can use unauthenticated SMTP?
I found an answer on askubuntu which sort of makes my configuration better. It changes the default warning on failed RDNS lookup to an error. Debian usually only warns on a failed reverse DNS lookup, if
CHECK_RCPT_REVERSE_DNS
is set. However, this piece of configuration will change that to an error:It seems what I want in the end is forward confirmed reverse DNS.