-
Notifications
You must be signed in to change notification settings - Fork 2
/
postfix-dovecot.schema
114 lines (95 loc) · 4.09 KB
/
postfix-dovecot.schema
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
# $Id$
#
# OpenLDAP Experimental
# Private Enterprise Number: 4203
#
# OID prefix: 1.3.6.1.4.1.4203
#
# Attributes: 1.3.6.1.4.1.4203.666.1.2xx
#
#
# mailAcceptingGeneralId = mail (generally it is a virtual mail / alias)
#
#attributetype ( 1.3.6.1.4.1.4203.666.1.200 NAME 'mailAcceptingGeneralId'
# EQUALITY caseIgnoreIA5Match
# SUBSTR caseIgnoreIA5SubstringsMatch
# SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256} )
attributetype ( 1.3.6.1.4.1.4203.666.1.201 NAME 'mailBox'
DESC 'Postfix: fully qualified mail address (RFC822 Mailbox)'
EQUALITY caseIgnoreIA5Match
SUBSTR caseIgnoreIA5SubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256} )
attributetype ( 1.3.6.1.4.1.4203.666.1.202 NAME 'mailGroupMemberDN'
DESC 'Postfix: DN of the postfixAccount or postfixVirtualAccount'
EQUALITY distinguishedNameMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.12 )
attributetype ( 1.3.6.1.4.1.4203.666.1.203 NAME 'mailGroupMemberAddress'
DESC 'Postfix: group member email address'
EQUALITY caseIgnoreIA5Match
SUBSTR caseIgnoreIA5SubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256} )
attributetype ( 1.3.6.1.4.1.4203.666.1.204 NAME 'mailUidNumber'
DESC 'Dovecot: virtual UID required to access the mailbox'
EQUALITY integerMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
attributetype ( 1.3.6.1.4.1.4203.666.1.205 NAME 'mailGidNumber'
DESC 'Dovecot: virtual GID required to access the mailbox'
EQUALITY integerMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
attributetype ( 1.3.6.1.4.1.4203.666.1.206 NAME 'mailPassword'
DESC 'Dovecot: virtual password required to access the mailbox'
EQUALITY octetStringMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.40{128} SINGLE-VALUE )
attributetype ( 1.3.6.1.4.1.4203.666.1.207 NAME 'mailHomeDirectory'
DESC 'Dovecot: home variable (absolute path to the mail user home)'
EQUALITY caseExactIA5Match
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )
attributetype ( 1.3.6.1.4.1.4203.666.1.208 NAME 'mailLocation'
DESC 'Dovecot: mail location variable (absolute or relative path)'
EQUALITY caseExactIA5Match
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )
attributetype ( 1.3.6.1.4.1.4203.666.1.209 NAME 'mailDisabled'
DESC 'Dovecot: fail field (any value indicates account inactivity)'
EQUALITY caseIgnoreIA5Match
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{1} SINGLE-VALUE )
attributetype ( 1.3.6.1.4.1.4203.666.1.210 NAME 'mailNoPassword'
DESC 'Dovecot: nopassword field (any value avoids mailPassword)'
EQUALITY caseIgnoreIA5Match
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{1} SINGLE-VALUE )
attributetype ( 1.3.6.1.4.1.4203.666.1.211 NAME 'mailQuota'
DESC 'Dovecot: mail quota limit in kilobytes'
EQUALITY caseExactIA5Match
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
# TODO: add attributes for the rest Dovecot LDAP query fields
#
#
# Objects: 1.3.6.1.4.1.4203.666.1.1xx
#
objectclass ( 1.3.6.1.4.1.4203.666.1.100 NAME 'postfixAccount'
SUP top AUXILIARY
DESC 'Postfix mail account identifier'
MUST ( mail )
MAY ( mailBox $ mailUidNumber $ mailGidNumber $ mailPassword
$ mailHomeDirectory $ mailLocation
$ mailDisabled $ mailNoPassword ) )
objectclass ( 1.3.6.1.4.1.4203.666.1.101 NAME 'postfixGroup'
SUP top AUXILIARY
DESC 'Postfix group identifier'
MUST ( mailGroupMemberDN $ mailGroupMemberAddress )
MAY ( mail $ mailBox ) )
objectclass ( 1.3.6.1.4.1.4203.666.1.102 NAME 'postfixVirtualAccount'
SUP top
DESC 'Standalone Postfix mail account'
MUST ( cn $ mail )
MAY ( mailBox $ mailUidNumber $ mailGidNumber $ mailPassword
$ mailHomeDirectory $ mailLocation
$ mailDisabled $ mailNoPassword ) )
objectclass ( 1.3.6.1.4.1.4203.666.1.103 NAME 'postfixVirtualGroup'
SUP top
DESC 'Standalone Postfix group'
MUST ( cn $ mailGroupMemberDN $ mailGroupMemberAddress )
MAY ( mail $ mailBox ) )
objectclass ( 1.3.6.1.4.1.4203.666.1.104 NAME 'postfixMailList'
SUP top
DESC 'Postfix mail list'
MUST ( cn $ mail $ mailBox ) )