Index: [Article Count Order] [Thread]

Date:  Tue, 11 Jul 2006 18:52:13 +0800
From:  patricko <patricko (at mark) staff.singnet.com.sg>
Subject:  [coba-e:05983] [IGNORE]Re: pop-b4-smtp code line in sendmail.cf placed wrongly!
To:  coba-e (at mark) bluequartz.org
Message-Id:  <20060711185213.5c1bd0c0 (at mark) localhost.localdomain>
In-Reply-To:  <20060711183754.625a7cf5 (at mark) localhost.localdomain>
References:  <20060711183754.625a7cf5 (at mark) localhost.localdomain>
X-Mail-Count: 05983

sorry found the bug

On Tue, 11 Jul 2006 18:37:54 +0800
patricko <patricko (at mark) staff.singnet.com.sg> wrote:

> Hi blues,
> 
> 
> 
> I realised that pop-b4-smtp codes have placed wrongly in
> the BQ.
> 
> 
>  the pop-b4-smtp lines should be in check_rcpt Not after
>  greet_pause in sendmail.cf
> 
> 
> **** Sun RAQ ********
> 
> ######################################################################
> ###  check_rcpt -- check SMTP `RCPT TO:' command argument
> ######################################################################
> 
> SLocal_check_rcpt
> # Put the address into cannonical form (even if it doesn't resolve to an MX).
> R$*                     $: $>Parse0 03 $1
> R$* < $* > $*           $: $1 < $2 . > $3
> R$* < $* . . > $*       $1 < $2 . > $3
> # Test against pop-before-relay hash
> R$*                     $: < $&{client_addr} >
> R< $* >                 $(popauth $1 $)
> R$* < MATCH >           $#OK
> 
> Scheck_rcpt
> R$*                     $: $1 $| $>"Local_check_rcpt" $1
> R$* $| $#$*             $#$2
> R$* $| $*               $@ $>"Basic_check_rcpt" $1
> 
> 
> 
> **** BQ **************
> 
> ######################################################################
> ###  greet_pause: lookup pause time before 220 greeting
> ###
> ###     Parameters:
> ###             $1: {client_name}
> ###             $2: {client_addr}
> ######################################################################
> SLocal_greet_pause
> Sgreet_pause
> R$*                     $: <$1><?> $| $>"Local_greet_pause" $1
> R<$*><?> $| $#$*        $#$2
> R<$*><?> $| $*          $: $1
> R$+ $| $+               $: $>D < $1 > <?> <! GreetPause> < $2 >
> R   $| $+               $: $>A < $1 > <?> <! GreetPause> <>     empty client_name
> R<?> <$+>               $: $>A < $1 > <?> <! GreetPause> <>     no: another lookup
> R<?> <$*>               $# 5000
> R<$* <TMPF>> <$*>       $@
> R<$+> <$*>              $# $1
> 
> 
> 
> 
> SLocal_check_rcpt
> # Put the address into cannonical form (even if it doesn't resolve to
> an MX).
> R$*                     $: $>Parse0 03 $1
> R$* < $* > $*           $: $1 < $2 . > $3
> R$* < $* . . > $*       $1 < $2 . > $3
> # Test against pop-before-relay hash
> R$*                     $: < $&{client_addr} >
> R< $* >                 $(popauth $1 $)
> R$* < MATCH >           $#OK
> 
> 
> 
> 
> 
> 
> Cheers
> patrick