2016-05-19 06:51:20 -05:00
<!DOCTYPE html>
2016-04-27 20:17:46 -05:00
< html >
< head >
< meta http-equiv = "Content-Type" content = "text/html; charset=utf-8" / >
< title > Per-user alias address< / title >
< link rel = "stylesheet" type = "text/css" href = "./css/markdown.css" / >
< / head >
< body >
< div id = "navigation" >
< a href = "/index.html" target = "_blank" >
< img alt = "iRedMail web site"
src="./images/logo-iredmail.png"
style="vertical-align: middle; height: 30px;"
/>
< span > iRedMail< / span >
< / a >
// < a href = "./index.html" > Document Index< / a > < / div > < h1 id = "per-user-alias-address" > Per-user alias address< / h1 >
2016-04-27 21:04:49 -05:00
< div class = "toc" >
< ul >
< li > < a href = "#per-user-alias-address" > Per-user alias address< / a > < ul >
< li > < a href = "#manage-per-user-alias-addresses-with-iredadmin-pro" > Manage per-user alias addresses with iRedAdmin-Pro< / a > < / li >
< li > < a href = "#sql-backend-manage-per-user-alias-addresses-with-sql-command-line" > SQL backend: Manage per-user alias addresses with SQL command line< / a > < / li >
< li > < a href = "#ldap-backend-manage-per-user-alias-addresses" > LDAP backend: Manage per-user alias addresses< / a > < / li >
< li > < a href = "#screenshot-of-iredadmin-pro" > Screenshot of iRedAdmin-Pro< / a > < / li >
< / ul >
< / li >
< / ul >
< / div >
2016-04-27 20:17:46 -05:00
< p > Since iRedMail-0.9.3, we have per-user alias address support, that means mail
user < code > john.smith@domain.com< / code > can have additional email addresses like
< code > john@domain.com< / code > , < code > js@domain.com< / code > and more, all emails sent to these addresses
will be delivered to same mailbox (< code > john.smith@domain.com< / code > ). With per-user
alias address support, you don't need to create separated mail alias accounts
anymore.< / p >
< h2 id = "manage-per-user-alias-addresses-with-iredadmin-pro" > Manage per-user alias addresses with iRedAdmin-Pro< / h2 >
< p > You can manage per-user alias addresses with iRedAdmin-Pro in user profile
page, under tab "Aliases". Screenshot attached below.< / p >
< h2 id = "sql-backend-manage-per-user-alias-addresses-with-sql-command-line" > SQL backend: Manage per-user alias addresses with SQL command line< / h2 >
< p > Add additional email addresses < code > sales@domain.com< / code > , < code > bill@domain.com< / code > for
existing user < code > john@domain.com< / code > :< / p >
< pre > < code > sql> USE vmail;
sql> INSERT INTO alias (address, goto, alias_to, is_alias, domain)
VALUES ('sales@domain.com', 'john@domain.com', 'john@domain.com', 1, 'domain.com');
sql> INSERT INTO alias (address, goto, alias_to, is_alias, domain)
VALUES ('bill@domain.com', 'john@domain.com', 'john@domain.com', 1, 'domain.com');
< / code > < / pre >
< ul >
2016-04-27 21:04:49 -05:00
< li > Account < code > sales@domain.com< / code > and < code > bill@domain.com< / code > are NOT existing mail user accounts.< / li >
2016-04-27 20:17:46 -05:00
< li > Values of column < code > alias.goto< / code > and < code > alias.alias_to< / code > must be the same -- email address of the existing mail user.< / li >
< li > In above sample, < code > bill@domain.com< / code > could be an email address which belongs to your alias domain.< / li >
2016-04-27 21:04:49 -05:00
< li > You're free to add as many additional email addresses as you want.< / li >
2016-04-27 20:17:46 -05:00
< / ul >
< h2 id = "ldap-backend-manage-per-user-alias-addresses" > LDAP backend: Manage per-user alias addresses< / h2 >
< p > For LDAP backend, per-user alias addresses are stored in LDAP attribute
< code > shadowAddress< / code > of user object, and attribute/value pair
< code > enabledService=shadowaddress< / code > is required. For example:< / p >
< pre > < code > dn: mail=john@domain.com,ou=Users,domainName=domain.com,o=domains,dc=xxx,dc=xxx
enabledService: shadowaddress
shadowAddress: sales@domain.com
shadowAddress: bill@domain.com
...
< / code > < / pre >
< h2 id = "screenshot-of-iredadmin-pro" > Screenshot of iRedAdmin-Pro< / h2 >
2016-05-19 06:51:20 -05:00
< p > < img alt = "" src = "../images/iredadmin/user_profile_aliases.png" width = "1024px" / > < / p > < div class = "footer" >
< p style = "text-align: center; color: grey;" > All documents are available in < a href = "https://bitbucket.org/zhb/iredmail-docs/src" > BitBucket 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://bitbucket.org/zhb/iredmail-docs/get/tip.tar.bz2" > download the latest version< / a > for offline reading. If you found something wrong, please do < a href = "http://www.iredmail.org/contact.html" > contact us< / a > to fix it.< / p >
< / div >
< script type = "text/javascript" >
2016-04-27 20:17:46 -05:00
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-3293801-21', 'auto');
ga('send', 'pageview');
< / script >
< / body > < / html >