email quota - empty

Discussion in 'Installation/Configuration' started by stef157, Jun 10, 2025.

  1. stef157

    stef157 Member

    Hello everyone,

    I recently set up a new server and transferred the data to it using the "migration toolkit."
    Now, when I go into a client's mailbox, there is no longer any calculation of storage usage.

    When I run "doveadm quota get -u [email protected]", I get the correct values.

    Is there a specific place I can look to resolve this issue?

    I am using Debian.

    Thank you.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Use:

    Code:
    doveadm quota recalc -A
    To recalculate quota for all users. It may take some time until the quota values get imported into ISPConfig then.
     
  3. stef157

    stef157 Member

    What kind of timeline should I expect?

    As a follow-up question: where are the values stored?

    Thank you
     
  4. pyte

    pyte Well-Known Member HowtoForge Supporter

    In the MailDirs. In a standard ISPConfig installation that is /var/vmail/%d/%n/.quotausage

    That depends on the scale of your setup, how many users and mails these users have. It can take a few minutes to complete.
     
  5. stef157

    stef157 Member

    Thanks Pyte,

    The files are indeed present, but there’s still nothing showing in ISPConfig (after 24 hours).
    I have approximately 220 email accounts.
     
  6. pyte

    pyte Well-Known Member HowtoForge Supporter

    Where do you expect to see the value?
     
  7. stef157

    stef157 Member

    In the edit interface of an email address.
     

    Attached Files:

  8. pyte

    pyte Well-Known Member HowtoForge Supporter

    Mh the cronjobs checks the quotas with doveadm quota -A, and then should replace the new data in the corrosponding monitor_data table in the database. Which is the table from where the interface trys to fetch the quota values.

    No idea why this would not be there. Can you check the output of the doveadm quota -A command? And if you know what you are doing maybe check if the record is present in the database itself with select * from monitor_data where type = "email_quota";
     
  9. stef157

    stef157 Member

    I think, it's the point…
    There is only one email in the data section, an idea of what I should do ?

    Thanks for the support !
     
  10. pyte

    pyte Well-Known Member HowtoForge Supporter

    Did you check what the doveadm quota -A command returned?
     
  11. stef157

    stef157 Member

    Code:
    doveadm quota -A
    usage: doveadm [-Dv] [-f <formatter>] quota <command> [<args>]
      get         
      recalc       
    
    but "doveadm quota get -A" is working and I get the information from all email addresses
     
  12. pyte

    pyte Well-Known Member HowtoForge Supporter

    Yea sorry i missed the 'get'. No idea why it is not written to the database then. As a last straw you could enable debug mode, as the cronjob for the gathering of the data logs messages if debug mode is enabled.
     
  13. stef157

    stef157 Member

    No error about the cronjob :
    Code:
    php /usr/local/ispconfig/server/cron_debug.php --cronjob=100-mailbox_stats.inc.php
    Called run() for class cronjob_mailbox_stats
    Job has schedule: 0 0 * * *
    Called onPrepare() for class cronjob_mailbox_stats
    Called onBeforeRun() for class cronjob_mailbox_stats
    Jobs next run is 2025-06-13 00:00:00
    Date compare of 1749772800 and 1749713644 is -1
    Called onRun() for class cronjob_mailbox_stats
    Called onAfterRun() for class cronjob_mailbox_stats
    Called onCompleted() for class cronjob_mailbox_stats
    finished cron debug.
     
  14. pyte

    pyte Well-Known Member HowtoForge Supporter

    That is the wrong file. The file for quota is called 100-monitor_email_quota.inc.php
     
  15. till

    till Super Moderator Staff Member ISPConfig Developer

    Is this a single or multiserver setup?
     
  16. stef157

    stef157 Member

    Single server

    No error with the debug :
    Code:
    php /usr/local/ispconfig/server/cron_debug.php --cronjob=100-monitor_email_quota.inc.php
    Called run() for class cronjob_monitor_email_quota
    Job has schedule: */15 * * * *
    Called onPrepare() for class cronjob_monitor_email_quota
    Called onBeforeRun() for class cronjob_monitor_email_quota
    Jobs next run is 2025-06-12 09:45:00
    Date compare of 1749721500 and 1749721474 is -1
    Called onAfterRun() for class cronjob_monitor_email_quota
    Called onCompleted() for class cronjob_monitor_email_quota
    finished cron debug.
     
  17. till

    till Super Moderator Staff Member ISPConfig Developer

    And it still does not appear after running the cronjob manually?
     
  18. stef157

    stef157 Member

    No, still empty
     

Share This Page