[Pkg-exim4-users] how to reject mails when Reverse DNS check fails?

Akihiro Terasaki aki at thanku.jp
Sat Sep 10 13:42:09 UTC 2011


On Sat, Sep 10, 2011 at 13:08 +0200,
Hans Ekbrand wrote:
> How do I configure exim to reject instead of warn?

--- conf.d/acl/30_exim4-config_check_rcpt	2011-09-10 22:00:29.000000000 +0900
+++ conf.d/acl/30_exim4-config_check_rcpt.new	2011-09-10 22:07:44.000000000 +0900
@@ -228,6 +228,10 @@
   # this instead of !verify = reverse_host_lookup to catch deferrals
   # as well as outright failures.
   .ifdef CHECK_RCPT_REVERSE_DNS
+  deny
+    !verify = reverse_host_lookup
+    message = Reverse DNS lookup failed for $sender_host_address
+
   warn
     message = X-Host-Lookup-Failed: Reverse DNS lookup failed for $sender_host_address (${if eq{$host_lookup_failed}{1}{failed}{deferred}})
      condition = ${if and{{def:sender_host_address}{!def:sender_host_name}}\

Hope this helps
-- 
Akihiro Terasaki



More information about the Pkg-exim4-users mailing list