OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Postfix Archives: Re: feature comments

Re: feature comments


Subject: Re: feature comments
From: Jason Hoos (jhoosthwack.net)
Date: Tue Jan 11 2000 - 02:09:15 CST


> I've been meaning to do a patch for postfix to accomplish some
> things that I had implemented on a sendmail + ldap based combo about 2
years
> back.
>
> I'm looking to answer a few questions:
>
> 1) Is there already a way to do this that I haven't considered?

There was a patch a while back to the PCRE maps that would allow you to do a
secondary map lookup from a PCRE map hit. I haven't tried it, but it looks
like it would allow you to do something like match against a regexp like
/page-([^\]+)\whatever.com/ and then take the $1 substring (the stuff in
the parens) and do a map lookup (LDAP in your case) on that. It might be
worth playing with to see if it'll do what you want.

The patch was by Thomas Quinot, in a message titled "Map Lookups in PCRE
substring replacements". I'll forward you a copy off-list (I still have it
in my mailbox someplace).

Jason Hoos
jhoosthwack.net



This archive was generated by hypermail 2b27 : Tue Jan 11 2000 - 02:15:53 CST