Rule check_rpt cause Pb

arnaud Fileux arnaud.fileux na wanadoo.fr
Úterý Červenec 17 21:47:06 CEST 2001


I make a connection in telnet port 25 with arguments follows:
From: me na mydomaine.com
rcpt to:someone na otherdomaine.com
Sendmail return
Domain name required pour someone na otherdomaine.com but this macro ($1 in
RHS ) in my rule Basic_check_rcpt must be for the macro $1 in the LHS ?

If I test in debugg mode i don't have this problem:

If someone have a little time for help.....
Thanks

Arnaud

My rule seems like this:

SLocal_check_rcpt
Scheck_rcpt
#R$*                    $: $>3 $1
#R$+@ $=m                       $: $>99 $1@$2
R$+@ $=m                        $@ ok
R$*                     $: $1 $| $>"Local_check_rcpt" $1
R$* $| $#$*             $#$2
R$* $| $*               $@ $>"Basic_check_rcpt" $1

SBasic_check_rcpt
# check for deferred delivery mode
RINVALIDUSER.$+ <@ localhost >  $#error $@5.7.1 $: pas de user $1
R$+ < @ localhost >             $@ ok
R$+                    $#error $@5.7.2 $:Domain name required pour $1
R$+@$=m                 $@ ok

An extract of debbug ....who works fine ...

> Translate,check_rcpt arnaud.fileux na webimmos.com $|
arnaud.fileux na wanadoo.fr
Translate          input: arnaud . fileux @ webimmos . com $| arnaud .
fileux @ wa
nadoo . fr
-----trying rule: $* $| $*
-----rule matches: $: $1 $| $2
rewritten as: arnaud . fileux @ webimmos . com $| arnaud . fileux @ wanadoo
. fr
Translate        returns: arnaud . fileux @ webimmos . com $| arnaud .
fileux @ wa
nadoo . fr
check_rcpt         input: arnaud . fileux @ webimmos . com $| arnaud .
fileux @ wa
nadoo . fr
-----trying rule: $+ @ $=m
----- rule fails
-----trying rule: $*
-----rule matches: $: $1 $| $> Local_check_rcpt $1
-----callsubr Local_check_rcpt (184)
Local_check_rcpt   input: arnaud . fileux @ webimmos . com $| arnaud .
fileux @ wa
nadoo . fr
Local_check_rcpt returns: arnaud . fileux @ webimmos . com $| arnaud .
fileux @ wa
nadoo . fr
rewritten as: arnaud . fileux @ webimmos . com $| arnaud . fileux @ wanadoo
. fr $
| arnaud . fileux @ webimmos . com $| arnaud . fileux @ wanadoo . fr
-----trying rule: $* $| $# $*
----- rule fails
-----trying rule: $* $| $*
-----rule matches: $@ $> Basic_check_rcpt $1
-----callsubr Basic_check_rcpt (182)
Basic_check_rcpt   input: arnaud . fileux @ webimmos . com
-----trying rule: INVALIDUSER . $+ < @ localhost >
----- rule fails
-----trying rule: $+ < @ localhost >
----- rule fails
-----trying rule: $+ @ $=m
-----rule matches: $@ ok
rewritten as: ok
Basic_check_rcpt returns: ok
rewritten as: ok
check_rcpt       returns: ok
>


Telnet return:mail from:arnaud.fileux na webimmos.com
250 2.1.0 arnaud.fileux na webimmos.com... Sender ok
rcpt to:arnaud.fileux na wanadoo.fr
553 5.3.0 arnaud.fileux na wanadoo.fr... Relaying denied
arnaud.fileux na wanadoo.fr






Další informace o konferenci Sendmail