Hello,

I'm having a problem where qmail is attempting to deliver mail to
/home/usr/Maildir instead of
/usr/local/vpopmail/domain/mydomain/user/Maildir.
Most of the users are vpopmail users and therefore do not have a /home/usr
directory, so I get the dreaded 'Unable_to_chdir_to_maildir' on incoming
mail to them.
After 4 hrs sleep in the last 24 hrs straight trying to get this problem
solved, I'm getting a little frustrated. Any feedback would be appreciated.

Here are my files:

warabi# cat /usr/local/etc/rc.d/svscan.sh
------------------------
#!/bin/sh -e
# startup script from:
# http://www.flounder.net/qmail/qmail-howto.html#8

#ln -s /var/qmail/supervise/qmail-pop3d /service/qmail-pop3d

case "$1" in
     start)
        echo -n "Startng djb services: svscan "
        cd /service
        env - PATH="/usr/local/bin:$PATH" svscan &
        echo $! > /var/run/svscan.pid
        echo "."
        ;;
     stop)
        echo -n "Stopping djb services: svscan "
        kill `cat /var/run/svscan.pid`
        echo -n "services "
        svc -dx /service/*
        echo -n " logging "
        svc -dx /service/*/log
        echo "."
        ;;
     restart|reload|force-reload)
        $0 stop
        $0 start
        ;;
     *)
        echo 'Usage: /usr/local/etc/rc.d/svscan (start|stop|restart)'
        exit 1;
esac

exit 0
------------------------

warabi#   cat /service/qmail-send/run

------------------------
#!/bin/sh
exec /var/qmail/rc
------------------------

warabi# cat /service/qmail-smtpd/run
------------------------
#!/bin/sh

QMAILDUID=`id -u qmaild`
NOFILESGID=`id -g qmaild`
exec /usr/local/bin/softlimit -m 2000000 \
 /usr/local/bin/tcpserver -v -p -x /usr/local/vpopmail/etc/tcp.smtp.cdb \
 -u $QMAILDUID -g $NOFILESGID 0 smtp /var/qmail/bin/qmail-smtpd 2>&1
------------------------


------------------------
------------------------
------------------------

Reply via email to