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 resolve # Проверка наличия записи рилея в реверсной зоне DNS и соответствие ее записи в прямой зоне # divert(0) VERSIONID(`$Id: check_relay_resolve.m4,v 8.12-0.03 2003/10/15 01:08:44 corvax Exp $')dnl divert(-1) dnl dnl LOCAL_RULESETS dnl dnl SLocal_check_relay dnl R $* $: $&{client_resolve} $1 R TEMP $* $#error $@ 4.7.1 $: "450 Access temporarily denied. Cannot resolve PTR record for " $&{client_addr} R FORGED $* $#error $@ 4.7.1 $: "450 Access temporarily denied. IP name possibly forged " $&{client_name} R FAIL $* $#error $@ 4.7.1 $: "450 Access temporarily denied. IP name lookup failed for " $&{client_addr} R $* $* $: $2 dnl dnl вариант проверки с исключением для авторизованных отправителей dnl не понадобился, т. к. судя по всему Local_check_relay не работает при использовании авторизации dnl dnl SLocal_check_relay dnl dnl # skip checks for authentificated senders dnl R $* $: < $&{auth_type} > <$&{client_resolve}> $1 dnl R < > < TEMP > $* $#error $@ 4.7.1 $: "450 Access temporarily denied. Cannot resolve PTR record for " $&{client_addr} dnl R < > < FORGED > $* $#error $@ 4.7.1 $: "450 Access temporarily denied. IP name possibly forged " $&{client_name} dnl R < > < FAIL > $* $#error $@ 4.7.1 $: "450 Access temporarily denied. IP name lookup failed " $&{client_name} dnl R < $* > < $* > $* $: $3