Users cannot access POP3 account

Hi

We are in the process of upgrading our existing server and setting up some new servers.

We currently have 3 Virtualmin Pro servers and 1 Virtualmin GPL server (for testing).

All these servers have just been loaded from scratch with clean Debain and then Virtualmin with no other additions.

In the mail log we are getting "Jun 23 08:23:09 sv15 dovecot: POP3(xxx@xxxx.com): mkdir(/var/lib/dovecot/index/xxx@xxxx.com/.INBOX) failed: Permission denied"

When checking the Dovecot configuration file /etc/dovecot/dovecot.conf I have found the following

Virtualmin PRO has "mail_location = maildir:~/Maildir:INDEX=/var/lib/dovecot/index/%u:CONTROL=/var/lib/dovecot/control/%u"

Vitrulamin GPL has "mail_location = maildir:~/Maildir"

Our old server running Virtualmin Pro does not have a "mail_location" setting at all

Can you tell me what they should be as suspect this is the problem.

Can this be caused by us when installing?

Thanks Greg

Status: 
Closed (fixed)

Comments

Nice find in limiting it down to the mail_location line :-)

There's a couple of ways to resolve that -- personally, I'd change the mail_location lines to what you're seeing on your GPL install:

mail_location = maildir:~/Maildir

That's exactly what I have setup on my systems here.

You'll need to restart dovecot afterwards:

/etc/init.d/dovecot restart

Alternatively, you might want to make sure that /var/lib/dovecot is world-readable and listable (mode 755), and /var/lib/dovecot/control and index are world-writable (mode 777).

Which is the preferred or correct setting for Virtualmin?

The preferred setting is the permissions I mentioned above. These are actually the defaults setup by the Virtualmin installer, but sometimes upgrading Dovecot can break them..