Mail quota not working. No maildirsize file

Discussion in 'General' started by gdavid, Mar 21, 2012.

  1. gdavid

    gdavid New Member

    Hi guys.
    I found an issue in our production ISPConfig 3.0.3.2 system built on top of Debian Lenny.
    Mail quotas are not working at all. I found no maidirsize file is crated in the vmail user directory and, even if forcing its creation with
    # maildirmake -q 1024S /var/vmail/domain.com/testuser/
    no update is performed when the quota is changed via web control panel.

    I read much about quota control in ISP, and I understood that the behaviour is controlled by Maildrop and not via Postfix trough the directive
    virtual_mailbox_limit_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailbox_limit_maps.cf
    (/etc/postfix/mysql-virtual_mailbox_limit_maps.cf doesn't exist at all in my installation ...)

    Can anyone point me in the right direction to investigate deeper this issue and solve it? Next step will be to enable some user alert when the quota limit is approched.

    ThanX
    g
     
    Last edited: Mar 21, 2012
  2. gdavid

    gdavid New Member

    Update: jobqueue is locking un mail user update

    Update: when I change the quota via web control panel, the ISPConfig jobqueue completelly locks and hangs any furter action.
    This is what I get from debug log:

    21.03.2012-18:54 - DEBUG - Set Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
    21.03.2012-18:54 - DEBUG - Found 18 changes, starting update process.
    21.03.2012-18:54 - DEBUG - Calling function 'user_update' from plugin 'mail_plugin' raised by event 'mail_user_update'.
    21.03.2012-18:55 - DEBUG - There is already an instance of server.php running. Exiting.
    21.03.2012-18:56 - DEBUG - There is already an instance of server.php running. Exiting

    This is in ispconfig cron log:

    Warning: Directive 'register_long_arrays' is deprecated in PHP 5.3 and greater in Unknown on line 0

    And this is what I see in JobQueue backlog after committing many changes via web control panel:

    2012-03-21 17:46 isp.vlk.it Update mail_user
    2012-03-21 17:44 isp.vlk.it Update mail_user
    2012-03-21 16:20 isp.vlk.it Update mail_user
    2012-03-21 15:39 isp.vlk.it Update mail_user
    2012-03-21 15:34 isp.vlk.it Update mail_user
    2012-03-21 15:29 isp.vlk.it Update mail_user
    2012-03-21 15:29 isp.vlk.it Update mail_user
    2012-03-21 15:22 isp.vlk.it Update mail_user
    2012-03-21 15:22 isp.vlk.it Update mail_user
    2012-03-21 15:04 isp.vlk.it Update mail_user

    It seems something went wrong in some php script ...

    Any clue?
     
    Last edited: Mar 21, 2012
  3. gdavid

    gdavid New Member

    Update: maybe jobqueue lock was the problem

    I found maildirsize are created after I unlock the jobqueue deleting the record directly from pending actions in ispconfig database.
    More investigations are needed to find which action casued the jobqueue lock ...
     
  4. till

    till Super Moderator

    The ISPConfig version you use is quite old. You should consider to update it to the current version 3.0.4.3.
     

Share This Page