I've got a user who is seeing a 25 second delay when connecting to 
port 25. I've thrown up a tcpdump session, and can verify there is a 
delay, and it apparently is a delay on our end. I can't figure why 
though. Here's a snippet of log info:

2000-01-03 08:04:50.975956500 tcpserver: pid 7604 from 209.239.242.9
2000-01-03 08:04:50.978663500 tcpserver: status: 5/50
2000-01-03 08:04:50.979591500 tcpserver: pid 7605 from 209.239.242.9
2000-01-03 08:04:51.442364500 tcpserver: status: 6/50
<snip>
2000-01-03 08:05:16.985600500 tcpserver: ok 7604 
mail.vcnet.com:209.239.239.15:2
5 gateway.chequemate.com:209.239.242.9::1031
2000-01-03 08:05:16.995683500 tcpserver: ok 7605 
mail.vcnet.com:209.239.239.15:2
5 gateway.chequemate.com:209.239.242.9::1032
2000-01-03 08:05:17.296885500 tcpserver: end 7605 status 0
2000-01-03 08:05:17.297172500 tcpserver: status: 4/50
2000-01-03 08:05:17.502376500 tcpserver: status: 5/50
2000-01-03 08:05:17.587533500 tcpserver: end 7604 status 0
2000-01-03 08:05:17.588419500 tcpserver: status: 4/50


Note the ~ 25 second delay. It also shows is tcpdump:

10:38:13.521253 gateway.chequemate.com.1587 > mail.vcnet.com.smtp: S 
9465046:9465046(0) win 8192 <mss 1460,nop,nop,sackOK> (DF)
10:38:13.521360 mail.vcnet.com.smtp > gateway.chequemate.com.1587: S 
1269293425:1269293425(0) ack 9465047 win 17520 <mss 1460> (DF)
10:38:13.547423 gateway.chequemate.com.1587 > mail.vcnet.com.smtp: . 
ack 1 win 8760 (DF)
10:38:39.583239 mail.vcnet.com.smtp > gateway.chequemate.com.1587: P 
1:60(59) ack 1 win 17520 (DF)
10:38:39.612027 gateway.chequemate.com.1587 > mail.vcnet.com.smtp: P 
1:15(14) ack 60 win 8701 (DF)


I run qmail-smtpd with daemontools .61 with the following run script:

#!/bin/sh
QMAILDUID=`id -u qmaild`
NOFILESGID=`id -g qmaild`
exec /usr/local/bin/softlimit -m 2000000 \
     /usr/local/bin/tcpserver -v -x /etc/tcp.smtp.cdb -c 50\
         -u $QMAILDUID -g $NOFILESGID 0 smtp sh -c '
            /var/qmail/bin/qmail-smtpd
            cd /var/qmail/autoturn
            exec setlock -nx $TCPREMOTEIP/seriallock \
            maildirsmtp $TCPREMOTEIP autoturn-$TCPREMOTEIP- 
$TCPREMOTEIP AutoTURN
            ' 2>&1


Any ideas on where the delay is coming from?

Thanks,
jon

Reply via email to