I had similar problems (I'm also a newbie), and I'm sure exactly how they
were resolved, but here is what I did. I'm running RH 6.2 and the 'Life with
qmail' setup qmail-send and qmail-smtp directories correctly, but did not do
qmail-pop3d. I had to figure out on my own. Well, here it is:

mkdir /var/qmail/supervise/qmail-pop3d
chmod 777 /var/qmail/supervise/qmail-pop3d
chmod +t /var/qmail/supervise/qmail-pop3d
mkdir /var/qmail/supervise/qmail-pop3d/log

the owner should be root.

/var/qmail/supervise/qmail-pop3d/run looks like:

#!/bin/sh
exec /usr/local/bin/tcpserver -v -R 0 pop-3 /var/qmail/bin/qmail-popup
yourdomain.com /bin/checkpassword /var/qmail/bin/qmail-pop3d Maildir 2>&1

the exec is all on one line. Replace yourdomain.com with your own FQDN. I'm
using redhat 6.2 so the port 110 is aliased as 'pop-3'.
/var/qmail/supervise/qmail-pop3d/log/run looks like:

#!/bin/sh
exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t
/var/log/qmail/pop3d

mkdir /var/log/qmail/pop3d
chown qmaill /var/log/qmail/pop3d

then I still had a problem with the same error messages you are getting.
Then I ran these commands, which I think created the lock files.

svc -u /var/qmail/supervise/qmail-pop3d
svc -u /var/qmail/supervise/*/log

It still did not work, then I rebooted, and everything started working.

Since tcpserver handles pop-3 (port 110), you should comment out your entry
in inetd.conf and then restart (killall -HUP inetd).

Documentation for supervise is at http://cr.yp.to/daemontools.html

Hope this helps,
Greg James
[EMAIL PROTECTED]


-----Original Message-----
From: Carey [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 04, 2000 6:21 PM
To: [EMAIL PROTECTED]
Subject: A couple newbie install questions


Hello all,

Problem 1: When starting qmail under svscan via the startup script (I'm
using Life With Qmail as my guide), I get errors complaining about being
unable to acquire a lock of certain files:
Supervise: fatal: unable to acquire qmail-send/supervise/lock: temporary
failure
Supervise: fatal: unable to acquire log/supervise/lock: temporary failure
Supervise: fatal: unable to acquire qmail-smtpd/supervise/lock: temporary
failure
Supervise: fatal: unable to acquire log/supervise/lock: temporary failure

My guess is that this is a permission or ownership problem? I tried
chmodding the directories the lock files are in to 777 and deleted the lock
files, but no dice. Any ideas?

Problem 2: When I manually start qmail (no svscan running), I am able to
connect to port 110, but only for a moment. It immediately disconnects me
like so:
Trying my.ip.address...
Connected to dellhost.wierd.ip.address (my.ip.address)
Escape character is '^]'.
Connection closed by foreign host.

I am able to manually run qmail-popup like this:
/var/qmail/bin/qmail-popup host /bin/checkpassword pwd

Do you think my problem has to do with my pop3 entry in inetd.conf? What
should my entry to inetd.conf look like? Thanks for any help anyone can
offer.

Gregg

Reply via email to