On Thursday, June 7 at 10:43 AM, quoth Fabien GARZIANO:
Thanks for the answer. First here is my qmail-smtpd run script :
[root@srv05 qmail-smtpd]# more run
#!/bin/sh
exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t /var/log/qmail
Create the /var/qmail/supervise/qmail-smtpd/run file:
HEH; if I understand you right, you're telling me that your
/var/qmail/supervise/qmail-smtpd/run file contains the line "Create
the /var/qmail/supervise/qmail-smtpd/run file:" ? Well, there's your
problem right there! (Or, more specifically, the problem is that your
script is exec'ing multilog before it ever gets around to running
qmail-smtpd.) The /var/qmail/supervise/qmail-smtpd/run file should
ONLY contain:
#!/bin/sh
QMAILDUID=`id -u qmaild`
NOFILESGID=`id -g qmaild`
MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`
LOCAL=`head -1 /var/qmail/control/me`
if [ -z "$QMAILDUID" -o -z "$NOFILESGID" -o -z "$MAXSMTPD" -o -z "$LOCAL" ];
then
echo QMAILDUID, NOFILESGID, MAXSMTPD, or LOCAL is unset in
echo /var/qmail/supervise/qmail-smtpd/run
exit 1
fi
if [ ! -f /var/qmail/control/rcpthosts ]; then
echo "No /var/qmail/control/rcpthosts!"
echo "Refusing to start SMTP listener because it'll create an open relay"
exit 1
fi
exec /usr/local/bin/softlimit -m 2000000 \
/usr/local/bin/tcpserver -v -R -l "$LOCAL" -x /etc/tcp.smtp.cdb -c
"$MAXSMTPD" \
-u "$QMAILDUID" -g "$NOFILESGID" 0 smtp /var/qmail/bin/qmail-smtpd 2>&1
... and it should not contain the email indentation quotes (>), I just
left those in to highlight what should be in that file.
I still dont get it. I understand multilog can't lock
/var/log/qmail/smtp because it already got a lock on /var/log/qmail/.
That's not true, actually. Multilog only locks one directory at a
time; it does not lock sub-folders of the locked directory.
Hope that helps,
~Kyle
--
Life is too important to be taken seriously.
-- Oscar Wilde
pgpkF9QmhaWTk.pgp
Description: PGP signature
|