Results 1 to 10 of 13
Hello All,
I'm trying to get a qmail install up and running (first time), but came accross this problem...
By the way, I'm using this HOW_TO: http://lifewithqmail.org/lwq.html
I'm supposed to ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 05-22-2003 #1Just Joined!
- Join Date
- May 2003
- Posts
- 40
First qmail install...HELP
Hello All,
I'm trying to get a qmail install up and running (first time), but came accross this problem...
By the way, I'm using this HOW_TO: http://lifewithqmail.org/lwq.html
I'm supposed to verify that the "qmailctl stop" script runs, but it doesn't kill the processes:
# netstat -a | grep smtp
tcp 0 0 localhost:smtp *:* LISTEN
unix 2 [ ACC ] STREAM LISTENING 2808 private/smtp
unix 2 [ ACC ] STREAM LISTENING 2844 private/bsmtp
# qmailctl stop
Stopping qmail...
qmail-smtpd
qmail-send
# netstat -a | grep smtp
tcp 0 0 localhost:smtp *:* LISTEN
unix 2 [ ACC ] STREAM LISTENING 2808 private/smtp
unix 2 [ ACC ] STREAM LISTENING 2844 private/bsmtp
So I went to the script itself:
<----BEGIN----->
.....
PATH=/var/qmail/bin:/bin:/usr/bin:/usr/local/bin:/usr/local/sbin
export PATH
QMAILDUID=`id -u qmaild`
NOFILESGID=`id -g qmaild`
case "$1" in
start)
.............
fi
;;
stop)
echo "Stopping qmail..."
echo " qmail-smtpd"
svc -d /service/qmail-smtpd /service/qmail-smtpd/log
echo " qmail-send"
svc -d /service/qmail-send /service/qmail-send/log
if [ -f /var/lock/subsys/qmail ]; then
rm /var/lock/subsys/qmail
fi
;;
<----END----->
I checked both /service/..../.../..../ locations and they are present.....
So, what is wrong with the script?? Why does't it stop qmail?
- 05-22-2003 #2Linux Guru
- Join Date
- Oct 2001
- Location
- Täby, Sweden
- Posts
- 7,578
What does that svc function look like?
- 05-22-2003 #3Just Joined!
- Join Date
- May 2003
- Posts
- 40
svc is part of the daemontools I was required to install. The default location is:
/package/admin/daemontools/command
# ls -la svc
-rwxr-xr-x 1 root root 10248 May 22 11:20 svc
As far as I understand, it is a binary...thus can't actually see it...
Is that what you meant?
- 05-22-2003 #4Linux Guru
- Join Date
- Oct 2001
- Location
- Täby, Sweden
- Posts
- 7,578
Are you sure that it's a binary and not just a shell script? Check with the file command.
- 05-22-2003 #5Just Joined!
- Join Date
- May 2003
- Posts
- 40
Here you go:
# file svc
svc: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), stripped
- 05-22-2003 #6Linux Guru
- Join Date
- Oct 2001
- Location
- Täby, Sweden
- Posts
- 7,578
I see, it is a binary. In that case I can't help you. I don't have that program. What distribution are you using?
- 05-22-2003 #7Just Joined!
- Join Date
- May 2003
- Posts
- 40
SuSE 8.1 pro
- 05-23-2003 #8Linux Guru
- Join Date
- Oct 2001
- Location
- Täby, Sweden
- Posts
- 7,578
What does the svc program do? Is there a manpage for it?
- 05-23-2003 #9Just Joined!
- Join Date
- May 2003
- Posts
- 40
nope....there is no man page for it.....
- 05-23-2003 #10Just Joined!
- Join Date
- May 2003
- Posts
- 40
OK, last problem solved....the SMTP processes you saw before were from postfix.....
That is why the script didn't shut it down....
OK, so I sent my first 2 test messages....
TESTING.....
I have tried this in two ways:
#1 echo to: this_local_user | /var/qmail/bin/qmail-inject
#2 echo to: <xuserx>@yahoo.com | /var/qmail/bin/qmail-inject
And then I check....
# qmailctl stat
/service/qmail-send: up (pid 13441) 110 seconds
/service/qmail-send/log: up (pid 13443) 110 seconds
/service/qmail-smtpd: up (pid 13446) 110 seconds
/service/qmail-smtpd/log: up (pid 13451) 110 seconds
messages in queue: 2
messages in queue but not yet preprocessed: 0
But they are stuck in that queue and I'm not getting the email.....?!
Any thoughts...????


Reply With Quote
