Re: mail validation for multiple active directory domains [ldap_routing]
- From: Andrzej Adam Filip <anfi@xxxxxxx>
- Date: Mon, 09 Feb 2009 08:48:45 +0100
jk04 <jk04@xxxxxxxxxxxx> wrote:
We have set up a testbed with a linux server running sendmail-8.13.8-2
acting as a mail hub and a windows server 2003 running exchange. The
idea is that all outgoing mail messages to the windows server are
received by the linux server which then forward them to the windows
server only if the recipients have valid accounts.
Using the available howtos[1] I have already configured sendmail to
check the windows active directory and the setup works as expected.
FEATURE(`ldap_routing',null, `ldap -1 -T<TMPF> -v mail -k
proxyAddresses=SMTP:%0',`bounce')
LDAPROUTE_DOMAIN(`testdomain1.local')
define(`confLDAP_DEFAULT_SPEC', `-H "ldap://testdomain1.local" -b
"cn=users,dc=testdomain1,dc=local" -d
"cn=sendmail,cn=users,dc=testdomain1,dc=local" -M simple -P /etc/mail/
win-passwd')
Now we are adding a second windows server to the testbed. The new
server will be having diffrent domain (testdomain2.local) and users.
However it seems to me that sendmail checks only a single windows
server as the default ldap configuration (confLDAP_DEFAULT_SPEC) is
domain-dependent. Is there a way to make sendmail check a particular
windows servers based on recipient's domain?
Regards
Jamshid
[1] HOWTO: Looking up recipients before relaying in an exchange active
directory with your linux sendmail and ldap
Sendmail-8.14.0 added support for expanding %1 - %9 in LDAP queries
(replies has been expanded earlier). *Simple* cf/m4/proto.m4 patch of
ldap_routing implementation would allow to use %1 as recipient's domain
in ldap_routing queries [no need to recompile binaries].
<quote src="RELEASE_NOTES">
8.14.0/8.14.0 2007/01/31
New option -K for LDAP maps to replace %1 through %9 in the
lookup key with the LDAP escaped contents of the
arguments specified in the map lookup. Loosely based
on patch from Wolfgang Hottgenroth.
</quote>
Earlier sendamail versions would require more "messy" patching of files
used to generate sendamil.cf.
--
[pl>en Andrew] Andrzej Adam Filip : anfi@xxxxxxx : anfi@xxxxxxxx
Open-Sendmail: http://open-sendmail.sourceforge.net/
The typewriting machine, when played with expression, is no more
annoying than the piano when played by a sister or near relation.
-- Oscar Wilde
.
- References:
- Prev by Date: Re: Problem with access database not working?
- Next by Date: take an action depending upon sender and mail size...
- Previous by thread: mail validation for multiple active directory domains
- Next by thread: take an action depending upon sender and mail size...
- Index(es):
Relevant Pages
|