On Saturday 29 December 2007 14:20:47 Timo Sirainen wrote:
On Sat, 2007-12-29 at 14:00 -0700, Andrew Falanga wrote:
mail_location: mbox:~/mail/:INBOX=/var/mail/%u
..
userdb: driver: sql args: /usr/local/etc/dovecot-sql.conf
..
Dec 29 15:01:54 whitbap dovecot: POP3(jdunkin): mkdir_parents(/var/mail/vmail//mail) failed: Not a directory
Your SQL lookup returns "/var/mail/vmail/" as the user's home directory. You'll need to have a proper per-user directory as their home. For example have the user_query return '/home/virtual/%u' as home. See http://wiki.dovecot.org/VirtualUsers#homedirs
Ok, I'm beginning to grasp this. However, my understanding is still incomplete somehow. The changes I've made thus far are:
- now, all virtual users have a "home" directory in /virtusers/%u
- home field in the PostgreSQL database says, /virtusers/<userid>
The errors as before are no longer being shown. However, as I stated before, I have sendmail configured with aliases to "map" a virtual users, such as jdunkin, to the system user vmail. This user is getting all the mail for the aliases (virtual user accounts). How do I get the mail to each virtual user?
Also setting auth_debug=yes and mail_debug=yes may be helpful when figuring out why things don't work right.
Thank you for the help with this. I didn't know about the debug things.
Andy