REQPTR

From Qmail-LDAP Wiki

Jump to: navigation, search

Purpose

Reject SMTP connections originating from an unresolvable IP address. Connections are rejected with an 553 (permanent) SMTP greeting.

I was in doubt whether to throw a permanent or a temporary error. I decided that it is better for an "innocent" user (whose IP doesn't have a PTR record) to reject her mail instantly than possibly a week later (after it expires from her mail server's queue).

Usage

Specify REQPTR in qmail-smtpd.rules file. If you specify a non-empty string as a value then that will be the SMTP greeting message. If an empty string is set then value of 550GREETING is used.

Affected: qmail-smtpd

Default: not set

Example:

:allow,REQPTR="Sorry, your host is not listed in reverse DNS"

Download

In fact the last line of the patch corrects a minor bug with logging qmail-smtpd options.

--Bajnokk 17:56, 7 March 2007 (CET)

Personal tools