[Solved] How does Virtualmin determine the mail directory and mail format for new users?

Hello,

we are running the latest version of Webmin (1.780) and Virtualmin.

We are using postfix to deliver the mail via “mailbox_transport = lmtp:unix:private/dovecot-lmtp” to Dovecot.

Dovecot is configured (also visible in the Webmin Dovecot module) with ~/Maildir as home directory and the mail system flow is fine and works for all existing users.

But if we try to create new users, Virtualmin tries to create the mail directory at /var/mail/username and not at /var/mail/username/Maildir.

How does Virtualmin determine the mail directory of the user and which format (mbox vs. maildir) to use?

Thanks,
Thomas

Howdy,

Hmm, what is the output of this command:

dovecot -n | grep mail_location

Hi,

thanks for response. Output is:

mail_location = maildir:~/Maildir

Thomas

Found possible solution:

postfix, main.cf

home_mailbox = Maildir/

Although I think its a “light” bug, because if Postfix delivers via dovecot-lmtp to the mailserver, it makes no sense to set home_mailbox in Postfix.

Nevertheless, I someelse else thinks its a bug, please comment and I log a bug. If not, hopefully that information is useful also for others.

Best,
Thomas