Re: modify rule in ldap routing (second try)
- From: per@xxxxxxxxxxxx (Per Hedeland)
- Date: Tue, 8 Aug 2006 23:07:42 +0000 (UTC)
In article <eb8b9f$d5b$1@xxxxxxxxxxxxxxxxxxxx> Martin
<ug211ai@xxxxxxxxxxxxxxx> writes:
To solve this problem I've made the following modification in proto.m4:
modify rule in ldap routing
diff proto.m4 proto.m4.orig
1035c1035
< R$+ < @ $={LDAPRouteEquiv} . > $: $>LDAPExpand <$1 < @ $2 . >>
<$1+$2 @ $M> <>',
---
R$+ < @ $={LDAPRouteEquiv} . > $: $>LDAPExpand <$1 < @ $2 . >><$1 @ $M> <>',
[snip]
Now I can benefit from the `strip' parameter from FEATURE(`ldap_routing'):
"`strip' tries the lookup with the +detail and if no matches are found,
strips the +detail and tries the lookup again."
[snip]
Is this a good idea to handle such exceptions ?
Modifying the m4 "source" files will always be a pain, as you will need
to re-apply the mods on upgrade rather than just carrying your .mc file
along.
Are there any undesirable side effects of this rule modification ?
Doubling the number of LDAP lookups for almost all recipients would
probably be considered undesirable by most, but I guess it depends on
your traffic load if this is a significant problem.
For the first drawback, I believe you should be able to put a custom
rule in a LOCAL_RULE_0 section of your .mc file to achieve a similar
result. Unlike the proto.m4 mod, it would have to "permanently" modify
the recipient address, but if you don't have addresses that should "pass
through" the LDAP lookup, it shouldn't matter.
For the second drawback, you could make such a custom rule (or for that
matter your proto.m4 mod) more specific, and only modify the addresses
that really need it (and not use the 'strip' parameter) - but of course
this takes a piece of configuration information out of your LDAP and
puts it in your sendmail config, which may or may not be an acceptable
trade-off for you.
--Per Hedeland
per@xxxxxxxxxxxx
.
- Follow-Ups:
- Re: modify rule in ldap routing (second try)
- From: Martin
- Re: modify rule in ldap routing (second try)
- References:
- modify rule in ldap routing (second try)
- From: Martin
- modify rule in ldap routing (second try)
- Prev by Date: Re: How Does sendmail Determine The "From" Header Contents
- Next by Date: Re: DNS Lookup of HELO Domain to Match with Connecting MTA IP Address
- Previous by thread: modify rule in ldap routing (second try)
- Next by thread: Re: modify rule in ldap routing (second try)
- Index(es):
Relevant Pages
|