I never actually used LDAP, and someone asked if it's possible
to alias one domain to another, and I wonder if its doable in
LDAP the Right Way.

Let's assume we've example.com domain with all the addresses
stored in LDAP somehow.  Now let's assume also that example.net
should be an alias for example.com.

For example.com, postfix configured to query LDAP for this
expression (I don't know LDAP so I use sql-like syntax):

 select mailbox_location from ldap where
  mailaddress = '$localp...@$domain'

Now, is it possible to modify the query so that other domain
works too, like this:

 select mailbox_location from ldap where
  mailaddress = '$localp...@$domain'
  or
   ('$domain' = 'example.net' and
    mailaddress = '$localp...@example.com')

?  Is it doable in LDAP query?

(Not a my problem, I don't use LDAP, but someone asked this
yesterday in #postfix on freenode.net, and made me curious).

Thanks!

/mjt

Reply via email to