1

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:

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

2 (edited by web2works 2012-02-10 20:19:33)

Re: What's new in iRedMail: Domain alias support with LDAP backend

This is exactly what I am looking for but how do I use it?

The hint says:
"Emails sent to user@[ALIAS_DOMAIN] will be delivered to user@domain.com."

I understand how it works but how do I use it? i.e: What do I need to type into the input ?

3

Re: What's new in iRedMail: Domain alias support with LDAP backend

web2works wrote:

I understand how it works but how do I use it? i.e: What do I need to type into the input ?

What result do you expect?

4

Re: What's new in iRedMail: Domain alias support with LDAP backend

ZhangHuangbin wrote:
web2works wrote:

I understand how it works but how do I use it? i.e: What do I need to type into the input ?

What result do you expect?

Email sent to bob@domain.com will be delivered to bob@domain.co.uk

5

Re: What's new in iRedMail: Domain alias support with LDAP backend

Hello,


How to make the aliases appear in the Global LDAP Andress Book?

6

Re: What's new in iRedMail: Domain alias support with LDAP backend

Hi @mrteam,

*) Please create a new forum topic for your own/new question, don't hijack others' topic.
*) What does your "aliases" mean? Domain alias or user alias addresses (shadowAddress)? You can try to modify LDAP filter in Roundcube address book.