2014-09-30 10:13:21 -05:00
< html >
< head >
< meta http-equiv = "Content-Type" content = "text/html; charset=utf-8" / >
< title > LDAP: Add a mail list account< / title >
< link href = "./css/markdown.css" rel = "stylesheet" > < / head >
< / head >
< body >
< div id = "navigation" >
< a href = "http://www.iredmail.org" target = "_blank" > iRedMail web site< / a >
// < a href = "./index.html" > Document Index< / a >
< / div > < h1 id = "ldap-add-a-mail-list-account" > LDAP: Add a mail list account< / h1 >
< h2 id = "add-mail-list-with-iredadmin-pro" > Add mail list with iRedAdmin-Pro< / h2 >
< p > With iRedAdmin-Pro, you can easily add mail list account by click menu:
< code > Add -> Mail List< / code > in main navigation bar.< / p >
< h2 id = "add-mail-list-with-phpldapadmin" > Add mail list with phpLDAPadmin< / h2 >
< ul >
< li > Login to phpLDAPadmin (httpS://[your_server]/phpldapadmin/)< / li >
< li > Expand LDAP tree in left panel, find < code > ou=Groups< / code > under your domain dn.< / li >
< li > Click < code > ou=Groups< / code > in left panel, then click < code > Create a child entry< / code > in right
2014-10-10 10:36:26 -05:00
panel.< / li >
< li > Choose < code > mailList< / code > in < code > ObjectClasses< / code > list, then click < code > Proceed< / code > .< / li >
< li > Select < code > mail< / code > as RDN, fill necessary values of attributes:< / li >
2014-09-30 10:13:21 -05:00
< / ul >
2014-10-10 10:36:26 -05:00
< pre > < code > dn: mail=demolist@mydomain.com,ou=Groups,domainName=mydomain.com,o=domains,dc=iredmail,dc=org
2014-09-30 10:13:21 -05:00
accountStatus: active
cn: demolist
enabledService: mail
enabledService: deliver
enabledService: displayedInGlobalAddressBook
2014-10-10 10:36:26 -05:00
mail: demolist@mydomain.com
2014-09-30 10:13:21 -05:00
objectClass: mailList
< / code > < / pre >
< p > Now switch to < code > ou=Users< / code > under you domain LDAP dn in left panel.< / p >
< ul >
< li > Expand < code > ou=Users< / code > in left panel.< / li >
< li > Find user account which you want to assign to new mail list we created above.< / li >
< li > Click user account in left panel.< / li >
< li > If attribute < code > memberOfGroup< / code > exists in right panel:< ul >
2014-10-10 10:36:26 -05:00
< li > click < code > Add value< / code > under it and fill mail address of our new mail list. For example: < code > demolist@mydomain.com< / code > < / li >
2014-09-30 10:13:21 -05:00
< li > Click < code > Update Object< / code > to save settings.< / li >
< / ul >
< / li >
< li > If attribute < code > memberOfGroup< / code > doesn't exist in right panel:< ul >
< li > Click < code > Add new attribute< / code > in right panel< / li >
< li > Choose < code > memberOfGroup< / code > in drop-down list.< / li >
< li > Fill mail address of our new mail list.< / li >
< li > Click < code > Update Object< / code > to save settings.< / li >
< / ul >
< / li >
< / ul >
< p > You can add as many < code > memberOfGroup=xxx< / code > as you want, which means this user is assigned to many mail lists.< / p >
< p > Here's sample to add external users as mail list members:< / p >
2014-10-10 10:36:26 -05:00
< pre > < code > dn: memberOfGroup=demolist@mydomain.com,ou=Externals,domainName=mydomain.com,o=domains,dc=iredmail,dc=org
2014-09-30 10:13:21 -05:00
accountstatus: active
enabledservice: mail
enabledservice: deliver
mail: user01@external.com
mail: user02@external.com
2014-10-10 10:36:26 -05:00
memberofgroup: demolist@mydomain.com
2014-09-30 10:13:21 -05:00
objectclass: mailExternalUser
< / code > < / pre >
< p > < strong > IMPORTANT NOTE< / strong > : If you don't have any mail list member, Postfix will report error like below:< / p >
< pre > < code > Aug 1 15:45:42 mail postfix/smtpd[6024]: NOQUEUE: reject: RCPT from unknown[1.1.1.1]: 550 5.1.1
< it@domain1.ru> : Recipient address rejected: User unknown in virtual mailbox table; from=< test@domain1.ru>
to=< it@domain1.ru> proto=ESMTP helo=< [2.2.2.2]>
< / code > < / pre >
< h2 id = "mail-list-access-policies" > Mail list access policies< / h2 >
< p > You can restrict who can send email to this mailing list by adding LDAP attribute < code > accessPolicy< / code > . For example:< / p >
2014-10-10 10:36:26 -05:00
< pre > < code > dn: mail=demolist@mydomain.com,ou=Groups,domainName=mydomain.com,o=domains,dc=iredmail,dc=org
2014-09-30 10:13:21 -05:00
accesspolicy: domain
...
< / code > < / pre >
< p > This access restriction is implemented in iRedAPD (a simple Postfix policy
server), iRedMail has it enabled by default.< / p >
< p > Available access policies are:< / p >
< ul >
< li > < code > public< / code > : no restrictions.< / li >
< li > < code > domain< / code > : all users under same domain are allowed to send email to this mail list.< / li >
< li > < code > subdomain< / code > : all users under same domain and sub-domains are allowed to send email to this mail list.< / li >
< li > < code > membersOnly< / code > : only members of this mail list are allowd.< / li >
< li > < code > moderatorsOnly< / code > : only moderators of this mail list are allowed.< / li >
< li > < code > memebersAndModeratorsOnly< / code > : only members and moderators of this mail list are allowed.< / li >
2014-12-04 07:30:08 -06:00
< / ul > < p style = "text-align: center; color: grey;" > Document published under a < a href = "http://creativecommons.org/licenses/by-nd/3.0/us/" target = "_blank" > CC BY-ND 3.0< / a > license. If you found something wrong, please do < a href = "http://www.iredmail.org/contact.html" > contact us< / a > to fix it.<!-- Google Analytics -->
2014-10-13 19:28:43 -05:00
< script type = "text/javascript" >
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
< / script >
< script type = "text/javascript" >
try {
var pageTracker = _gat._getTracker("UA-3293801-14");
pageTracker._trackPageview();
} catch(err) {}
< / script >
< / body > < / html >