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

4 posts / 0 new
Last post
#1 Sat, 02/20/2016 - 11:02
Kofl

[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

Sat, 02/20/2016 - 19:06
andreychek

Howdy,

Hmm, what is the output of this command:

dovecot -n | grep mail_location

Sun, 02/21/2016 - 06:23 (Reply to #2)
Kofl

Hi,

thanks for response. Output is:

mail_location = maildir:~/Maildir

Thomas

Sun, 02/21/2016 - 06:30
Kofl

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

Topic locked