 |
Qmail Support Forum Qmail Email Server Support Forums
|
| View previous topic :: View next topic |
| Author |
Message |
tech Guest
|
Posted: Wed Jun 22, 2005 11:41 am Post subject: qmail services |
|
|
Hi, does any one know how to get the qmail services running.
Ive followed the life with qmail up to the point of testing the services, I am running Rh9 can anyone help me to get the
/service/qmail-smtpd: up for more than 1 sec
[root@serv qmail-smtpd]# qmailctl stat
/service/qmail-send: up (pid 15736) 292 seconds
/service/qmail-send/log: up (pid 15741) 292 seconds
/service/qmail-smtpd: up (pid 17074) 1 seconds
/service/qmail-smtpd/log: up (pid 15742) 292 seconds
messages in queue: 0
messages in queue but not yet preprocessed: 0
Thx in advance.
[root@serv grant]# tail /var/log/qmail/smtpd/current
@40000000429f4fef0a540cf4 QMAILDUID, NOFILESGID, MAXSMTPD, or LOCAL is unset
in
@40000000429f4fef0a563b8c /var/qmail/supervise/qmail-smtpd/run
@40000000429f4ff00c342b1c QMAILDUID, NOFILESGID, MAXSMTPD, or LOCAL is unset
in
@40000000429f4ff00c368c7c /var/qmail/supervise/qmail-smtpd/run
@40000000429f4ff10f12f87c QMAILDUID, NOFILESGID, MAXSMTPD, or LOCAL is unset
in
@40000000429f4ff10f14fc1c /var/qmail/supervise/qmail-smtpd/run
@40000000429f4ff211724d0c QMAILDUID, NOFILESGID, MAXSMTPD, or LOCAL is unset
in
@40000000429f4ff2117450ac /var/qmail/supervise/qmail-smtpd/run
@40000000429f4ff313ed1cc4 QMAILDUID, NOFILESGID, MAXSMTPD, or LOCAL is unset
in
@40000000429f4ff313ef244c /var/qmail/supervise/qmail-smtpd/run
I have included the run file for smtpd
[root@serv grant]# cat /var/qmail/supervise/qmail-smtpd/run
#!/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 -H "$LOCAL" -x /etc/tcp.smtp.cdb -c
"$MAXSMTPD" \
-u "$QMAILDUID" -g "$NOFILESGID" 0 smtp /var/qmail/bin/qmail-smtpd
2>&1
[root@serv grant]# netstat - lntp | grep 25
unix 2 [ ] DGRAM 2254
[root@serv grant]#
[root@serv grant]#
[root@serv grant]# netstat -lntp | grep 25
[root@serv grant]#
[root@serv grant]#
[root@serv grant]#
any ideas would be great thx. |
|
| Back to top |
|
 |
Rick van Vliet Guest
|
|
| Back to top |
|
 |
brian Guest
|
Posted: Wed Jun 22, 2005 11:46 am Post subject: |
|
|
See how those variables are set in the run file? Do these commands in a
shell:
id -u qmaild
id -g qmaild
cat /var/qmail/control/concurrencyincoming
head -1 /var/qmail/control/me
#end
if any of these returns "nothing" or an error there is your problem.
go back over the instructions on www.lifewithqmail.com to figure out how
to fix this if you still don't understand what the problem is. |
|
| Back to top |
|
 |
Feizhou Guest
|
Posted: Wed Jun 22, 2005 11:47 am Post subject: |
|
|
Please check that the file /var/qmail/control/concurrencyincoming exists
that there is a number in it.
Please check that the file /var/qmail/control/me exists and that there
is a hostname in it. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|