Hello,
My saga continues...
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 (-> /var/qmail/supervise/qmail-send/run) ------------------------ #!/bin/sh exec /var/qmail/rc ------------------------ warabi# cat /service/qmail-smtpd/run (-> /var/qmail/supervise/qmail-smtp/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 ------------------------ warabi# cat /service/qmail-pop3d/run (-> /var/qmail/supervise/qmail-pop3d/run) ------------------------ #!/bin/sh env - PATH="/var/qmail/bin:/usr/local/bin" \ /usr/local/bin/tcpserver -H -R -u vpopmail -g vchkpw 0 pop3 /var/qmail/bin/qmail-popup \ warabi.nca.or.jp /usr/local/vpopmail/bin/vchkpw \ /var/qmail/bin/qmail-pop3d Maildir 2>&1 ------------------------ warabi# cat /var/qmail/rc ------------------------ #!/bin/sh exec env - PATH="/var/qmail/bin:$PATH" \ qmail-start "`cat /var/qmail/control/defaultdelivery`" 2>&1 ------------------------ warabi# cat /var/qmail/control/defaultdelivery ------------------------ ./Maildir/ ------------------------ warabi# cat /var/qmail/control/defaultdomain ------------------------ warabi.nca.or.jp ------------------------ warabi# cat /usr/local/vpopmail/etc/tcp.smtp ------------------------ 127.0.0.1:allow,RELAYCLIENT="" ------------------------ warabi# cat /var/qmail/users/assign ------------------------ +nca.or.jp-:nca.or.jp:1227:65535:/usr/local/vpopmail/domains/nca.or.jp:-:: .
------------------------ All files/dirs under /usr/local/vpopmail are chown vpopmail.vchkpw. All subdirs are chmod 755. According to http://www.lifewithqmail.org/lwq.html ,
"3.6.2. Wildcard assignment
A wildcard assignment looks like: +prefix:user:uid:gid:directory:dash:prepend:
What this means is that messages received for addresses of the
form prefixrest will run as user user, with the specified uid and gid, and the
file directory/.qmaildashprependrest will specify how the messages are to be
delivered."
I have the following file:
warabi# cat /usr/local/vpopmail/domains/nca.or.jp/.qmail-default | /usr/local/vpopmail/bin/vdelivermail '' /usr/local/vpopmail/domains/nca.or.jp/1/04awano Which I assume means that bounced mail goes to [EMAIL PROTECTED] . Is this
correct?
I still don't see why qmail is trying to put the mail in /home/usr/Maildir instead of under the vpopmail/domains directory... Can anyone see what I am missing here? Thanks for any help. Shawn |