290400Re: Domain alias rewriting
- Jan 4, 2013On 01/04/2013 04:13 AM, Viktor Dukhovni wrote:
>>> from the alias form to the canonical form. This will also validateUnfortunately it does not fit to our ISP scenario, where there are
>>> > > the alias form as a valid address in RCPT TO commands.
>> > Unfortunately, I can not accomplish this with a single query.
> Actually, you can:
> domain = example.com example.org ...
> query_filter = mail=%u@...
> result_attribute = mail
> Just list all the domains whose namespace is identical to example.com
> after example.com in the "domain = " list, then query for the user
> in the canonical domain.
hundreds of served domains and each domain possibly has some alias domains.
>I think it's not scalable with LDAP.
> This said, it is far better to list all the valid of each user in
> a suitable multi-valued attribute and skip the domain alias hack.
Many years ago I developed the same functionality to qmail-ldap, but
that project seems to be dead now. Eventually I may find some time to
implement this in Postfix. I'm wondering about adding some kind of
argument attribute(s?) to ldap-table, which can look up other tables and
its result can be expanded to query_filter, etc. Would it fit to Postfix?
- << Previous post in topic Next post in topic >>