OSEC

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: mouss (usebsdfree.fr)
Date: Mon Jul 03 2006 - 16:51:02 CDT


Chris McKeever wrote:
>> What's in this regex map? if you ave a wildcard, that's your problem.
>>
>
> phew -- alright, I got my handle around the bounce invalid and the
> SMTP level invalid. Everything is working on that front (less the
> first.last rewrite). It turned out a line by line recode of the
> main.conf cleared some bugger out.
>
> so, now I am rejecting directly off the LDAP.
>
> back to the virtual_alias_map - outside of scripting a
> firstname.lastname lookup table
> is there anyway to do regex prior to an LDAP lookup? I cant seem to
> find anything about advanced LDAP lookups

why would you do a regex? do it directly in ldap. you're not using any
regex "capacity" here. you're just using
    foodomain => bardomain
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 bardomain exists. I
see no regex here. These are just "alternate" mailbox addresses.