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 # # # Skip all resolvings for local and outgoing messages # Отмена разрешения имен доменов получателей на этапе приема локальных сообщений # divert(0) VERSIONID(`$Id: skip_resolve_for_local.m4,v 8.12-0.07 2004/07/23 15:00:46 corvax Exp $')dnl divert(-1) dnl dnl LOCAL_CONFIG dnl dnl ifelse_strstr(confCHECK_OUTGOING_IN, `ACCESS_DB', `dnl ifdef(`_ACCESS_TABLE_', `dnl', `dnl errprint(`*** ERROR: HACK(skip_resolve_for_local) requires FEATURE(access_db) ')')') dnl dnl HACK(`precheck_envelope')dnl dnl dnl LOCAL_RULESETS dnl dnl SLocal_check_mail R $* $: $(macro {deliveryMode} $@ substr(confDELIVERY_MODE,0,1) $) $1 R $* $: $1 $| < $&{auth_type} > R $* $| < $+ > $@ $(macro {deliveryMode} $@ d $) $1 R $* $| $* $: $1 $| <$&{IsOutgoing}> R $* $| $* $: $(macro {deliveryMode} $@ d $) < ? > $1 R $* $| $* $: $1 R < ? > $+ < @ $+ > $* $: < ? > $1@$2 $| $1 < @ $2 > $3 R < ? > $+@$+ . $| $+ < @ $+ > $* $: < ? > $1@$2 $| $1 < @ $2 > $3 R < ? > $+@$+ $| $+ < @ $+ > $* $: $>D <$1@$2> <+From> < $1@$2 $| $3 < @ $4 > $5 > R < ? > < $+@$+ $| $+ < @ $+ > $* > $: $>D <@$2> <+From> < $1@$2 $| $3 < @ $4 > $5 > R < ? > < $+@$+ $| $+ < @ $+ > $* > $: $>D <$2> <+From> < $1@$2 $| $3 < @ $4 > $5 > R < ? > < $+@$+ $| $+ < @ $+ > $* > $: $>D <$1@> <+From> < $1@$2 $| $3 < @ $4 > $5 > R <$={Accept}> < $* $| $* > $@ $3 R $* $#error $@ 5.7.1 $: "550 Access denied" R $* $#error $: $1 R $* $#error $: $1 R $* $#discard $: discard R $* $#error $@ $1.$2.$3 $: $4 R $* $#error $: $1 R < $* > < $* $| $* > $: < $1 > $2 R < ? > $* $| $* $@ $2 R < ? > $* $@ $1 R < $* > $* $| $* $: $3 R < $* > $* $: $2 SLocal_check_rcpt R $* $: $(macro {deliveryMode} $@ substr(confDELIVERY_MODE,0,1) $) $1 R $* $: $1 $| < $&{auth_type} > R $* $| < $+ > $@ $(macro {deliveryMode} $@ d $) $1 R $* $| $* $: $1 $| <$&{IsOutgoing}> R $* $| $* $: $(macro {deliveryMode} $@ d $) < ? > $1 R $* $| $* $: $1 R < ? > $+ < @ $+ > $* $: < ? > $1@$2 $| $1 < @ $2 > $3 R < ? > $+@$+ . $| $+ < @ $+ > $* $: < ? > $1@$2 $| $1 < @ $2 > $3 R < ? > $+@$+ $| $+ < @ $+ > $* $: $>D <$1@$2> <+To> < $1@$2 $| $3 < @ $4 > $5 > R < ? > < $+@$+ $| $+ < @ $+ > $* > $: $>D <@$2> <+To> < $1@$2 $| $3 < @ $4 > $5 > R < ? > < $+@$+ $| $+ < @ $+ > $* > $: $>D <$2> <+To> < $1@$2 $| $3 < @ $4 > $5 > R < ? > < $+@$+ $| $+ < @ $+ > $* > $: $>D <$1@> <+To> < $1@$2 $| $3 < @ $4 > $5 > R <$={Accept}> < $* $| $* > $@ $3 R $* $#error $@ 5.7.1 $: "550 Access denied" R $* $#error $: $1 R $* $#error $: $1 R $* $#discard $: discard R $* $#error $@ $1.$2.$3 $: $4 R $* $#error $: $1 R < $* > < $* $| $* > $: < $1 > $2 R < ? > $* $| $* $@ $2 R < ? > $* $@ $1 R < $* > $* $| $* $: $3 R < $* > $* $: $2 SLocal_check_relay R $* $| $* $: $1 $| $2 $| < $&{auth_type} > R $* $| $* $| < $+ > $@ $1 $| $2 R $* $| $* $| $* $: $1 $| $2 $| <$&{IsOutgoing}> R $* $| $* $| $* $@ $1 $| $2 R $* $| $* $| $* $: $1 $| $2 R $* $| $+ $: $>A <$2> <+Connect> < $1 $| $2 > R <$={Accept}> <$*> $@ $2 R $* $#error $@ 5.7.1 $: "550 Access denied" R $* $#error $: $1 R $* $#error $: $1 R $* $#discard $: discard R $* $#error $@ $1.$2.$3 $: $4 R $* $#error $: $1 R < $* > < $+ > $: < $1 > $2 R < $* > $* $: $2 LOCAL_RULE_3 R $* $: $(macro {deliveryMode} $@ substr(confDELIVERY_MODE,0,1) $) $1 R $* $: $1 $| < $&{auth_type} > R $* $| < $+ > $: $(macro {deliveryMode} $@ d $) $1 R $* $: $1 $>SetIsOutgoing R $* $| $* $: $1 $| <$&{IsOutgoing}> R $* $| $* $: $(macro {deliveryMode} $@ d $) $1 $| R $* < @ $* > $| $* $: $1 < @ $2 . > $| R $* < @ $* . . > $| $* $: $1 < @ $2 . > $| R $* $| $* $: $1