divert(-1) # # Copyright (c) 2003, 2004 Victor Ustugov # This hack is under BSD License # Redistributions of source code must retain the above copyright notice # # hacks disscussion's maillist - http://www.mta.org.ua/mailman/listinfo/sendmail-conf # # # Check MS Exchange users in Active Directory # # проверка существования пользователей MS Exchange в Active Directory # divert(0) VERSIONID(`$Id: check_exchange.m4,v 8.12-0.05 2003/09/22 19:20:00 corvax Exp $')dnl divert(-1) dnl ifdef(`confADSEARCHER',, `define(`confADSEARCHER', `/usr/local/bin/adsearch.sh')') dnl dnl POPDIVERT dnl dnl LOCAL_CONFIG dnl dnl Kadsearch program `'confADSEARCHER dnl dnl LOCAL_RULESETS dnl dnl SLocal_check_rcpt dnl R $+ $: $>Parse0 $>3 $1 R $+ $: $>CheckExchangeUser $1 dnl SCheckExchangeUser R $+ < @ $={VirtHost} . > $: < $(adsearch $1@$2 $: Can not execute adsearch $) > $1 < @ $2 . > R $+ < @ $={VirtHost} > $: < $(adsearch $1@$2 $: Can not execute adsearch $) > $1 < @ $2 . > R < User unknown > $* $#error $@ 5.1.1 $: "550 User unknown" R < $+ > $+ < @ $+ > $: $2 < @ $3 > dnl