ISPConfig3 & Dovecot: Quota update failed

Discussion in 'Installation/Configuration' started by bax, Mar 20, 2014.

  1. bax

    bax Member

    Hi there!

    I just installed and configured a Wheezy system following this tutorial:
    http://www.howtoforge.com/perfect-server-debian-wheezy-nginx-bind-dovecot-ispconfig-3

    My vmail folder is an encrypted ENCFS folder.

    My Mailserver is up and running.

    However, the following error is reoccurring whenever I receive / send an email:

    Code:
    server dovecot: lda(mail@XXXYYY.com): Error: link(/var/vmail/XXXYYY.com/mail/.temp.host.XXXYYY.com.30694.15e477e2f15f0156, /var/vmail/XXXYYY.com/mail/.quotausage.lock) failed: Operation not permitted
    server dovecot: lda(mail@XXXYYY.com): Error: file dict commit: file_dotlock_open(/var/vmail/XXXYYY.com/mail/.quotausage) failed: Operation not permitted
    server dovecot: lda(mail@XXXYYY.com): Error: dict quota: Quota update failed, it's now desynced
    
    There are no ".quotausage"-files in my mail folders.
    setting or changing the quota of an email account didn't change anything.
    I already reconfigured and resented ISPConfig (several times).
    My dovecot configuration files are unchanged.
    I already restarted quota.

    Any ideas?
    Thanks!
     
  2. srijan

    srijan New Member HowtoForge Supporter

    Hi

    Please paste the output of quotacheck -avugm & cat /proc/user_beancounters

    Br//
    Srijan
     
  3. bax

    bax Member

    quotacheck -avugm
    Code:
    quotacheck: Quota for users is enabled on mountpoint / so quotacheck might damage the file.
    Please turn quotas off or use -f to force checking.
    cat /proc/user_beancounters
    Code:
    cat: /proc/user_beancounters: No such file or directory
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    @bax: Seems as if your encrypted filesystem is not compatible with dovecot as it blocks writes or symlinks that dovecot creates in the mailfolders. I dont see any benefits in using encfs on a mailserver, the mail folder has be writable for various system daemons at runtime, so the only benefit might be if someone steals your hardware without doing a copy of your mail folders first before he unplugs the hardware. The more likely reason for emails being stolen is that someone hacks your server while it is running and encfs will not help you then.

    @Srijan: Mailquota is handled by the mail daemon (dovecot) internally as we are using a virtual mail system. Filesystem quota is not used here.
     
  5. bax

    bax Member

    @till

    I will try to copy the contents of vmail and put them back after unmounting the encfs-mount.
    is there anything I should do afterwards to reenable dovecot's quota system (restart dovecot of course – but otherwise? resync ISPConfig, Reconfigure,…?)

    Thanks
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    I think a dovecot restart should be enough.
     
  7. srijan

    srijan New Member HowtoForge Supporter

    It seems that quota is OK at your end.

    Did you implemented quota on mail server?
    You need to proceed like this.
    Note put the limit for the quota. Be careful 0 means unlimited, now you can give any value as per your requirement.

    Br//
    Srijan
     
  8. bax

    bax Member

    Quota is implemented. I don't have any limits set yet, but the used space is displayed correctly in ISPConfig.

    @till

    I'm in the process of copying back the formerly encrypted files to /var/vmail

    However I'm now getting the following error in mail.error
    Code:
    server dovecot: master: Warning: /var/vmail is no longer mounted. If this is intentional, remove it with doveadm mount
    doveadm mount list shows this:
    Code:
    path                     state 
      /                        online
    ! /var/vmail          online
    
    Emails are received preoberly.
     
  9. till

    till Super Moderator Staff Member ISPConfig Developer

    /var/vmail is no separate mount anymore, so you should try to remove the /var/vmail mountpoint from the dovecot mount list to get rid of this error.
     
  10. bax

    bax Member

    Of course not!
    Thank you for pointing this out – didn't get this obvious fact.
    I removed it, the message is of course gone now.
     
  11. bax

    bax Member

    I don't have any errors any more since I dropped the encryption. Thank you!
     

Share This Page