Hi,

In <20090628145457.gg4...@hn305c2n2.ms.com>
  "Re: abort when client disconnects" on Sun, 28 Jun 2009 10:54:57 -0400,
  Victor Duchovni <victor.ducho...@morganstanley.com> wrote:

> On Sun, Jun 28, 2009 at 12:12:00PM +0200, mouss wrote:
> 
>> > I want smtpd to abort a connection for a SMTP client as soon
>> > as possible when the client disconnects the connection
>> > before smtpd returns a response.
>> > 
>> 
>> If you mean the ability to reject a connection before RCPT TO, then you
>> can change smtpd_delay_reject. but if you do so, MTAs that don't
>> "understand" this will retry.
>> 
>> if you mean the ability to disconnect instead of sending a response,
>> then the only compliant way is to return 421. so "real" MTAs will retry.
>> 
> 
> He means the ability to stop sleeping as soon as the client disconnects.
> This means sleeping in the event loop waiting for either a timer or
> a client read event.

Yes. I means it.

> This special case is feasible. The more general problem of aborting
> complex milter or other processing, ... when clients disconnect, and
> while Postfix is not in the event loop, is unrealistic (not worth
> the increased code complexity and reduced reliability).

Is this acceptable suggestion if it can be implemented with
low code complexity?


Thanks,
--
kou

Reply via email to