I meant to post this to the list. I am still having problems with my pop3
authentication.
>How exactly do you start it (from inetd or tcpserver)? What's the
>exact invocation line? Try also to connect by telnet:
I am using tcpserver to start qmail. Here is my startup script (I hope this
isn't too long):
*****************************************************
#!/bin/sh
PATH=/var/qmail/bin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin
export PATH
QMAILDUID=`id -u qmaild`
NOFILESGID=`id -g qmaild`
case "$1" in
start)
echo -n "Starting qmail: qmail-send"
supervise /var/supervise/qmail/send /var/qmail/rc |
setuser qmaill cyclog /var/log/qmail &
echo -n " qmail-smtpd"
supervise /var/supervise/qmail/smtpd tcpserver -v -x/etc/tcp.smtp.cdb \
-u$QMAILDUID -g$NOFILESGID 0 smtp \
/var/qmail/bin/qmail-smtpd-wrapper 2>&1 | setuser qmaill accustamp | \
setuser qmaill cyclog /var/log/qmail/smtpd &
echo -n " checkpassword"
tcpserver -v -R 0 pop-3 \
/var/qmail/bin/qmail-popup mail.slave-1.net /bin/checkpassword \
/var/qmail/bin/qmail-pop3d maildir 2>&1 | /var/qmail/bin/splogger
pop3d&
echo "."
;;
stop)
echo -n "Stopping qmail: qmail-smtpd"
svc -dx /var/supervise/qmail/smtpd
echo -n " qmail-send"
svc -dx /var/supervise/qmail/send
echo "."
;;
stat)
echo "Checking qmail-send"
svstat /var/supervise/qmail/send
echo "Checking qmail-smtpd"
svstat /var/supervise/qmail/smtpd
echo "Checking queue"
qmail-qstat
;;
doqueue|alrm)
echo "Sending ALRM signal to qmail-send."
svc -a /var/supervise/qmail/send
;;
queue)
qmail-qstat
qmail-qread
;;
reload|hup)
echo "Sending HUP signal to qmail-send."
svc -h /var/supervise/qmail/send
;;
pause)
echo "Pausing qmail-send"
svc -p /var/supervise/qmail/send
echo "Pausing qmail-smtpd"
svc -p /var/supervise/qmail/smtpd
;;
cont)
echo "Continuing qmail-send"
svc -c /var/supervise/qmail/send
echo "Continuing qmail-smtpd"
svc -c /var/supervise/qmail/smtpd
;;
restart)
echo "Restarting qmail:"
echo "* Stopping qmail-smtpd."
svc -d /var/supervise/qmail/smtpd
echo "* Sending qmail-send SIGTERM and restarting."
svc -t /var/supervise/qmail/send
echo "* Restarting qmail-smtpd."
svc -u /var/supervise/qmail/smtpd
;;
cdb)
tcprules /etc/tcp.smtp.cdb /etc/tcp.smtp.tmp < /etc/tcp.smtp
chmod 644 /etc/tcp.smtp*
echo "Reloaded /etc/tcp.smtp."
;;
help)
cat <<HELP
stop -- stops mail service (smtp connections refused, nothing goes out)
start -- starts mail service (smtp connection accepted, mail can go out)
pause -- temporarily stops mail service (connections accepted, nothing
leaves
)
cont -- continues paused mail service
stat -- displays status of mail service
cdb -- rebuild the tcpcontrol cdb file for smtp
restart -- stops and restarts smtp, sends qmail-send a TERM & restarts it
doqueue -- sends qmail-send ALRM, scheduling queued messages for
delivery
reload -- sends qmail-send HUP, rereading locals and virtualdomains
queue -- shows status of queue
alrm -- same as doqueue
hup -- same as reload
HELP
;;
*)
echo "Usage: $0
{start|stop|restart|doqueue|reload|stat|pause|cont|cdb|queu
e|help}"
exit 1
;;
esac
exit 0
***************************
my /var/qmail/rc file is as follows:
+++++++++++++++++++++++++
#!/bin/sh
# Using splogger to send the log through syslog.
# Using qmail-local to deliver messages to ~/Mailbox by default.
exec env - PATH="/var/qmail/bin:$PATH" \
qmail-start ./Maildir/ accustamp
++++++++++++++++++++++++
>telnet machine 110
>+OK ...
>USER usernname
>+OK ...
>PASS password
>+OK ...
>
>In which step does -ERR occur?
This was a telling test. When I execute the above, I get the -ERR "this user
has no $HOME/Maildir". However, this is untrue. I have created the Maildir
for the user using:
/var/qmail/bin/maildirmake $HOME/Maildir
I did this as the user (not root), and I have verified that the user owns his
Maildir. I have also put a "./Maildir" line in my .qmail file. Everything
seems to be in order, right?
Thanks for the help.