Ahmad,

Without reading your message in detail, this sounds like
one of the FAQs - checkout the -H, -R and -l (That's a
lower-case L) options to tcpserver: Your system is
probably failing on ident or DNS lookups.

Dig around in the archives for more info (keywords:
slow, tcpserver).

cheers,

Andrew.

----------
From:   Ahmad Ridha[SMTP:[EMAIL PROTECTED]]
Sent:   13 March 2001 05:11
To:     [EMAIL PROTECTED]
Subject:        Slow SMTP and POP3 response (sorry, it's a long one)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Dear All,

We're currently migrating our server from sendmail+inetd (on Linux kernel 
2.2.13) to qmail+tcpserver.
It's generally done except for one thing. The SMTP and POP3 response is 
much slower than before.
What I mean by slower is about 50 seconds to nearly 2 minutes. It's not 
acceptable to most of our users.
The server is meant to provide mailing service to local network.  Following 
are the logs showing the fact.

/var/log/qmail/smtpd/current

2001-03-13 12:22:16.696959500 tcpserver: status: 0/20
2001-03-13 12:24:52.563739500 tcpserver: status: 1/20
2001-03-13 12:24:52.564019500 tcpserver: pid 2100 from 10.2.2.3
2001-03-13 12:26:50.742521500 tcpserver: ok 2100 :202.159.95.54:25 
:10.2.2.3::1130

/var/log/qmail/pop3d/current

2001-03-13 12:20:35.713440500 tcpserver: status: 0/40
2001-03-13 12:27:55.880273500 tcpserver: status: 1/40
2001-03-13 12:27:55.880431500 tcpserver: pid 2133 from 10.2.2.3
2001-03-13 12:29:12.100342500 tcpserver: ok 2133 :202.159.95.54:110 
:10.2.2.3::1151

I know that this is an FAQ but before flaming me please take a look what 
I've tried to do.
Here are my configuration (basically following LWQ):

Output of qmail-showctl (some are deleted but they are just default ones):

qmail home directory: /var/qmail.
user-ext delimiter: -.
paternalism (in decimal): 2.
silent concurrency limit: 120.
subdirectory split: 23.
user ids: 7790, 7791, 7792, 0, 7793, 7794, 7795, 7796.
group ids: 2108, 2107.

bouncehost: (Default.) Bounce host name is lsi.ipb.ac.id.
concurrencylocal: (Default.) Local concurrency is 10.
concurrencyremote: (Default.) Remote concurrency is 20.
databytes: (Default.) SMTP DATA limit is 0 bytes.
defaultdomain: Default domain name is ipb.ac.id.
defaulthost: (Default.) Default host name is lsi.ipb.ac.id.
helohost: (Default.) SMTP client HELO host name is lsi.ipb.ac.id.
idhost: (Default.) Message-ID host name is lsi.ipb.ac.id.
localiphost: (Default.) Local IP address becomes lsi.ipb.ac.id.
locals:
Messages for localhost are delivered locally.
Messages for lsi.ipb.ac.id are delivered locally.
Messages for perpus.ipb.ac.id are delivered locally.
Messages for pustaka.ipb.ac.id are delivered locally.
me: My name is lsi.ipb.ac.id.
plusdomain: Plus domain name is ac.id.
rcpthosts: (Default.) SMTP clients may send messages to any recipient.

perpus.ipb.ac.id and pustaka.ipb.ac.id are not yet registered to the 
machine (202.159.95.54) but lsi.ipb.ac.id is.
Relaying is controlled by tcpserver

/etc/tcp.smtp

202.159.95.54:allow,RELAYCLIENT=""
127.:allow,RELAYCLIENT=""
10.:allow,RELAYCLIENT=""

qmail-smtpd and qmail-popup use tcpserver and supervise

/var/qmail/supervise/qmail-smtpd/run

#!/bin/sh
QMAILDUID='id -u qmaild'
NOFILESGID='id -g qmaild'
MAXSMTPD='cat /var/qmail/control/concurrencyincoming'
exec /usr/local/bin/softlimit -m 2000000 \
     /usr/local/bin/tcpserver -v -p -R -H -x /etc/tcp.smtp.cdb -c 20 \
        -u 7791 -g 2108  0 25 /var/qmail/bin/qmail-smtpd 2>&1

/var/qmail/supervise/qmail-smtpd/run

#!/bin/sh
exec /usr/local/bin/softlimit -m 2000000 \
   /usr/local/bin/tcpserver -v -R -H 0 110 /var/qmail/bin/qmail-popup \
   lsi.ipb.ac.id \
   /bin/checkpassword /var/qmail/bin/qmail-pop3d Maildir 2>&1

As you can see I have tried using both options -R and -H which are usually 
advised for this kind of problem.

Our qmail start script is basically using the LWQ version with minor change 
to incorporate pop3d using supervise

|#!/bin/sh

- --deleted--

   pause)
- --deleted--
     echo "Pausing qmail-pop3d"
     svc -p /var/qmail/supervise/qmail-pop3d
     ;;
   cont)
- --deleted--
     echo "Continuing qmail-pop3d"
     svc -c /var/qmail/supervise/qmail-pop3d
     ;;
   restart)
- --deleted--
     echo "* Restarting qmail-pop3d"
     svc -u /var/qmail/supervise/qmail-pop3d
     ;;
- --deleted--

exit 0

I apologize for the length of this message but we're a bit stuck here. 
Thank you
in advance.

Regards,

Ahmad Ridha
<[EMAIL PROTECTED]>

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>

iQA/AwUBOq2sNq01M7MMw92qEQJm1gCg4REaoQ9aM0wJJRiK2NNNwCosXWIAn288
KwnB/DDdFElvja/Mcd1oy55e
=Yu4k
-----END PGP SIGNATURE-----



Reply via email to