我有一个LDAP服务器,用于我的邮件服务器,我是LDAP新手,已经通过问题和网站阅读,但不能做出正面或反面。 我需要为邮件配额添加一个属性,以便dovecot可以开始在邮箱上执行配额
我在LDAP目录中保留多个域,如果我将它导出到LDIF,这是结构
dn: dc=root objectClass: domain objectClass: top dc: root dn: cn=admin,dc=root objectClass: organizationalRole objectClass: top cn: admin dn: o=hosting,dc=root objectClass: organization objectClass: top o: hosting dn: o=domain.co.za,o=hosting,dc=root objectClass: organization objectClass: top o: domain.co.za dn: cn=accounts,o=domain.co.za,o=hosting,dc=root objectClass: MailAccount objectClass: top aliaslist: none cn: accounts description:: YWNjb3VudHMgICAg homeDirectory: /home/vhostmail/domain.co.za/accounts mail: [email protected] userPassword:: xxxxx
还有一个添加到ldap的自定义模式,看起来像这样
mail.schema
attributetype ( 1.3.6.1.4.1.12461.1.1.5 NAME 'mailbox' DESC 'The absolute path to the mailbox for a mail account in a non- default location' EQUALITY caseExactIA5Match SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE ) attributetype ( 99.9.2342.19200300.100.1.3 NAME 'aliaslist' DESC 'A List of aliases for the user' EQUALITY caseIgnoreIA5Match SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE ) objectclass ( 1.3.6.1.4.1.12461.1.2.1 NAME 'MailAccount' SUP top STRUCTURAL DESC 'Mail account objects' MUST ( cn $ mail $ homeDirectory $ userPassword) MAY ( uidNumber $ gidNumber $ description $ aliaslist ) ) objectclass ( 1.3.6.1.4.1.12461.1.2.2 NAME 'MailAlias' SUP top STRUCTURAL DESC 'Mail aliasing/forwarding entry' MUST ( cn $ mail $ aliaslist ) MAY ( ) )
我需要将邮件配额添加到模式,以便每个域的每个旧电子邮件地址都可以configuration,也可以添加任何未来的邮件地址。
我最初没有设置邮件服务器,我只是有一个脚本来添加新的域和用户。