On January 31, 2003 10:29 am, Kunal Chavan wrote:
> i have also followed docs thru ng4r.com where
> it lists some good features of qmail-ldap and
> says "Users and virtualdomans in an LDAP database"
> as it's one feature, but there is no entry of virtualdomain
> in my LDAP database so do i need it ??

If you just want to accept mail for an additional domain, it should be 
as easy as adding the domain in question to your "locals" and 
"rcpthosts", then adding the appropriate mail addresses to ldap and 
setting the proper mx.  You probably want to organize things a bit by 
putting each virtual domain under it's own OU and setting to the 
ldapbasedn to the "parent ou".   That way if you want to delete a 
virtual domain you just delete the whole OU and all the accounts get 
deleted as well.  It'll look something like this:

ou=domains,...
    ou=firstvdom.com,ou=domains,...
        uid=<accountf1>,...
        uid=<accountf2>,...
    ou=secondvdom.com,ou=domains,...
        uid=<accounts1>,...
        uid=<accountsv2>,...
        
Just make sure the uid and mail... addresses are unique in the whole 
tree.

If you're looking to "map" domains so mail to mydomain.net gets mapped 
to accounts in mydomain.com then i think your best bet is to use 
"virtualdomains" and the ~alias mechanism as with non-ldap qmail.  
You can also use "mailalternateaddress" for this purpose (ie mail: 
[EMAIL PROTECTED], mailalternateaddress:mydomain.net) but IMHO this 
is gets unwieldy.  See 8.6 on the lifewithqmail.org/ldap page for a 
good example.


        -neil

Reply via email to