> We host 2 mail services <user>@telemovil.com and <user>@telemovil.net
> where <user> is NOT the same mailbox, in other words, they are like 2
> different mail servers.
The "mail" Attribute field in the ldap database DOES contain the
hostname - so you need by default separate entries for both domains.
If you would want them to be the same, you would need a script.
> The other thing is that we designed our LDAP tree to host ALL accounts
> under ou=People,o=Telemovil, and we chose mail attribute as our rdn
> instead of uid or cn. For example, email [EMAIL PROTECTED] is found
> on LDAP as dn: [EMAIL PROTECTED],ou=People,o=Telemovil in the
> other hand, user [EMAIL PROTECTED] is listed as dn:
> [EMAIL PROTECTED],ou=People,o=Telemovil ... they both are
> different email accounts, and as you can see the mail attribute is the
> key.
which should work exactly as you described.
> I'm receiving email for everybody, but when someone writes to
> [EMAIL PROTECTED] the problem arise: is not found on LDAP so it
> will bounce to the sender as: user unknown even though I got
> mail.telemovil.com in control/locals and in control/rcpthosts.
but you do not have entries containing [EMAIL PROTECTED]
> I've been reading a lot of web pages about qmail, but I don't get it
> yet.... How to make my qmail server to rewrite addresses like
> [EMAIL PROTECTED] to [EMAIL PROTECTED] ?????
> the same problem happens with [EMAIL PROTECTED]
This is a FAQ. I hope this is explained in www.lifewithqmail.org/ldap/
Make a entry for [EMAIL PROTECTED] with a deliver Program
which resends the E-Mail to [EMAIL PROTECTED]; the same for .net
Greetings,
Erich