Hi, 

[ Note: this messsages is cross-mailed to [EMAIL PROTECTED],
  [EMAIL PROTECTED], and [EMAIL PROTECTED] ]

Used system: Red Hat Linux 5.0, package sendmail-8.8.7-12.

It appears that the check_rcpt rule does not work properly when you run
sendmail with delivery mode "delay".  In practice, you can now only put
the full IP address or name in the ip_allow or name_allow files, otherwise
the matches will fail (due to bad tokenizing, see below).

Here are the traces of a "-d21.21" SMTP session from client 192.87.153.26.
The /etc/mail/ip_allow file contains "192.87.153".  The trace shows the
check_rcpt ruleset for the address <[EMAIL PROTECTED]>.

Trace with delivery mode "background":

    -----trying rule: $+
    -----rule matches: $: $( dequote "" $&M-$ $) $| $1
    rewrite: RHS $&client_addr => "192.87.153.26"
    $1: bfffcff0="<" bfffcff2="jos" bfffcff6="@" bfffcff8="simba" bfffcffe="." 
bfffd000="xos" bfffd004="." bfffd006="nl" bfffd009=">"
    rewritten as: 192 . 87 . 153 . 26 $| < jos @ simba . xos . nl >
    -----trying rule: 0 $| $*
    ----- rule fails
    -----trying rule: $={LocalIP} $* $| $*
    -----rule matches: $@ ok
    rewritten as: ok
    rewrite: ruleset 194 returns: ok
    250 <[EMAIL PROTECTED]>... Recipient ok

Trace with delivery mode "delay":

    -----trying rule: $+
    -----rule matches: $: $( dequote "" $&M-$ $) $| $1
    rewrite: RHS $&client_addr => "192.87.153.26"
    $1: bfffcff0="<" bfffcff2="jos" bfffcff6="@" bfffcff8="simba" bfffcffe="." 
bfffd000="xos" bfffd004="." bfffd006="nl" bfffd009=">"
    rewritten as: "" 192.87.153.26 $| < jos @ simba . xos . nl >
    -----trying rule: 0 $| $*
    ----- rule fails
    -----trying rule: $={LocalIP} $* $| $*
    ----- rule fails
    -----trying rule: $* $| $+
    -----rule matches: $: $( dequote "" $&M-# $) $| $2
    rewrite: RHS $&client_name => "pegasus.xos.nl"
    $2: bfffcff0="<" bfffcff2="jos" bfffcff6="@" bfffcff8="simba" bfffcffe="." 
bfffd000="xos" bfffd004="." bfffd006="nl" bfffd009=">"
    rewritten as: "" pegasus.xos.nl $| < jos @ simba . xos . nl >
    -----trying rule: $| $*
    ----- rule fails
    -----trying rule: $* $=w $| $*
    ----- rule fails
    -----trying rule: $* $={LocalNames} $| $*
    ----- rule fails
    -----trying rule: $* $| $*
    -----rule matches: $: $> 3 $2
    $2: bfffcff0="<" bfffcff2="jos" bfffcff6="@" bfffcff8="simba" bfffcffe="." 
bfffd000="xos" bfffd004="." bfffd006="nl" bfffd009=">"
    -----callsubr 3 (3)
    rewrite: ruleset   3 returns: jos < @ simba . xos . nl >
        ...
        ... long trace of ruleset 3 omitted
        ...
    rewritten as: jos < @ simba . xos . nl >
    -----trying rule: $* < @ $+ . > $*
    ----- rule fails
    -----trying rule: $* < @ $+ > $*
    -----rule matches: $# error $@ 5 . 7 . 1 $: 551 we do not relay
    rewritten as: $# error $@ 5 . 7 . 1 $: 551 we do not relay
    rewrite: ruleset 194 returns: $# error $@ 5 . 7 . 1 $: 551 we do not relay
    551 <[EMAIL PROTECTED]>... we do not relay

As you can see at the top of the traces, the tokenizing produces a different
result.  Note that both traces are done with _exactly_ the same sendmail.cf,
ip_allow and name_allow files, except for the changed delivery mode option
in sendmail.cf.

Is this a known problem?  Is it fixed already?

Regards,

--
--    Jos Vos <[EMAIL PROTECTED]>
--    X/OS Experts in Open Systems BV   |   Phone: +31 20 6938364
--    Amsterdam, The Netherlands        |     Fax: +31 20 6948204


-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
         To unsubscribe: mail [EMAIL PROTECTED] with 
                       "unsubscribe" as the Subject.

Reply via email to