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 relay forged # Проверка поддельных записей в DNS # dnl # dnl # принудительная проверка PTR записи рилея в access_db dnl # необходима при некорретной A записи рилея в DNS или при ее отсутствии dnl # в этом случае sendmail добавляет в Received фразу "may be forged", dnl # а ${client_name} содержит вместо PTR записи хоста рилея A запись, взятую в квадратные скобки dnl # divert(0) VERSIONID(`$Id: check_relay_forged.m4,v 8.12-0.05 2004/08/28 15:11:31 corvax Exp $')dnl divert(-1) dnl ifdef(`_ACCESS_TABLE_',`', `errprint(`*** FEATURE(`access_db') must appear before HACK(`check_relay_forged') ') ')dnl dnl HACK(`precheck_envelope')dnl dnl dnl LOCAL_RULESETS dnl dnl SLocal_check_relay dnl R [$-.$-.$-.$-] $| $* $: [$1.$2.$3.$4] $| $5 $| $&{client_ptr} R [$-.$-.$-.$-] $| $* $| $* . $: [$1.$2.$3.$4] $| $5 $| $6 R [$-.$-.$-.$-] $| $* $| $: [$1.$2.$3.$4] $| $5 R [$-.$-.$-.$-] $| $* $| $+ $: [$1.$2.$3.$4] $| $5 $| $>D <$6> <+Connect> <> dnl R [$+] $| $* $| <$*> $: [$1] $| $2 found nothing R [$+] $| $* $| <$={Accept}> <$*> $: [$1] $| $2 R [$+] $| $* $| <$*> $#error $@ 5.7.1 $: "550 Access denied" R [$+] $| $* $| <$*> $#error $: $3 R [$+] $| $* $| <$*> $#error $: $3 R [$+] $| $* $| <$*> $#discard $: discard R [$+] $| $* $| <$*> $#error $@ quarantine $: $3 R [$+] $| $* $| <$*> $#error $@ $3.$4.$5 $: $6 R [$+] $| $* $| <$*> $#error $: $3 R [$+] $| $* $| <$+> <$*> $#error $: $3 dnl