Hello,
this is first time that we notice this kind of "bug" in roundcube. Default quota size per user is 1GB and one of user had 90% used.
We cleared out email via console, here are details for this mailbox:
[root@mail Maildir]# ls -l
total 344
drwx------. 2 vmailacc mail 45056 Sep 10 20:16 cur
-rw-------. 1 vmailacc mail 340 Sep 10 20:13 dovecot.index
-rw-------. 1 vmailacc mail 44032 Sep 10 20:16 dovecot.index.cache
-rw-------. 1 vmailacc mail 9532 Sep 10 20:17 dovecot.index.log
-rw-------. 1 vmailacc mail 144 Sep 10 20:13 dovecot.mailbox.log
-rw-------. 1 vmailacc mail 719 Sep 10 20:16 dovecot-uidlist
-rw-------. 1 vmailacc mail 8 Sep 10 13:30 dovecot-uidvalidity
-r--r--r--. 1 vmailacc mail 0 Oct 20 2014 dovecot-uidvalidity.5444d16e
-rw-------. 1 vmailacc mail 519 Sep 10 20:16 maildirsize
drwx------. 2 vmailacc mail 217088 Sep 10 20:16 new
-rw-------. 1 vmailacc mail 23 Sep 10 20:13 subscriptions
drwx------. 2 vmailacc mail 4096 Sep 10 20:16 tmp
[root@mail Maildir]# du -h --max-depth=1
24K ./.Drafts
24K ./.Sent
4.0K ./tmp
1.6M ./cur
216K ./new
24K ./.Spam
144K ./.Trash
2.2M .
And when I login into users account via roundube I get this:
(http://oi62.tinypic.com/29p27mo.jpg)
As you can see in left buttom corner its written that mailbox is 69% used...
Do you have any idea what caused this? I already tried to restart everything (nginx, postfix, dovecot, policyd, ...), nothing helped.
p.s. We always cleard data via server directly (crontab) but this never happened before...
Thanks.
Enable imap_debug in the Roundcube config to see what the mail server is telling Roundcube.
Thanks for a tip, I thought there is easier way or "walk around" since we have +1000 mailbox over 50mail domains so its basically like I am searching needle in haystack.
You only need to enabled it to look at the log for the user that has the problem then you can disable it again. I don't think there is any to enable for only one account.
Here is config:
// ----------------------------------
// LOGGING/DEBUGGING
// ----------------------------------
// system error reporting, sum of: 1 = log; 4 = show, 8 = trace
$rcmail_config['debug_level'] = 1;
// log driver: 'syslog' or 'file'.
$rcmail_config['log_driver'] = 'syslog';
// date format for log entries
// (read http://php.net/manual/en/function.date.php for all format characters)
$rcmail_config['log_date_format'] = 'd-M-Y H:i:s O';
// Syslog ident string to use, if using the 'syslog' log driver.
$rcmail_config['syslog_id'] = 'roundcube';
// Syslog facility to use, if using the 'syslog' log driver.
// For possible values see installer or http://php.net/manual/en/function.openlog.php
$rcmail_config['syslog_facility'] = LOG_USER;
// Log sent messages to <log_dir>/sendmail or to syslog
$rcmail_config['smtp_log'] = true;
// Log successful logins to <log_dir>/userlogins or to syslog
$rcmail_config['log_logins'] = false;
// Log session authentication errors to <log_dir>/session or to syslog
$rcmail_config['log_session'] = false;
// Log SQL queries to <log_dir>/sql or to syslog
$rcmail_config['sql_debug'] = false;
// Log IMAP conversation to <log_dir>/imap or to syslog
$rcmail_config['imap_debug'] = true;
// Log LDAP conversation to <log_dir>/ldap or to syslog
$rcmail_config['ldap_debug'] = false;
// Log SMTP conversation to <log_dir>/smtp or to syslog
$rcmail_config['smtp_debug'] = false;
// ----------------------------------
And I cant get any info in /usr/share/nginx/html/roundcube/logs/errors
Am I doing something wrong?
Tnx
log_driver is set to 'syslog' so the logs should be going into the system log instead of into a file.
If you removed messages via linux console you most likely need to tell dovecot to recalculate mailbox size. Read dovecots documentation or ask on its mailing list.
Ive manage to fix it, if anyone get this "BUG" in roundcube then you need to check your Dovecot because problem is by Dovecot.
Steps:
1. In /etc/dovecot/dovcot.conf add mail_plugins = quota
2. Recalculate mail quote for user, example: doveadm quota recalc -u
[email protected]3. Restart dovecot, /etc/init.d/dovecot restart
4. relogin in roundcube