Re: [exim] Any way to implement an incoming SMTP time limit?

Pàgina inicial
Delete this message
Reply to this message
Autor: Viktor Dukhovni
Data:  
A: exim-users
Assumpte: Re: [exim] Any way to implement an incoming SMTP time limit?


> On Mar 12, 2018, at 7:38 AM, Jeremy Harris via Exim-users <exim-users@???> wrote:
>
>> I've set smtp_receive_timeout in an attempt to limit the time an incoming connection can stay active - this works as designed - however this timer is reset whenever any new data comes in - I'd like to set a maximum connection time - so that when an incoming connection is established it has a finite amount of time to get the job done - otherwise it gets disconnected - is there a known way to do this?
>
> Nope. You could place limits on SMTP command _numbers_ by counting them
> in ACLs; combined with the per-command timeout that gets you most
> of the way there. Or you could explicitly check the times, also
> in ACLs.


The OP should also keep in mind that connection reuse (to send multiple
messages) is also common, and quite legitimate, and a global connection
timeout (rather than a per-command timeout) could interrupt an extended
connection that delivers multiple messages.

-- 
    Viktor.