Roundcube using wrong Maildir, Usermin using right one (RESOLVED)

2 posts / 0 new
Last post
#1 Wed, 07/24/2019 - 21:07
ZKShao

Roundcube using wrong Maildir, Usermin using right one (RESOLVED)

Hi everyone,

I'm running into a small problem after doing apt-get dist-upgrade. Not the wisest action without making a backup, I have concluded. The damage is minor since I'm the only user on it but I have some webmail troubles and could use some help on how to fix it. This is a small DigitalOcean droplet running Debian 8.

The problem is that when I try to log into my webmail via Roundcube or Squirrelmail (tried both), my emails aren't appearing. I have been able to ssh into the droplet and recover my Maildir, so the data is still on there. It's just that Roundcube and Squirrelmail are looking in the wrong location.

I've discovered the following:

  • My email history is stored at /home/mysite/homes/myuser/Maildir. I was able to copy this to my Windows machine and view it, the contents are safe.

  • Usermin shows that email history just fine, another good sign. Actually, Usermin works just fine, sending and receiving.

  • Roundcube and Squirrelmail are instead accessing /home/mysite/Maildir. I found this because when sending an email from Roundcube modifies that directory. After sending, it appears in the "sent" box on Roundcube, but deleting that dir clears the sent box.

  • I can still receive emails. They appear in Usermin but not in Roundcube.

My question is: how can I tell Roundcube to use the user specific Maildir?

Appreciate your time. :)

Thu, 07/25/2019 - 16:48
ZKShao

Resolved! I had to go to /etc/dovecot/conf.d/10-mail.conf and in there change

mail_location = mbox:~/mail:INBOX=/var/mail/%u

into

mail_location = maildir:~/Maildir

This guide helped me troubleshoot: https://docs.bitnami.com/oci/apps/roundcube/configuration/use-postfix-do...