[Pkg-exim4-users] how to reject mails when Reverse DNS check fails?
Hans Ekbrand
hans at sociologi.cjb.net
Sat Sep 17 20:36:21 UTC 2011
On Mon, Sep 12, 2011 at 08:27:19AM +0200, Johann Spies wrote:
> 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'
Thanks, Johann and Akihiro!
More information about the Pkg-exim4-users
mailing list