Dovecot ldap quotas in MB

2014-07-09 Thread Murray Trainer

Hi All,

I have the Dovecot quota value coming from LDAP using the line below but 
my values are stored in MB, not bytes.  What can I put in the line to 
set quotas in MB?


user_attrs = 
homeDirectory=home,mailUID=uid,mailGID=gid,mailQuota=quota_rule=*:bytes=%$


Thanks

Murray


Re: Dovecot ldap quotas in MB

2014-07-09 Thread SATOH Fumiyasu
At Thu, 10 Jul 2014 00:24:13 +0800,
Murray Trainer wrote:
 I have the Dovecot quota value coming from LDAP using the line below but my 
 values are stored in MB, not bytes.  What can I put in the line to set quotas 
 in MB?
 
 user_attrs = 
 homeDirectory=home,mailUID=uid,mailGID=gid,mailQuota=quota_rule=*:bytes=%$

Append 'M' to the value of quota_rule in user_attrs.

user_attrs = 
homeDirectory=home,mailUID=uid,mailGID=gid,mailQuota=quota_rule=*:bytes=%$M

-- 
-- Name: SATOH Fumiyasu @ OSS Technology Corp. (fumiyas @ osstech co jp)
-- Business Home: http://www.OSSTech.co.jp/
-- GitHub Home: https://GitHub.com/fumiyas/
-- PGP Fingerprint: BBE1 A1C9 525A 292E 6729  CDEC ADC2 9DCA 5E1C CBCA