dnl Copyright (C) 2004, Wolfgang Hottgenroth dnl dnl This file is part of smmapdfw. dnl dnl smmapdfw is free software; you can redistribute it and/or modify it dnl under the terms of the GNU General Public License as published by dnl the Free Software Foundation; either version 2 of the License, or dnl (at your option) any later version. dnl dnl smmapdfw is distributed in the hope that it will be useful, but WITHOUT dnl ANY WARRANTY; without even the implied warranty of MERCHANTABILITY dnl or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public dnl License for more details. dnl dnl You should have received a copy of the GNU General Public License dnl along with smmapdfw. If not, write to the Free Software Foundation, 59 dnl Temple Place - Suite 330, Boston, MA 02111-1307, USA. VERSIONID(`$Id$') divert(-1) define(`_USAGE_', `dnl errprint(`*** ERROR: missing argument for FEATURE(cyruscheck): Usage: FEATURE(`cyruscheck', `_dummy_') _dummy_: active (actually returning errors) or dummy (just log what it would return) found: $1 ')') ifelse(_ARG_, `dummy', `', ` ifelse(_ARG_, `active', `', ` _USAGE_(`_dummy_: ('_ARG_`) ') ')') define(`_dummy_', _ARG_) dnl errprint(`*** _dummy_: '_dummy_` dnl ') ifelse(defn(`confCYRUSCHECK_MAP'), `', ` define(`_CYRUSCHECK_MAP_', `inet:8884@127.0.0.1')', ` define(`_CYRUSCHECK_MAP_', confCYRUSCHECK_MAP)') divert(0) LOCAL_CONFIG # Adjust the port Kcyruscheck socket -T _CYRUSCHECK_MAP_ Kcht_logger syslog LOCAL_RULESETS # This ruleset can be used to test the verifier in -bt mode Scc R< $+ > < $+ > $: < $(cyruscheck $1 $2 $:none $) > Scyruscheck R< $+ > < $+ > $: < $1 > < $2 > < $&f > dnl do not perform check when sender is not set - so only for the recipient R< $+ > < $+ > < > $@ < ok > R< $+ > < $+ > < $+ > $: < $1 > < $2 > < $(cyruscheck $1 $2 $:none $) > ifelse(_dummy_, `dummy', `dnl dnl dummy R< $+ > < $+ > < $+ > $@ < ok > $(cht_logger $1 -- $2 --- $3 $)', `dnl dnl active R< $+ > < $+ > < $+ > $: < $3 > R< $* > $@ < ok > R< $* > $#error $@ 5.0.0 $: "500 Depot returns error: " $1 R< $* > $#error $@ 4.0.0 $: "400 Depot returns error: " $1 R< $* > $#error $@ 4.0.0 $: "400 Currently not verification possible, try again later" R$* $#error $@ 4.7.1 $: "451 Local configuration error "')