1

Topic: Mail Quota CHANGES not taking effect after changing it in iRedAdminPro

==== Provide basic information to help troubleshoot ====
- iRedMail version: 0.7.2
- Linux/BSD distribution name and version: Ubuntu 9.0.4
- Any related log? Log is helpful for troubleshooting.
====

I created this user when i first started using iRedMail+iRedAdmin Pro with mail quota of 100MB.
Now this user have reached the limit.

I have also upgraded both iRedMail and iRedAdmin Pro during this time.

Now when i go into iRedAdmin Pro and change this person's quota to unlimited or even 1GB or any other value, this is NOT taking effect.

i can see in the ldif output that it has changed it in ldap though.
i.e.
before:
mailQuota: 1048576
after:
mailQuota: 1073741824

but this user keeps on getting mails saying it is reaching 85% and 95%

thanks for your support

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Mail Quota CHANGES not taking effect after changing it in iRedAdminPro

Quota setting in LDAP is correct. Could you please post output of command "dovecot -n" and content of file /etc/dovecot/dovecot-ldap.conf here to help troubleshooting? REMOVE ldap bind dn and password before posting.

Also, does this issue happen again after user re-login to webmail?

3

Re: Mail Quota CHANGES not taking effect after changing it in iRedAdminPro

thanks for the reply.
The issue still happens after user re-login to webmail.

here the info you asked for:
dovecot -n
=========
plugin:
  quota_warning: storage=85%% /usr/local/bin/dovecot-quota-warning.sh 85
  quota_warning2: storage=90%% /usr/local/bin/dovecot-quota-warning.sh 90
  quota_warning3: storage=95%% /usr/local/bin/dovecot-quota-warning.sh 95
  quota: maildir
  quota_rule: *:storage=100M
  expire: Trash 7 Trash/* 7 Junk 30
  expire_dict: proxy::expire
  auth_socket_path: /var/run/dovecot/auth-master
  sieve: /var/vmail/sieve/%Ld/%Ln/dovecot.sieve

/etc/dovecot/dovecot-ldap.conf
============================
user_filter     = (&(objectClass=mailUser)(|(mail=%u)(&(enabledService=shadowaddress)(shadowAddress=%u)))(accountStatus=active)(enabledService=mail)(enabledService=%Ls%Lc))
pass_filter     = (&(objectClass=mailUser)(|(mail=%u)(&(enabledService=shadowaddress)(shadowAddress=%u)))(accountStatus=active)(enabledService=mail)(enabledService=%Ls%Lc))
user_attrs     = homeDirectory=home,mailMessageStore=mail=maildir:/var/vmail/%$/Maildir/,mailQuota=quota_rule=*:bytes=%$

4

Re: Mail Quota CHANGES not taking effect after changing it in iRedAdminPro

jukazu_ithr wrote:

dovecot -n
=========
plugin:
  quota_warning: storage=85%% /usr/local/bin/dovecot-quota-warning.sh 85
  quota_warning2: storage=90%% /usr/local/bin/dovecot-quota-warning.sh 90
  quota_warning3: storage=95%% /usr/local/bin/dovecot-quota-warning.sh 95
  quota: maildir
  quota_rule: *:storage=100M
  expire: Trash 7 Trash/* 7 Junk 30
  expire_dict: proxy::expire
  auth_socket_path: /var/run/dovecot/auth-master
  sieve: /var/vmail/sieve/%Ld/%Ln/dovecot.sieve

Is this all output of command "dovecot -n"?
If so, your config file is not complete, you must lose some settings.

Also, try to set "mail_debug = yes" and restart Dovecot service, then monitor Dovecot log file (/var/log/dovecot.log) when this user re-login, check its mailQuota value.

5

Re: Mail Quota CHANGES not taking effect after changing it in iRedAdminPro

Also as FYI, if I create a new user with unlimited quota from scratch now, that works fine. Meaning that new user gets unlimited quota.

It's only this old user which was created with 100MB quota limit BEFORE the iRedMail/iRedAdminPro upgrades that has this problem.

6

Re: Mail Quota CHANGES not taking effect after changing it in iRedAdminPro

ZhangHuangbin wrote:
jukazu_ithr wrote:

dovecot -n
=========
plugin:
  quota_warning: storage=85%% /usr/local/bin/dovecot-quota-warning.sh 85
  quota_warning2: storage=90%% /usr/local/bin/dovecot-quota-warning.sh 90
  quota_warning3: storage=95%% /usr/local/bin/dovecot-quota-warning.sh 95
  quota: maildir
  quota_rule: *:storage=100M
  expire: Trash 7 Trash/* 7 Junk 30
  expire_dict: proxy::expire
  auth_socket_path: /var/run/dovecot/auth-master
  sieve: /var/vmail/sieve/%Ld/%Ln/dovecot.sieve

Is this all output of command "dovecot -n"?
If so, your config file is not complete, you must lose some settings.

Also, try to set "mail_debug = yes" and restart Dovecot service, then monitor Dovecot log file (/var/log/dovecot.log) when this user re-login, check its mailQuota value.

==== Provide basic information to help troubleshoot ====
- iRedMail version:
- Linux/BSD distribution name and version:
- Any related log? Log is helpful for troubleshooting.
====

oh sorry, here the full output:
# 1.1.11: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.28-19-generic x86_64 Ubuntu 9.04
log_path: /var/log/dovecot.log
protocols: pop3 pop3s imap imaps managesieve
listen(default): *
listen(imap): *
listen(pop3): *
listen(managesieve): 127.0.0.1:2000
ssl_cert_file: xxx
ssl_key_file: xxx
disable_plaintext_auth: no
login_dir: /var/run/dovecot/login
login_executable(default): /usr/lib/dovecot/imap-login
login_executable(imap): /usr/lib/dovecot/imap-login
login_executable(pop3): /usr/lib/dovecot/pop3-login
login_executable(managesieve): /usr/lib/dovecot/managesieve-login
mail_uid: xxx
mail_gid: xxx
mail_location: maildir:/%Lh/Maildir/:INDEX=/%Lh/Maildir/
mail_executable(default): /usr/lib/dovecot/imap
mail_executable(imap): /usr/lib/dovecot/imap
mail_executable(pop3): /usr/lib/dovecot/pop3
mail_executable(managesieve): /usr/lib/dovecot/managesieve
mail_plugins(default): quota imap_quota zlib
mail_plugins(imap): quota imap_quota zlib
mail_plugins(pop3): quota zlib
mail_plugins(managesieve):
mail_plugin_dir(default): /usr/lib/dovecot/modules/imap
mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap
mail_plugin_dir(pop3): /usr/lib/dovecot/modules/pop3
mail_plugin_dir(managesieve): /usr/lib/dovecot/modules/managesieve
pop3_client_workarounds(default):
pop3_client_workarounds(imap):
pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh
pop3_client_workarounds(managesieve):
sieve_storage(default):
sieve_storage(imap):
sieve_storage(pop3):
sieve_storage(managesieve): /var/vmail/sieve/%Ld/%Ln/
sieve(default):
sieve(imap):
sieve(pop3):
sieve(managesieve): /var/vmail/sieve/%Ld/%Ln/dovecot.sieve
auth default:
  mechanisms: plain login
  default_realm: xxx
  user: xxx
  passdb:
    driver: ldap
    args: /etc/dovecot/dovecot-ldap.conf
  userdb:
    driver: ldap
    args: /etc/dovecot/dovecot-ldap.conf
  socket:
    type: listen
    client:
      path: /var/spool/postfix/dovecot-auth
      mode: 438
      user: xxx
      group: xxx
    master:
      path: /var/run/dovecot/auth-master
      mode: 438
      user: xxx
      group: xxx
plugin:
  quota_warning: storage=85%% /usr/local/bin/dovecot-quota-warning.sh 85
  quota_warning2: storage=90%% /usr/local/bin/dovecot-quota-warning.sh 90
  quota_warning3: storage=95%% /usr/local/bin/dovecot-quota-warning.sh 95
  quota: maildir
  quota_rule: *:storage=100M
  expire: Trash 7 Trash/* 7 Junk 30
  expire_dict: proxy::expire
  auth_socket_path: /var/run/dovecot/auth-master
  sieve: /var/vmail/sieve/%Ld/%Ln/dovecot.sieve
dict:
  expire: db:/var/lib/dovecot/expire/expire.db

7

Re: Mail Quota CHANGES not taking effect after changing it in iRedAdminPro

jukazu_ithr wrote:

It's only this old user which was created with 100MB quota limit BEFORE the iRedMail/iRedAdminPro upgrades that has this problem.

Did you try to change mail quota of other existing/old users? Same issue happen?

8

Re: Mail Quota CHANGES not taking effect after changing it in iRedAdminPro

ZhangHuangbin wrote:
jukazu_ithr wrote:

It's only this old user which was created with 100MB quota limit BEFORE the iRedMail/iRedAdminPro upgrades that has this problem.

Did you try to change mail quota of other existing/old users? Same issue happen?

Unfortunately this is the only user that was created with 100MB... All others were created with unlimited. When i change them from unlimited to say 100MB, yes the quota at bottom of webmail changes to reflect this new quota limit, if thats what you are asking.

9

Re: Mail Quota CHANGES not taking effect after changing it in iRedAdminPro

As set in dovecot-ldap.conf:

user_attrs     = ...,mailQuota=quota_rule=*:bytes=%$

Dovecot will read value of LDAP attribute "mailQuota" as "quota_rule", and you have correct quota value set in LDAP with iRedAdmin-Pro.

Still no idea about what the problem is, I didn't find improper settings in Dovecot and LDAP.

10

Re: Mail Quota CHANGES not taking effect after changing it in iRedAdminPro

jukazu_ithr wrote:

Unfortunately this is the only user that was created with 100MB...

Could you try to set value of mailQuota to 0 (zero) with phpLDAPadmin, and test it again?