1

Topic: Quota not appropriate

Hi

I have assigned quota on every users in a domain. The quota is based on designation/experience. I haven't  changed any setting in setting.ini file available with iredadmin-pro.

On Roundcube I see quota for every users as a static 100MB. How can this be set based on the designation/experience for individual users.

Can this 100MB be changed to any other number...?

Regards

Philip

----

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

2

Re: Quota not appropriate

pipal wrote:

Can this 100MB be changed to any other number...?

You can change it in iRedAdmin-Pro, user profile page. Must be an integer number. Like this (Mailbox quota):
http://screenshots.iredmail.googlecode.com/hg/iredadmin/user_profile_general.png

3

Re: Quota not appropriate

Hi Zhang,

As per the attached image i have changed the quota size for users. But in every body's mail client(redcubemail), the default quota shown for all user is 100 MB.
Should there be some changes be made in dovecot configuration as there also I see a line describing quota.If yes what should be made changes...?

Regards

Philip

Post's attachments

SC1.png
SC1.png 126.75 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.

4

Re: Quota not appropriate

Which version of iRedMail are you using? I guess there's something wrong with dovecot.

Can you please post content of file /etc/dovecot-ldap.conf, and output of "dovecot -n"?
HIDE/REMOVE password first.

5

Re: Quota not appropriate

I haven't changed to IRAP-1.3.0 on live server. Its 1.2.0

As requested

/etc/dovecot-ldap.conf

hosts           = 127.0.0.1:389
ldap_version    = 3
auth_bind       = yes
dn              = cn=vmail,dc=pipalres,dc=com
dnpass          = xxxxxxxxxxxxxxxxxxxxxxxxxxx
base            = o=domains,dc=pipalres,dc=com
scope           = subtree
deref           = never
user_filter     = (&(objectClass=mailUser)(accountStatus=active)(enabledService=mail)(enabledService=%Ls%Lc)(mail=%u))
pass_filter     = (&(objectClass=mailUser)(accountStatus=active)(enabledService=mail)(enabledService=%Ls%Lc)(mail=%u))
pass_attrs      = userPassword=password
default_pass_scheme = CRYPT
user_attrs      = storageBaseDirectory=home,mailMessageStore=mail=maildir:~/%$/Maildir/,mailQuota=quota_rule=*:bytes=%$

=============================================================
mailadmin@mailadmin:~$ sudo dovecot -n
# 1.1.11: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.28-19-server i686 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: /etc/ssl/certs/iRedMail_CA.pem
ssl_key_file: /etc/ssl/private/iRedMail.key
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: 1001
mail_gid: 1001
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): /home/vmail/sieve/%Ld/%Ln/
sieve(default):
sieve(imap):
sieve(pop3):
sieve(managesieve): /home/vmail/sieve/%Ld/%Ln/dovecot.sieve
auth default:
  mechanisms: plain login
  default_realm: pipalresearch.com
  user: vmail
  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: postfix
      group: postfix
    master:
      path: /var/run/dovecot/auth-master
      mode: 438
      user: vmail
      group: vmail
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: /home/vmail/sieve/%Ld/%Ln/dovecot.sieve
dict:
  expire: db:/var/lib/dovecot/expire/expire.db

6

Re: Quota not appropriate

Dovecot will try to get quota info with ldap query in dovecot-ldap.conf:

user_attrs      = storageBaseDirectory=home,mailMessageStore=mail=maildir:~/%$/Maildir/,mailQuota=quota_rule=*:bytes=%$

If it can't get mailQuota, it will use default quota value set in dovecot.conf:

quota_rule: *:storage=100M

7

Re: Quota not appropriate

Hi Zhang,

Should I change something in dovecot configuration  that It take the quota described in iRedAdmin-Pro...?

Regards

Philip