email: quota setup
This commit is contained in:
parent
0c26f37507
commit
bdf6c699e0
2 changed files with 17 additions and 1 deletions
|
@ -155,6 +155,9 @@
|
||||||
dovecot = {
|
dovecot = {
|
||||||
userFilter = "(skMail=%u)";
|
userFilter = "(skMail=%u)";
|
||||||
|
|
||||||
|
# can lock down how much space each user has access to from ldap
|
||||||
|
userAttrs = "quotaEmail=quota_rule=*:bytes=%$";
|
||||||
|
|
||||||
# accept emails in, but only allow access to paid up members
|
# accept emails in, but only allow access to paid up members
|
||||||
passFilter = "(&(|${create_filter cfg.groups})(skMail=%u))";
|
passFilter = "(&(|${create_filter cfg.groups})(skMail=%u))";
|
||||||
};
|
};
|
||||||
|
|
|
@ -42,10 +42,23 @@ olcAttributeTypes: ( 1.3.6.1.4.1.24441.1.6.1
|
||||||
# EQUALITY booleanMatch
|
# EQUALITY booleanMatch
|
||||||
# SYNTAX 1.3.6.1.4.1.1466.115.121.1.7
|
# SYNTAX 1.3.6.1.4.1.1466.115.121.1.7
|
||||||
# )
|
# )
|
||||||
|
# https://github.com/variablenix/ldap-mail-schema/blob/master/quota.schema
|
||||||
|
olcAttributeTypes: ( 1.3.6.1.4.1.24441.1.8.1
|
||||||
|
NAME 'quotaEmail'
|
||||||
|
DESC 'Quotas for Email'
|
||||||
|
EQUALITY caseIgnoreIA5Match
|
||||||
|
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{255}
|
||||||
|
)
|
||||||
|
olcAttributeTypes: ( 1.3.6.1.4.1.24441.1.9.1
|
||||||
|
NAME 'quotaDisk'
|
||||||
|
DESC 'Quotas for Home dir'
|
||||||
|
EQUALITY caseIgnoreIA5Match
|
||||||
|
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{255}
|
||||||
|
)
|
||||||
olcObjectClasses: ( 1.3.6.1.4.1.24441.1.1.1
|
olcObjectClasses: ( 1.3.6.1.4.1.24441.1.1.1
|
||||||
NAME 'skPerson'
|
NAME 'skPerson'
|
||||||
DESC 'skynet person'
|
DESC 'skynet person'
|
||||||
SUP top AUXILIARY
|
SUP top AUXILIARY
|
||||||
MUST ( skMail $ skCreated )
|
MUST ( skMail $ skCreated )
|
||||||
MAY ( skMemberOf $ skID $ skDiscord )
|
MAY ( skMemberOf $ skID $ skDiscord $ quotaEmail $ quotaDisk )
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue