2016-05-19 06:51:20 -05:00
<!DOCTYPE html>
2014-09-30 10:13:21 -05:00
< html >
< head >
< meta http-equiv = "Content-Type" content = "text/html; charset=utf-8" / >
< title > LDAP: Add an alias domain< / title >
2015-07-31 23:14:52 -05:00
< link rel = "stylesheet" type = "text/css" href = "./css/markdown.css" / >
2014-09-30 10:13:21 -05:00
< / head >
< body >
2019-07-13 06:21:55 -05:00
2014-09-30 10:13:21 -05:00
< div id = "navigation" >
2017-11-16 21:48:44 -06:00
< a href = "https://www.iredmail.org" target = "_blank" >
2016-04-19 12:48:51 -05:00
< img alt = "iRedMail web site"
src="./images/logo-iredmail.png"
style="vertical-align: middle; height: 30px;"
/>
< span > iRedMail< / span >
< / a >
2016-02-29 02:15:19 -06:00
// < a href = "./index.html" > Document Index< / a > < / div > < h1 id = "ldap-add-an-alias-domain" > LDAP: Add an alias domain< / h1 >
2018-01-12 22:57:01 -06:00
< div class = "toc" >
< ul >
< li > < a href = "#ldap-add-an-alias-domain" > LDAP: Add an alias domain< / a > < ul >
< li > < a href = "#what-an-alias-domain-is-used-for" > What an alias domain is used for?< / a > < / li >
< li > < a href = "#add-alias-domain-with-iredadmin-pro" > Add alias domain with iRedAdmin-Pro< / a > < / li >
< li > < a href = "#how-to-add-an-alias-domain-with-phpldapadmin" > How to add an alias domain with phpLDAPadmin:< / a > < / li >
< / ul >
< / li >
< / ul >
< / div >
2014-09-30 10:13:21 -05:00
< h2 id = "what-an-alias-domain-is-used-for" > What an alias domain is used for?< / h2 >
< p > Let's say you have a mail domain < code > example.com< / code > hosted on your iRedMail server,
if you add domain name < code > domain.ltd< / code > as an alias domain of < code > example.com< / code > , all
emails sent to < code > username@domain.ltd< / code > will be delivered to user
< code > username@example.com< / code > 's mailbox.< / p >
< h2 id = "add-alias-domain-with-iredadmin-pro" > Add alias domain with iRedAdmin-Pro< / h2 >
< p > With iRedAdmin-Pro, you can simply add alias domain name in domain profile page,
under tab < code > Aliases< / code > .< / p >
< p > Screenshot:< / p >
2017-10-28 00:38:13 -05:00
< p > < img alt = "" src = "./images/iredadmin/domain_profile_alias.png" / > < / p >
2014-09-30 10:13:21 -05:00
< h2 id = "how-to-add-an-alias-domain-with-phpldapadmin" > How to add an alias domain with phpLDAPadmin:< / h2 >
< ul >
< li >
< p > Login to phpLDAPadmin (< code > https://[your_server]/phpldapadmin< / code > ) as LDAP root dn
(< code > cn=Manager,dc=xx,dc=xx< / code > )< / p >
< / li >
< li >
< p > Find the LDAP object of your mail domain which you want to add alias
domain in left panel of phpLDAPadmin, click the ldap object, phpLDAPadmin will
show detailed LDAP attributes/values of this domain in right panel.< / p >
< / li >
< li >
< p > Add a new LDAP attribute < code > domainAliasName< / code > to this domain account, set value
2018-10-01 04:31:59 -05:00
to the alias domain (e.g. < code > alias.com< / code > ).< / p >
< / li >
< li >
< p > Make sure LDAP attribute < code > enabledService< / code > has value < code > domainalias< / code > , if not,
add it manually. Note: < code > enabledService< / code > has few values by default.< / p >
2014-09-30 10:13:21 -05:00
< / li >
< / ul >
2015-01-31 04:20:42 -06:00
< p > Now you should add additional mail address for all mail users, lists, aliases.
For example, if you have mail user < code > user@example.com< / code > , you should add additional
2018-10-01 04:31:59 -05:00
email address < code > user@alias.com< / code > for this user. Steps:< / p >
2014-09-30 10:13:21 -05:00
< ul >
< li >
2015-01-31 04:20:42 -06:00
< p > Find the LDAP object of mail account which you want to add additional email
2014-09-30 10:13:21 -05:00
address in left panel of phpLDAPadmin, for example, user < code > user@example.com< / code > ,
click the ldap object, phpLDAPadmin will show detailed LDAP attributes/values
in right panel.< / p >
< / li >
< li >
< p > Add a new LDAP attribute < code > shadowAddress< / code > to this mail account, set value to
2018-10-01 04:31:59 -05:00
< code > user@alias.com< / code > . < strong > WARNING< / strong > : You must user the same username part as
2014-09-30 10:13:21 -05:00
original email address.< / p >
< / li >
< li >
< p > Save your change.< / p >
< / li >
< / ul >
< p > If you have several mail accounts (mail users, lists, aliases), you have to
2016-05-19 06:51:20 -05:00
add additional email address for them all.< / p > < div class = "footer" >
2019-12-31 00:07:48 -06:00
< p style = "text-align: center; color: grey;" > All documents are available in < a href = "https://github.com/iredmail/docs/" > GitHub repository< / a > , and published under < a href = "http://creativecommons.org/licenses/by-nd/3.0/us/" target = "_blank" > Creative Commons< / a > license. You can < a href = "https://github.com/iredmail/docs/archive/master.zip" > download the latest version< / a > for offline reading. If you found something wrong, please do < a href = "https://www.iredmail.org/contact.html" > contact us< / a > to fix it.< / p >
2016-05-19 06:51:20 -05:00
< / div >
2017-11-05 02:33:58 -06:00
<!-- Global site tag (gtag.js) - Google Analytics -->
< script async src = "https://www.googletagmanager.com/gtag/js?id=UA-3293801-21" > < / script >
< script >
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
2015-02-05 07:02:53 -06:00
2017-11-05 02:33:58 -06:00
gtag('config', 'UA-3293801-21');
2014-10-13 19:28:43 -05:00
< / script >
< / body > < / html >