On Fri, May 21, 1999 at 03:46:38PM +0800, Yusuf Goolamabbas wrote:

No patch needed.

Run tcpserver with the -p (PARANOID) option. Now, if it receives a
connection, and there is no PTR for that IP, tcpserver will unset the
TCPREMOTEHOST variable. Then instead of running qmail-smtpd directly, run a
shell script, like this:

#!/bin/sh
[ "X$TCPREMOTEHOST" = "X" ] && exit
exec /path/to/qmail/bin/qmail-smtpd

If you like, you can use echo to send some text to stderr before exiting
when there is no PTR record. Then, if you're logging tcpserver's activity,
you can log when connections are dropped.

However, note that in my experience i have not seen any adverse effects of
allowing connections from sites which have no PTR records. Why do you want
to reject these connections?

> Hi, I run a mail server with an upatched qmail-1.03 and tcpserver with rblsmtpd.
> 
> Is it possible to reject mail from sites which don't have correct inverse DNS 
> records (PTR records). If there is patch for qmail/tcpserver, would appreciate
> a pointer to it and a usage example

-- 
System Administrator
See complete headers for address, homepage and phone numbers

Reply via email to