Qmail
[Top] [All Lists]

Re: timeoutsmtpd downsides

To: qmail@list.cr.yp.to
Subject: Re: timeoutsmtpd downsides
From: Kyle Wheeler <kyle-qmail@memoryhole.net>
Date: Wed, 4 Apr 2007 14:35:05 -0600
Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
Delivered-to: sp-com-lists@consult.net
Delivered-to: gmail-qmail@securepoint.com
Delivered-to: sp.com.list@gmail.com
Delivered-to: mailing list qmail@list.cr.yp.to
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=memoryhole.net; b=VppGK7MhaF+KEjtlgjkD9djEjkZHjr32ERPK6oJ6MqKBIZIu0Rp1fVPQTLeQLwuDx8/YDtvKdLi7SV594mAYUHRmrMD7Ux3ciegUJRP2F9idq6u4ULxRaXerCm8xUuBis0OJCoeXSNoSpWcGBnBoCHgPQxOC6Mr7nbPooDUywpI= ;
Domainkey-status: good
In-reply-to: <20070404200830.iqla4pperu4iwhf2@m.safari.iki.fi>
Mail-followup-to: qmail@list.cr.yp.to
Mailing-list: contact qmail-help@list.cr.yp.to; run by ezmlm
References: <20070404185032.GA22829@c-76-18-79-168.hsd1.nm.comcast.net> <20070404200830.iqla4pperu4iwhf2@m.safari.iki.fi>
User-agent: Mutt/1.5.14 (2007-04-03)
On Wednesday, April  4 at 11:08 PM, quoth Sami Farin:
On Wed, Apr 04, 2007 at 12:50:32 -0600, Kyle Wheeler wrote:
Hello,

Because of some recent spammer behavior (looks like reverse-tarpitting), I'm considering reducing my timoutsmtpd value

Are you using bannerdelay feature?

Yes; but that's not what's keeping connections open. The offending connections are averaging around 1200 seconds in length (i.e. the timeoutsmtpd default), which is way longer than my initial delay (which maxes out at 26 seconds).

Are there drawbacks to lowering my timeout value that I'm not thinking of? Has anyone done this before and have any reports as to possible

Some SMTP clients (e.g. postfix, zmailer, ...) keep the connection open in case some new email for the domain needs to be delivered (mailing lists are a good example).

Hmmm. That sounds a reason to stick to the RFC. Not that I'm terribly concerned about forcing clients to open new connections as necessary. I think I'm more worried about very slow connections (e.g. receiving mail from small rural ISPs or extremely busy ISPs (a.la. hotmail)).

If you make the timeout very small, they just have to make more connections. Not necessarily very worrisome, but what if they think your SMTP server keeps dying for no reason and slow down deliveries or something?

Well, it isn't dying for no discernible reason; it spits out "421 timeout" to the client before disconnecting. So if they pay attention to such errors, it should be clear that I'm not being entirely capricious.

If this seems to happen, you can always add TIMEOUTSMTPD env var feature =)

A fair point. :)

~Kyle
--
The most incomprehensible thing about the world is that it is comprehensible.
                                                    -- Albert Einstein

Attachment: pgpX0mNGjCtzV.pgp
Description: PGP signature

<Prev in Thread] Current Thread [Next in Thread>