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

Johann Spies
2011-09-12T06:27:19Z

Hallo Hans,


On Sat, Sep 10, 2011 at 01:08:41PM +0200, Hans Ekbrand
wrote:
> Dear exim users,
>
> I want to reject mail when Reverse DNS lookup fails, currently I only
> get a warning - like this:
>
> X-Host-Lookup-Failed: Reverse DNS lookup failed for 203.211.146.24 (failed)
>
> I have
> CHECK_RCPT_REVERSE_DNS = yes
> CHECK_RCPT_SPF = yes
>
> in /etc/exim4/conf.d/main/00_local_options
>
> How do I configure exim to reject instead of warn?

I did this to find the answer:

% sudo rgrep CHECK_RCPT_REVERSE_DNS /etc/exim4
/etc/exim4/exim4.conf.template:  .ifdef CHECK_RCPT_REVERSE_DNS
/etc/exim4/conf.d/acl/30_exim4-config_check_rcpt:  .ifdef
CHECK_RCPT_REVERSE_DNS
% vim /etc/exim4/conf.d/acl/30_exim4-config_check_rcpt

You can change the ''warn'' in the section where
CHECK_RCPT_REVERSE_DNS is
used to ''deny''

Regards
Johann
--
Johann Spies                            Telefoon: 021-808 4699
Databestuurder /  Data manager

Sentrum vir Navorsing oor Evaluasie, Wetenskap en Tegnologie
Centre for Research on Evaluation, Science and Technology
Universiteit Stellenbosch.

     "Let the wicked forsake his way, and the unrighteous
      man his thoughts: and let him return unto the LORD,
      and He will have mercy upon him; and to our God, for
      he will abundantly pardon."          Isaiah 55:7