Robin Bowes said the following on 27/12/2005 15:19:
> Hi,
> 
> I'm building a new qmail/qpsmntpd installation on an x86_64 platform.
> 
> All seemed to be going well until I tried connecting to qpsmtpd on port
> 2525.
> 
> It takes slightly longer than 30 secs to respond with the smtp greeting.
> 
> Here's my run file:
> 
> #!/bin/sh
> QMAILDUID=`id -u qpsmtpd`
> NOFILESGID=`id -g qpsmtpd`
> PORT=2525
> MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`
> MAXCLIENTS=15
> QPSMTPD_DIR=/var/qpsmtpd/0.3x
> 
> cd $QPSMTPD_DIR
> HOST=`head -1 config/IP`
> 
> #exec /usr/local/bin/softlimit -m 50000000 \
> exec        /usr/local/bin/tcpserver -v -R -p \
>         -x /etc/tcp.smtp.cdb \
>         -c $MAXSMTPD \
>         -u $QMAILDUID \
>         -g $NOFILESGID \
>         $HOST $PORT \
>         ./qpsmtpd 2>&1
> #        /usr/bin/speedy -Tw -- -M$MAXCLIENTS ./qpsmtpd 2>&1

[snip]

> Has anyone got any idea why there's such a delay between the initial
> connection and the greeting response?

I checked again and noticed that the delay was actually about 26
seconds. I noticed on the tcpserver website [1] the "-t" option:

-t n: Give up on the $TCPREMOTEINFO connection attempt after n seconds.
Default: 26.

I also noted the "-H" option:

-H: Do not look up the remote host name in DNS; remove the environment
variable $TCPREMOTEHOST. To avoid loops, you must use this option for
servers on TCP port 53.

[1] http://cr.yp.to/ucspi-tcp/tcpserver.html

I added the "-H" option to tcpserver and restarted and the smtp greeting
is now instantaneous.

I guess I must have a dns issue.

Sorry for the noise.

R.

Reply via email to