|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Re: virtual_alias_maps: rewriting outbound
From: Chris McKeever (techjedi
gmail.com)
Date: Wed Jul 05 2006 - 15:01:50 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 7/5/06, Magnus Bäck <magnus
dsek.lth.se> wrote:
> On Wednesday, July 05, 2006 at 21:13 CEST,
> Chris McKeever <techjedi
gmail.com> wrote:
>
> > On 7/3/06, mouss <usebsd
free.fr> wrote:
> >
> > > why would you do a regex? do it directly in ldap. you're not using
> > > any regex "capacity" here. you're just using
> > > foo
domain => bar
domain
> > > where bar=function(foo) and domain is one of yours. the only thing
> > > is you need to make sure this only returns a result if bar
domain
> > > exists. I see no regex here. These are just "alternate" mailbox
> > > addresses.
> >
> > ok - that would work, I havent come across any LDAP function references ..
> > I will do some digging, if anyone knows a direct link/howto please
> > post it...or even a quick
> > example
> >
> > finding a function that would work in LDAP as you described
> > bar=function(foo) would be perfect!! good suggestion, now I have to
> > find it!
>
> You will find nothing of the sort. LDAP does not have "functions".
> The suggestion is that you store the addresses in LDAP.
>
> mail: foo.bar
example.com
> mailAlternateAddress: f.bar
example.com
>
> Or whatever your schema supports.
>
> You may use a function, possibly in your favourite scripting language,
> to generate the alternate addresses. Use can then easily use virtual
> rewriting to transform mailAlternateAddress -> mail if you need to.
>
that is what I thought - was a bit confused with the recommendation
about a function and LDAP...
I did find a reference from 2003 from Liviu Daia suggesting REGEX
capability in the ldap lookups, but it seems like that was never
discussed outside of that...it was similiar to what I was looking for.
domain = regexp:/^
(.*\.)?my\.domain$/
query_filter = regexp:/^(.*)$/:(mailacceptinggeneralid=${1})
result_filter = regexp:/^(.*)$/:${1}
http://groups.google.com/group/mailing.postfix.users/browse_frm/thread/1f79e2287263af2/f36955976c9be50f?lnk=st&q=postfix+ldap+function+change+input&rnum=8#f36955976c9be50f
> --
> Magnus Bäck
> magnus
dsek.lth.se
>
--
----------------------------------
please respond to the list .. if you need to contact me direct
cgmckeever is the account
prupref.com is the domain
<A href="http://www.prupref.com">Simply Chicago Real Estate</A>
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]