This is on a new Virtualmin installation with install.sh on clean Debian 7 Wheezy, as per https://www.virtualmin.com/documentation/installation/automated
The install has somehow setup Usermin so the mail folders are a mixture of mbox and Maildir. This is the folders for a newly created user:
Sent mail: ~/mail/sentmail
Drafts (Courier): ~/Maildir/.Drafts
Sent (Courier): ~/Maildir/.Sent
Trash (Courier): ~/Maildir/.Trash
When I click on Sent mail or Drafts I get message:
Failed to open /home/user/mail/sentmail : No such file or directory Failed to open /home/user/mail/drafts : No such file or directory
This is because the directories dont exist as everything is setup for Maildir, as you would expect. When the user then sends an email from Usermin, it ends up writing sent emails into the file ~/mail/sentmail in mbox format, instead of into the ~/Maildir/.Sent folder in Maildir format.
I cant see where the install.sh has gone wrong, as checking the config setting in Webmin show them to be set to Maildir as follows:
Maildir -> Usermin Configuration -> Usermin Module Configuration -> Read mail -> Default user preferences-> Mailboxes directory under home directory = Maildir
Maildir -> Usermin Configuration -> Usermin Module Configuration -> Read mail -> Global module configuration -> Qmail or MH directory in home directory = Maildir
There is no ~/.usermin/mailbox/config for new users. So I assume the settings come from /etc/usermin/mailbox/config which contains:
The above error is not a major issue for me, as I use Roundcube for most of my users, which does not have this problem. But I thought I should report the error as it seems to be due to a bug in the install on a clean Debian Wheezy.