Hi everyone,
first I am new to qmail and I am using qmail with vpopmail and mysql
support. I have several questions: Using the startup-scripts from
www.inter7.com plus the startup scripts from My Life with qmail (of course I
have adjusted the scripts from life with qmail to the needs of vpopmail as
suggested by the authors) leads into an endless loop of
tcpserver fatal error: unable to bind address
messages. Where is my mistake? Scripts are posted at the end of the mail...
Question 2:
How does vpopmail put the mail? If there are no user accounts right? if you
want to have ./Maildir/ support do you have to setup homedirs for every
popaccount? what about dups?
Question 3:
Is there a qmail-pop3d hack out there which supports ./Mailbox formats and
vchkpw?
now to my scripts...
/sbin/init.d/qmail...
#!/bin/sh
PATH=/var/qmail/bin:/usr/local/bin:/usr/bin:/bin
export PATH
case "$1" in
start)
echo -n "Starting qmail: svscan"
cd /var/qmail/supervise
env - PATH="$PATH" svscan &
echo $! > /var/run/svscan.pid
echo "."
;;
stop)
echo -n "Stopping qmail: svscan"
kill cat /var/run/svscan.pid echo -n " qmail"
svc -dx /var/qmail/supervise/*
echo -n " logging"
svc -dx /var/qmail/supervise/*/log
echo "."
;;
stat)
cd /var/qmail/supervise
svstat * */log
;;
doqueue|alrm)
echo "Sending ALRM signal to qmail-send."
svc -a /var/qmail/supervise/qmail-send
;;
queue)
qmail-qstat
qmail-qread
;;
reload|hup)
echo "Sending HUP signal to qmail-send."
svc -h /var/qmail/supervise/qmail-send
;;
pause)
echo "Pausing qmail-send"
svc -p /var/qmail/supervise/qmail-send
echo "Pausing qmail-smtpd"
svc -p /var/qmail/supervise/qmail-smtpd
;;
cont)
echo "Continuing qmail-send"
svc -c /var/qmail/supervise/qmail-send
echo "Continuing qmail-smtpd"
svc -c /var/qmail/supervise/qmail-smtpd
;;
restart)
echo "Restarting qmail:"
echo "* Stopping qmail-smtpd."
svc -d /var/qmail/supervise/qmail-smtpd
echo "* Sending qmail-send SIGTERM and restarting."
svc -t /var/qmail/supervise/qmail-send
echo "* Restarting qmail-smtpd."
svc -u /var/qmail/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 tcpserver 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|queue|help}"
exit 1
;;
esac
exit 0
-----
/var/qmail/rc...
#!/bin/sh
exec env - PATH="/var/qmail/bin:$PATH" \
qmail-start ./Maildir/
-----
/var/qmail/supervise/qmail-send/run ... and log/run ...
#!/bin/sh
exec /var/qmail/rc
#!/bin/sh
exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t
/var/log/qmail
-----
/var/qmail/supervise/qmail-smtpd/run ... and log/run ...
#!/bin/sh
#QMAILDUID= d -u qmaild NOFILESGID= d -g qmaild exec
#/usr/local/bin/softlimit -m 2000000 \
# /usr/local/bin/tcpserver -v -p -x /etc/tcp.smtp.cdb \
# -u $QMAILDUID -g $NOFILESGID 0 smtp /var/qmail/bin/qmail-smtpd 2>&1
env - PATH="/var/qmail/bin:/usr/local/bin" \
tcpserver -H -R -x /etc/tcp.smtp.cdb -c20 -u 507 -g101 0 smtp \
/var/qmail/bin/qmail-smtpd 2>&1 > /dev/null &
#!/bin/sh
exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t
/var/log/qmail/smtpd
-----
/var/qmail/supervise/qmail-pop3d/run ... and log/run ...
#!/bin/sh
env - PATH="/var/qmail/bin:/usr/local/bin" \
tcpserver 0 pop3 /var/qmail/bin/qmail-popup mail.byteaction.de \
/var/qmail/vpopmail/bin/vchkpw /var/qmail/bin/qmail-pop3d Maildir &
#!/bin/sh
exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t
/var/log/qmail/pop3d
-----
Any Help from the pros is highly appreciated
kind regards
Juergen Hoffmann