[BIG SMILE]
It's (quasi) working now.
caker wrote:
Doing a little googling, it looks like the second 0 in status 0/0 is the maximum number of concurrent TCP connections, which you have set to zero.
Interesting -- I'm unfamiliar enough with perl that this would have taken me forever without your assistance. Thank you kindly. I completely thought that status 0/0 was the equivalent of a DOS errorlevel where 0 means nothing is
wrong... right, I won't take that for granted again.
Here's what I've done: I added 'echo' to the front of the exec command in /var/qmail/supervise/qmail-smtpd/run and found out, like you noted, that the contents of the concurrencyincoming file were not being reported propertly. The file exists, and the spelling and path are exactly the same... but for some reason the script printed the MAXSMTPD variable as text instead of executing the command and printing the contents of the cat command:
Code from /var/qmail/supervise/qmail-smtpd/run:
exec /usr/local/bin/softlimit -m 30000000 /usr/local/bin/tcpserver -v -R -l head -1 /var/qmail/control/me -x /etc/tcp.smtp.cdb -c
cat /var/qmail/control/concurrencyincoming -u id -u vpopmail -g id -g vpopmail 0 smtp /var/qmail/bin/qmail-smtpd mail.horrox.ca /home/vpopmail/bin/vchkpw /usr/bin/true
So... I just commented out the original MAXSMTPD line in the script (below) and put the contents of the concurrencyincoming line there directly, and now it works. The line I added (for anyone else that gets this problem) was
Code:
MAXSMTPD=30
So... now I'm curious... why would perl have printed the full text 'cat /var/qmail/control/concurrencyincoming' instead of inserting the file's contents or an error message? I copied the script right off qmailrocks.org so I can't be the only person to have this setup...
I'm very grateful for your help on that!
j.
(For reference) The original /var/qmail/supervise/qmail-smtpd/run script:
Code:
#!/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 -R -l 0 -x /etc/tcp.smtp.cdb -c "$MAXSMTPD" \
-u "$QMAILDUID" -g "$NOFILESGID" 0 smtp /var/qmail/bin/qmail-smtpd 2>&1