Topic: What's new in iRedMail: Domain alias support with LDAP backend
Hi, all.
We improved iRedMail moment ago, and we now have domain alias support in iRedMail with LDAP backend.
Note:
You have to use lastest iRedMail LDAP schema.
You have to use per-use shadow address with domain alias.
Example, Below is a domain object, with three domain alias names (b.cn, c.cn, d.cn).
dn: domainName=a.cn,o=domains,dc=iredmail,dc=org
objectclass: mailDomain
domainName: a.cn
enabledService: mail
enabledService: domainalias # <- This is required
domainAliasName: b.cn # <- Alias domain name, #1.
domainAliasName: c.cn # <- Alias domain name, #2.
domainAliasName: d.cn # <- Alias domain name, #3.
And below is a normal mail user, with three shadow addresses.
dn: mail=www@a.cn,ou=Users,domainName=a.cn,o=domains,dc=iredmail,dc=org
objectclass: inetOrgPerson
objectclass: mailUser
mail: www@a.cn
enabledService: mail
enabledService: smtp
enabledService: pop3
enabledService: pop3secured
enabledService: imap
enabledService: imapsecured
enabledService: deliver
enabledService: shadowaddress # <- This is required.
shadowAddress: www@b.cn # <- Shadow address, #1.
shadowAddress: www@c.cn # <- Shadow address, #2.
shadowAddress: www@d.cn # <- Shadow address, #3.
storageBaseDirectory: /var/vmail/vmail01
mailMessageStore: a.cn/w/ww/www/www-2009.10.19.10.25.33/
As you see, all mails sent to www@[a.cn, b.cn, c.cn, d.cn] will be delivered to the same mailbox (/var/vmail/vmail01/a.cn/w/ww/www/www-2009.10.19.10.25.33/).
That's all.
In above example, we bind there domains to a.cn, if you don't like this way, you can create these alias domains as normal domain object, for example:
dn: domainName=b.cn,o=domains,dc=iredmail,dc=org
objectclass: mailDomain
domainName: b.cn
enabledService: mail
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.