5 messages in net.sourceforge.lists.courier-usersRe: [courier-users] timeouts and ptr ...
FromSent OnAttachments
Lindsay HaisleyAug 24, 2007 9:52 am 
Sam VarshavchikAug 24, 2007 2:58 pm 
Lindsay HaisleyAug 24, 2007 6:42 pm 
Sam VarshavchikAug 24, 2007 6:53 pm 
Lindsay HaisleyAug 25, 2007 8:18 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [courier-users] timeouts and ptr recordsActions...
From:Lindsay Haisley (fmou@fmp.com)
Date:Aug 24, 2007 6:42:44 pm
List:net.sourceforge.lists.courier-users

On Fri, 2007-08-24 at 17:58 -0400, Sam Varshavchik wrote:

I'd also like to have the option to drop SMTP connections outside of the LAN for which the IP address of the connecting host has no PTR record and won't reverse resolve to a name. Is there any way to do this in Courier?

No, not directly. The only thing you can do is to take the qmail approach, and have couriertcpd invoke your wrapper, that checks TCPREMOTEIP and TCPREMOTEHOST, and the invokes courieresmtpd itself.

In Gentoo's build of courier, the stock invocation of courieresmtpd looks like this.

/usr/sbin/couriertcpd [logger, pid and other options] [block options] -access=/etc/courier/smtpaccess.dat -address=0 465 /usr/bin/couriertls -server -tcpd /usr/sbin/courieresmtpd

Do I need to insert a wrapper of some sort in here? Are there any instructions, examples or prototypes available?