which timeout for "cmd read"?
am 28.02.2006 00:13:04 von Ken Williams
I run sendmail 8.13.1 on linux 2.4.31.
I'm noticing most of my incoming SMTP connections sit in the "cmd read"
state for a long time. What is this? I know most of these are spammers
I think, its not a big deal but I would like to close these connections
faster.
Heres an example:
sendmail: server cablelink-86-127-180-43.rdstm.ro [86.127.180.43] cmd read
I have about 40 of these right now from different domains.
Is there a timeout I change change in my mc file for this specific "cmd
read" state?
Thanks.
kenw232@yahoo.com
Re: which timeout for "cmd read"?
am 28.02.2006 02:19:45 von Robert Harker
> I'm noticing most of my incoming SMTP connections sit in the "cmd read"
> state for a long time.
> Is there a timeout I change change in my mc file
> for this specific "cmd read" state?
Try Timeout.command which is the time the SMTP server waits for
a command to be issued. I have seen this type of problem with POP
or IMAP clients holding a connection open "just in case" the client
has a message to send. This is also the state on the server of a
connection that the SMTP client (sendmail) is holding open via
the connection cache.
The default is 1 hour, I would suggest 1 minute or maybe 30 seconds.
My attitude is that if the SMTP client can not get it together to send
a command in a short period of time, then its their problem and just
close the connection.
You can set this with:
define(`confTO_COMMAND',`1m')
Hope this helps
RLH
For info about our "Managing Internet Mail, Setting Up and Trouble
Shooting sendmail and DNS" and a schedule of dates and locations,
please send email to info@harker.com, or visit www.harker.com