Author Topic: Showing Quota Error  (Read 8776 times)

Offline Emilio_Maestro

  • Jr. Member
  • **
  • Posts: 10
Showing Quota Error
« 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.

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
Re: Showing Quota Error
« Reply #1 on: April 20, 2015, 03:02:16 PM »
Enable imap_debug and post the log.

Offline Emilio_Maestro

  • Jr. Member
  • **
  • Posts: 10
Re: Showing Quota Error
« Reply #2 on: April 20, 2015, 03:04:36 PM »
How to enable imap_debug and where can i see logs ?

Thanks.

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
Re: Showing Quota Error
« Reply #3 on: April 20, 2015, 03:22:23 PM »
Add the following to your config.inc.php file:
Code: [Select]
// Log IMAP conversation to <log_dir>/imap or to syslog
$config['imap_debug'] = true;

Offline Emilio_Maestro

  • Jr. Member
  • **
  • Posts: 10
Re: Showing Quota Error
« Reply #4 on: April 20, 2015, 03:56:39 PM »
Code: [Select]
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

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
Re: Showing Quota Error
« Reply #5 on: April 20, 2015, 06:27:38 PM »
Thats not the full imap_log, it should be logging to <log_dir>/imap

Offline Emilio_Maestro

  • Jr. Member
  • **
  • Posts: 10
Re: Showing Quota Error
« Reply #6 on: April 21, 2015, 12:43:57 AM »
It doesnt exist. ( /var/log)

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
Re: Showing Quota Error
« Reply #7 on: April 21, 2015, 01:01:37 AM »
It should be in <rc root>/logs

Offline Emilio_Maestro

  • Jr. Member
  • **
  • Posts: 10
Re: Showing Quota Error
« Reply #8 on: April 21, 2015, 01:16:30 AM »
In /root ?

Code: [Select]
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

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
Re: Showing Quota Error
« Reply #9 on: April 21, 2015, 02:40:19 AM »
<rc root> = Roundcube directory, wherever that is on your server.

Offline Emilio_Maestro

  • Jr. Member
  • **
  • Posts: 10
Re: Showing Quota Error
« Reply #10 on: April 21, 2015, 02:46:18 AM »
Ho, sorry i'm stupid...

Code: [Select]
[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

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
Re: Showing Quota Error
« Reply #11 on: April 21, 2015, 04:19:07 AM »
The mail server isn't returning a quota so there isn't anything for Roundcube to display.
Code: [Select]
[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.

Offline Emilio_Maestro

  • Jr. Member
  • **
  • Posts: 10
Re: Showing Quota Error
« Reply #12 on: April 21, 2015, 04:27:11 AM »
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.

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
Re: Showing Quota Error
« Reply #13 on: April 21, 2015, 04:42:49 AM »
Something in the mail server configuration will need to be changed to show quotas, this is what a quote response should look like:
Code: [Select]
A0005 GETQUOTAROOT INBOX
* QUOTAROOT INBOX storage=0
* QUOTA storage=0 (STORAGE 50491 256000)
A0005 OK Getquotaroot completed.

Offline Emilio_Maestro

  • Jr. Member
  • **
  • Posts: 10
Re: Showing Quota Error
« Reply #14 on: April 21, 2015, 04:46:51 AM »
Ok so it's in main.cf ? ( postfix ) or courier ?