chkuser and qmail-smtpd CPU load

Started by linas, October 20, 2005, 03:00:52 AM

Previous topic - Next topic

linas

Hello!
I have a problem with http://www.tnpi.biz/internet/mail/toaster/patches/netqmail-1.05-toaster-3.0.patch" target="_blank"> http://www.tnpi.biz/internet/mail/toaster/patches/netqmail-1 .05-toaster-3.0.patch patch
I use qmail + vpopmail (mysql database)
My system is FreeBSD 4.11.
Earlier, I used qmail with http://www.tnpi.biz/internet/mail/toaster/patches/qmail-1.03-toaster-2.7.patch" target="_blank"> http://www.tnpi.biz/internet/mail/toaster/patches/qmail-1.03 -toaster-2.7.patch patch, and all worked fine.
But now I need chkuser patch, so I did installed netqmail + netqmail-1.05-toaster-3.0.patch.
So, the problem is, qmail-smtpd consumes all CPU resources, it multiplyies itself (?) and it seen like this: http://www.in.spb.ru/linas/qmail-smtpd-load.jpg" target="_blank">http://www.in.spb.ru/linas/qmail-smtpd-load.jpg
It starts with one qmail-smtpd, consuming 90% CPU, then there is two qmail-smtpd and so on...
When I use truss -p PID, for look, what this process does, I see:

gettimeofday(0xbfbff748,0x0)                     = 0 (0x0)
getpid()                                         = 63374 (0xf78e)
getpid()                                         = 63374 (0xf78e)
gettimeofday(0xbfbff6c8,0x0)                     = 0 (0x0)
getpid()                                         = 63374 (0xf78e)
getpid()                                         = 63374 (0xf78e)
gettimeofday(0xbfbff748,0x0)                     = 0 (0x0)
getpid()                                         = 63374 (0xf78e)
getpid()                                         = 63374 (0xf78e)
gettimeofday(0xbfbff6c8,0x0)                     = 0 (0x0)
getpid()                                         = 63374 (0xf78e)
getpid()                                         = 63374 (0xf78e)
gettimeofday(0xbfbff748,0x0)                     = 0 (0x0)
getpid()                                         = 63374 (0xf78e)
getpid()                                         = 63374 (0xf78e)
gettimeofday(0xbfbff6c8,0x0)                     = 0 (0x0)
getpid()                                         = 63374 (0xf78e)
getpid()                                         = 63374 (0xf78e)

and so on...

Here is qmail-smtpd's startup script:
#!/bin/sh

PATH=/usr/local/qmail/bin:/usr/local/bin:/usr/bin:/bin
export PATH

QMAILUID=`id -u vpopmail`
NOFILESGID=`id -g vpopmail`

exec softlimit -m 8000000 tcpserver -v -S -R -H -c100 -u $QMAILUID -g $NOFILESGID 0 smtp rblsmtpd -r relays.ordb.org qmail-smtpd /usr/local/vpopmail/bin/vchkpw /usr/bin/true 2>&1

SMTP AUTH, chkuser - all works fine, but this problem makes it unavalable to use them...

Please, help me to understand, what is wrong with it!

linas

I'm sorry, it was my mistake:

less README.tls
<skipped>
- when a 512 bit RSA key is provided in /var/qmail/control/rsa512.pem,
           this key will be used instead of (slow) on-the-fly generation by
           qmail-smtpd. Idem for 512 and 1024 DH params in control/dh512.pem
           and control/dh1024.pem. `make tmprsadh` does this.
           Periodical replacement can be done by crontab:
           01 01 * * * /var/qmail/bin/update_tmprsadh > /dev/null 2>&1

I did make tmprsadh and now all works fine!