Roundcube Community Forum
Release Support => Release Discussion => Topic started by: Emilio_Maestro on April 20, 2015, 11:53:08 AM
-
Hi everyone.
Today i configure quota on my postfix/courier-imap/courier-pop all are good and quota are good.
Quota for users are defined in MySQL and when mailbox are full the mail is correctly rejected.
But in roundcube, quota at the left bottom is unlimited or 0 if i change in config "zeo_is_unlimited"
I dont understand...
Thanks to all.
-
Enable imap_debug and post the log.
-
How to enable imap_debug and where can i see logs ?
Thanks.
-
Add the following to your config.inc.php file:
// Log IMAP conversation to <log_dir>/imap or to syslog
$config['imap_debug'] = true;
-
Apr 20 19:54:52 imapd: LOGIN, user=***@domain.fr, ip=[::ffff:176.*.*.*], port=[60978], protocol=IMAP
Apr 20 19:54:52 imapd: LOGOUT, user=***@domaine.fr, ip=[::ffff:176.*.*.*], headers=0, body=0, rcvd=52, sent=310, time=0
-
Thats not the full imap_log, it should be logging to <log_dir>/imap
-
It doesnt exist. ( /var/log)
-
It should be in <rc root>/logs
-
In /root ?
root@site:/# ls -al root
total 44
drwx------ 4 root root 4096 Apr 9 14:47 .
drwxr-xr-x 22 root root 4096 Oct 28 11:09 ..
drwx------ 2 root root 4096 Apr 21 06:45 .aptitude
-rw------- 1 root root 5467 Apr 21 07:11 .bash_history
-rw-r--r-- 1 root root 568 Sep 22 2014 .bashrc
drwx------ 2 root root 4096 Apr 20 14:19 .gnupg
-rw------- 1 root root 102 Apr 9 14:47 .mysql_history
-rw------- 1 root root 220 Apr 20 17:41 .nano_history
-rw-r--r-- 1 root root 140 Nov 19 2007 .profile
-rw------- 1 root root 1024 Apr 18 11:16 .rnd
-
<rc root> = Roundcube directory, wherever that is on your server.
-
Ho, sorry i'm stupid...
[21-Apr-2015 08:44:14 +0200]: [3646] S: * OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION] Courier-IMAP ready. Copyright 1998-2011 Double Precision, Inc. See COPYING for distribution information.
[21-Apr-2015 08:44:14 +0200]: [3646] C: A0001 LOGIN ****** [34]
[21-Apr-2015 08:44:14 +0200]: [3646] S: * OK [ALERT] Filesystem notification initialization error -- contact your mail administrator (check for configuration errors with the FAM/Gamin library)
[21-Apr-2015 08:44:14 +0200]: [3646] S: A0001 OK LOGIN Ok.
[21-Apr-2015 08:44:14 +0200]: [3646] C: A0002 NAMESPACE
[21-Apr-2015 08:44:14 +0200]: [3646] S: * NAMESPACE (("INBOX." ".")) NIL (("#shared." ".")("shared." "."))
[21-Apr-2015 08:44:14 +0200]: [3646] S: A0002 OK NAMESPACE completed.
[21-Apr-2015 08:44:14 +0200]: [3646] C: A0003 LOGOUT
[21-Apr-2015 08:44:14 +0200]: [3646] S: * BYE Courier-IMAP server shutting down
[21-Apr-2015 08:44:14 +0200]: [3646] S: A0003 OK LOGOUT completed
[21-Apr-2015 08:44:15 +0200]: [24D4] S: * OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION] Courier-IMAP ready. Copyright 1998-2011 Double Precision, Inc. See COPYING for distribution information.
[21-Apr-2015 08:44:15 +0200]: [24D4] C: A0001 LOGIN ****** [34]
[21-Apr-2015 08:44:15 +0200]: [24D4] S: * OK [ALERT] Filesystem notification initialization error -- contact your mail administrator (check for configuration errors with the FAM/Gamin library)
[21-Apr-2015 08:44:15 +0200]: [24D4] S: A0001 OK LOGIN Ok.
[21-Apr-2015 08:44:15 +0200]: [24D4] C: A0002 CAPABILITY
[21-Apr-2015 08:44:15 +0200]: [24D4] S: * CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION
[21-Apr-2015 08:44:15 +0200]: [24D4] S: A0002 OK CAPABILITY completed
[21-Apr-2015 08:44:15 +0200]: [24D4] C: A0003 LSUB "" "*"
[21-Apr-2015 08:44:15 +0200]: [24D4] S: * LSUB (\HasNoChildren) "." "INBOX.Drafts"
[21-Apr-2015 08:44:15 +0200]: [24D4] S: * LSUB (\HasNoChildren) "." "INBOX.Stage"
[21-Apr-2015 08:44:15 +0200]: [24D4] S: * LSUB (\HasNoChildren) "." "INBOX.Sent"
[21-Apr-2015 08:44:15 +0200]: [24D4] S: * LSUB (\HasNoChildren) "." "INBOX.Trash"
[21-Apr-2015 08:44:15 +0200]: [24D4] S: * LSUB (\Noselect \HasChildren) "." "INBOX"
[21-Apr-2015 08:44:15 +0200]: [24D4] S: A0003 OK LSUB completed
[21-Apr-2015 08:44:15 +0200]: [24D4] C: A0004 LIST "" "*"
[21-Apr-2015 08:44:15 +0200]: [24D4] S: * LIST (\HasNoChildren) "." "INBOX.Trash"
[21-Apr-2015 08:44:15 +0200]: [24D4] S: * LIST (\HasNoChildren) "." "INBOX.Drafts"
[21-Apr-2015 08:44:15 +0200]: [24D4] S: * LIST (\HasNoChildren) "." "INBOX.Stage"
[21-Apr-2015 08:44:15 +0200]: [24D4] S: * LIST (\Marked \HasChildren) "." "INBOX"
[21-Apr-2015 08:44:15 +0200]: [24D4] S: * LIST (\HasNoChildren) "." "INBOX.Sent"
[21-Apr-2015 08:44:15 +0200]: [24D4] S: A0004 OK LIST completed
[21-Apr-2015 08:44:15 +0200]: [24D4] C: A0005 GETQUOTAROOT INBOX
[21-Apr-2015 08:44:15 +0200]: [24D4] S: * QUOTAROOT "INBOX" "ROOT"
[21-Apr-2015 08:44:15 +0200]: [24D4] S: * QUOTA "ROOT"
[21-Apr-2015 08:44:15 +0200]: [24D4] S: A0005 OK GETQUOTAROOT Ok.
[21-Apr-2015 08:44:15 +0200]: [24D4] C: A0006 LOGOUT
[21-Apr-2015 08:44:15 +0200]: [24D4] S: * BYE Courier-IMAP server shutting down
[21-Apr-2015 08:44:15 +0200]: [24D4] S: A0006 OK LOGOUT completed
[21-Apr-2015 08:44:17 +0200]: [B0E3] S: * OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION] Courier-IMAP ready. Copyright 1998-2011 Double Precision, Inc. See COPYING for distribution information.
[21-Apr-2015 08:44:17 +0200]: [B0E3] C: A0001 LOGIN ****** [34]
[21-Apr-2015 08:44:17 +0200]: [2F46] S: * OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION] Courier-IMAP ready. Copyright 1998-2011 Double Precision, Inc. See COPYING for distribution information.
[21-Apr-2015 08:44:17 +0200]: [2F46] C: A0001 LOGIN ****** [34]
[21-Apr-2015 08:44:17 +0200]: [B0E3] S: * OK [ALERT] Filesystem notification initialization error -- contact your mail administrator (check for configuration errors with the FAM/Gamin library)
[21-Apr-2015 08:44:17 +0200]: [B0E3] S: A0001 OK LOGIN Ok.
[21-Apr-2015 08:44:17 +0200]: [B0E3] C: A0002 LSUB "" "*"
[21-Apr-2015 08:44:17 +0200]: [B0E3] S: * LSUB (\HasNoChildren) "." "INBOX.Drafts"
[21-Apr-2015 08:44:17 +0200]: [B0E3] S: * LSUB (\HasNoChildren) "." "INBOX.Stage"
[21-Apr-2015 08:44:17 +0200]: [B0E3] S: * LSUB (\HasNoChildren) "." "INBOX.Sent"
[21-Apr-2015 08:44:17 +0200]: [B0E3] S: * LSUB (\HasNoChildren) "." "INBOX.Trash"
[21-Apr-2015 08:44:17 +0200]: [B0E3] S: * LSUB (\Noselect \HasChildren) "." "INBOX"
[21-Apr-2015 08:44:17 +0200]: [B0E3] S: A0002 OK LSUB completed
[21-Apr-2015 08:44:17 +0200]: [2F46] S: * OK [ALERT] Filesystem notification initialization error -- contact your mail administrator (check for configuration errors with the FAM/Gamin library)
[21-Apr-2015 08:44:17 +0200]: [2F46] S: A0001 OK LOGIN Ok.
[21-Apr-2015 08:44:17 +0200]: [B0E3] C: A0003 LIST "" "*"
[21-Apr-2015 08:44:17 +0200]: [B0E3] S: * LIST (\HasNoChildren) "." "INBOX.Trash"
[21-Apr-2015 08:44:17 +0200]: [B0E3] S: * LIST (\HasNoChildren) "." "INBOX.Drafts"
[21-Apr-2015 08:44:17 +0200]: [B0E3] S: * LIST (\HasNoChildren) "." "INBOX.Stage"
[21-Apr-2015 08:44:17 +0200]: [2F46] C: A0002 STATUS INBOX (MESSAGES UNSEEN)
[21-Apr-2015 08:44:17 +0200]: [B0E3] S: * LIST (\Unmarked \HasChildren) "." "INBOX"
[21-Apr-2015 08:44:17 +0200]: [B0E3] S: * LIST (\HasNoChildren) "." "INBOX.Sent"
[21-Apr-2015 08:44:17 +0200]: [B0E3] S: A0003 OK LIST completed
[21-Apr-2015 08:44:17 +0200]: [2F46] S: * STATUS "INBOX" (MESSAGES 0 UNSEEN 0)
[21-Apr-2015 08:44:17 +0200]: [2F46] S: A0002 OK STATUS Completed.
[21-Apr-2015 08:44:17 +0200]: [B0E3] C: A0004 STATUS INBOX (MESSAGES UNSEEN)
[21-Apr-2015 08:44:17 +0200]: [B0E3] S: * STATUS "INBOX" (MESSAGES 0 UNSEEN 0)
[21-Apr-2015 08:44:17 +0200]: [B0E3] S: A0004 OK STATUS Completed.
[21-Apr-2015 08:44:17 +0200]: [B0E3] C: A0005 STATUS INBOX.Drafts (MESSAGES UNSEEN)
[21-Apr-2015 08:44:17 +0200]: [B0E3] S: * STATUS "INBOX.Drafts" (MESSAGES 0 UNSEEN 0)
[21-Apr-2015 08:44:17 +0200]: [B0E3] S: A0005 OK STATUS Completed.
[21-Apr-2015 08:44:17 +0200]: [B0E3] C: A0006 STATUS INBOX.Sent (MESSAGES UNSEEN)
[21-Apr-2015 08:44:17 +0200]: [B0E3] S: * STATUS "INBOX.Sent" (MESSAGES 8 UNSEEN 0)
[21-Apr-2015 08:44:17 +0200]: [B0E3] S: A0006 OK STATUS Completed.
[21-Apr-2015 08:44:17 +0200]: [B0E3] C: A0007 STATUS INBOX.Trash (MESSAGES UNSEEN)
[21-Apr-2015 08:44:17 +0200]: [B0E3] S: * STATUS "INBOX.Trash" (MESSAGES 31 UNSEEN 2)
[21-Apr-2015 08:44:17 +0200]: [B0E3] S: A0007 OK STATUS Completed.
[21-Apr-2015 08:44:17 +0200]: [B0E3] C: A0008 STATUS INBOX.Stage (MESSAGES UNSEEN)
[21-Apr-2015 08:44:17 +0200]: [B0E3] S: * STATUS "INBOX.Stage" (MESSAGES 0 UNSEEN 0)
[21-Apr-2015 08:44:17 +0200]: [B0E3] S: A0008 OK STATUS Completed.
[21-Apr-2015 08:44:17 +0200]: [2F46] C: A0003 LOGOUT
[21-Apr-2015 08:44:17 +0200]: [B0E3] C: A0009 LOGOUT
[21-Apr-2015 08:44:17 +0200]: [2F46] S: * BYE Courier-IMAP server shutting down
[21-Apr-2015 08:44:17 +0200]: [2F46] S: A0003 OK LOGOUT completed
[21-Apr-2015 08:44:17 +0200]: [B0E3] S: * BYE Courier-IMAP server shutting down
[21-Apr-2015 08:44:17 +0200]: [B0E3] S: A0009 OK LOGOUT completed
-
The mail server isn't returning a quota so there isn't anything for Roundcube to display.
[21-Apr-2015 08:44:15 +0200]: [24D4] C: A0005 GETQUOTAROOT INBOX
[21-Apr-2015 08:44:15 +0200]: [24D4] S: * QUOTAROOT "INBOX" "ROOT"
[21-Apr-2015 08:44:15 +0200]: [24D4] S: * QUOTA "ROOT"
[21-Apr-2015 08:44:15 +0200]: [24D4] S: A0005 OK GETQUOTAROOT Ok.
-
Ok, so what's wrong ? What can cause that ? Because when mailBox is full the mail is refused and correctly cause is return to sender.
-
Something in the mail server configuration will need to be changed to show quotas, this is what a quote response should look like:
A0005 GETQUOTAROOT INBOX
* QUOTAROOT INBOX storage=0
* QUOTA storage=0 (STORAGE 50491 256000)
A0005 OK Getquotaroot completed.
-
Ok so it's in main.cf ? ( postfix ) or courier ?
-
You seem to be using Courier for IMAP so thats where you need to be looking.
-
Look :
authtest user@domaine.com
Authentication succeeded.
Authenticated:user@domaine.com (uid 5000, gid 5000)
Home Directory: /var/spool/vmail/
Maildir: domaine.com/user
Quota: 10250000
Encrypted Password: cxlCuq3RvE/as
Cleartext Password: (none)
Options: (none)
Here the quota is good. But in roundcube there is nothing...
-
Its not Roundcube's fault, your mail server isn't returning a quota when Roundcube asks for it. Maybe you should ask for support on a Courier forum since they would be more knowledgeable about what may need to be changed.
-
Thanks but they havent forums ;-(