Wrong mailboxes directory under home directory

2 posts / 0 new
Last post
#1 Sun, 01/18/2015 - 04:45
dubravko

Wrong mailboxes directory under home directory

Hi,

I have issue with Virtualmin/Usermin. When I create new account and login to Usermin (with this new account) mail folders are wrong:

Inbox: ~/Maildir

Sent mail: ~/mail/sentmail

Drafts: ~/mail/drafts

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

That is OK because this directory doesn't exists.

I fixed this issue with: Mail Preferences -> Mail folders -> Mailboxes directory under home directory and changed the value from "mail" to "Maildir".

I investigated why this is happening. In Webmin, Webmin -> Usermin Configuration -> Usermin Module Configuration -> Read mail -> Default user preferances value for "Mailboxes directory under home directory" is fine: "Maildir". My conslusion is that Default user preferances are not applied to new users.

I checked for config file in user's home directory (~/.usermin/mailbox/config) and this file does not exists for new user (it is created when user change Mail preferences in Usermin).

I grep /etc/ for "mailbox_dir" (what is the key in config file for "Mailboxes directory under home directory"):

/etc/usermin/mailbox/uconfig:mailbox_dir=Maildir

The OS is Debian 7, Webmin 1.730, Virtualmin 4.13 gpl. It is a fresh install, generally with all default settings.

It is a Virtualmin/Usermin issue or there is setting that I missed?

Thu, 01/29/2015 - 18:06
ElectronicFur

Hi,

I have experienced the exact same issue on Debian 7, and created a bug report here:

https://www.virtualmin.com/node/36027

Topic locked