From: Jamie C. <jca...@we...> - 2011-07-05 19:14:29
|
On 05/Jul/2011 06:29 Trutwin, Joshua <JTRUTWIN@CSBSJU.EDU> wrote .. > > Yes, this is possible in Virtualmin. You can change the format for mailboxes > > at System Settings -> Server Templates -> Default Settings -> Mail for > > domain. On that page there is a field for the username format for users > > created from now on... > > Ah thanks, I saw that page and left it too quickly thinking it was just for email > templates. OK, changed setting to email and created new virtual user, works great. > Only problem now is dovecot complains when I try to login (via Horde/IMP IMAP test): > > Jul 4 08:39:10 server dovecot: imap(jo...@fo...): Error: user jo...@fo...: Initialization > failed: mail_location not set and autodetection failed: Mail storage autodetection > failed with home=/home/domains/ foo/homes/josh > Jul 4 08:39:10 server dovecot: imap(jo...@fo...): Error: Invalid user settings. > Refer to server log for more information. > > I thought maybe the permissions were an issue (my home dirs. are all 750) but that > wasn't it. The mail location it auto-detected seems fine: > > [root@server domains]# ls -al /home/domains/foo/homes/josh/ > total 12 > drwxr-x--- 3 jo...@fo... foo 4096 Jul 3 23:29 . > drwxr-xr-x. 4 foo foo 4096 Jul 3 23:29 .. > drwxr-xr-x 2 jo...@fo... foo 4096 Jul 3 23:29 mail > > The "mail" dir is empty though - should there be a set of Mailbox folders in there > (cur, new, tmp, etc?)? I've made no changes to the default dovecot config: > > [root@server domains]# dovecot -n > # 2.0.9: /etc/dovecot/dovecot.conf > # OS: Linux 2.6.32-131.2.1.el6.x86_64 x86_64 Scientific Linux release 6.0 (Carbon) > mbox_write_locks = fcntl > passdb { > driver = pam > } > ssl_cert = </etc/pki/dovecot/certs/dovecot.pem > ssl_key = </etc/pki/dovecot/private/dovecot.pem > userdb { > driver = passwd > } > > Some googling suggests there is supposed to be a dovecot-postfix.conf file? > > Thanks for continued assistance! Maybe you need to explicitly set the mail location in the dovecot configuration? This is probably good practice anyway, as it is unclear how auto-detection works. This can be done in Webmin in the Dovecot module, on the "Mail Files" page. - Jamie |