divert(-1) # # Precheck Received field format # # никаких копирайтов! # dnl divert(0) dnl VERSIONID(`$Id: precheck-received.m4,v 8.12 2002/12/22 19:10:00 corvax Exp $') dnl divert(-1) define(`_RECEIVED_PARSED_')dnl divert(0) dnl dnl LOCAL_CONFIG dnl dnl Kstorage_received_host macro dnl dnl LOCAL_RULESETS dnl dnl ###################################################################### # Check Received # ###################################################################### dnl HReceived: $>+CheckReceived dnl SCheckReceived dnl # stupid qmail formats R from $* ( HELO $+ ) ( $+ ) by $+ with $- ; $+ $: from $2 ( $1 [ $3 ] ) by $4 dnl # handle CGPro format R from [ $+ ] ($* HELO $+) by $+ ($+) with $- id $+ $: from $3 ( $2 [ $1 ] ) by $4 dnl # handle Exim format R from [ $+ ] ($* HELO= $+) by $+ $: from $3 ( $2 [ $1 ] ) by $4 R from $+ ( [ $+ ] HELO= $+) by $+ $: from $3 ( $1 [ $2 ] ) by $4 R from $+ ([ $+ ]) by $+ $: from $1 ( [ $2 ] ) by $3 dnl R from $+ by $+ with $+ $: from $1 ( [ ] ) by $2 with $3 dnl # MS Internet Mail R from ( $+ ) [ $+ ] by $+ with $+ $: from $1 ( [ $2 ] ) by $3 dnl # SMTPSVC R from $+ - $+ by $+ with $+ $: from $1 ( [ $2 ] ) by $3 dnl # SMail format for local clients R from (locally authorised $+) $+ [$+] with $- by $+ with $+ $: from $2 ( [ $3 ] ) by $5 dnl # handle SpiderMail format Rfrom $+ ( $+ [ $+ ] with $- ) by $+ for $+ $: from $1 ( $2 [ $3 ] ) by $5 dnl # handle Domino MTA fmt R ( from $* [ $+ ] ) $+ $: from $1 ( [ $2 ] ) $3 dnl # handle MDaemon format R from $+ [ $+ ] by $+ [ $+ ] with $+ $: from $1 ( [ $2 ] ) by $3 dnl # sendmail from localhost R ( from $+ @ $+ ) by $+ for $+ $: from $2 ( $1@$2 [ $2 ] ) by $3 # now we have formatted Received to normal syntax