procmail
[Top] [All Lists]

Re: Sendmail rules

2000-10-30 14:32:14
"Carlos Perez Gonzalez" wrote:
I have no problem with TABs in my rules. Outlook Express have turned them
all into spaces.

Argh.

You're right about the dot after some.where. I have tested the rules and
they work as you say, but the rule:
__________________________________________________
R$*<@$*.procmail.>$*        $1<@$2>$3     Already filtered, map back
__________________________________________________
does not work in the way it should. Sendmail returns this when I make the
test.

3,0 charlie(_at_)hl(_dot_)minaz(_dot_)cu
ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
Enter <ruleset> <address>
rewrite: ruleset   3   input: charlie @ hl . minaz . cu
rewrite: ruleset  96   input: charlie < @ hl . minaz . cu >
rewrite: ruleset  96 returns: charlie < @ hl . minaz . cu . >

Ruleset 96 added a '.' above.

rewrite: ruleset   3 returns: charlie < @ hl . minaz . cu . >
rewrite: ruleset   0   input: charlie < @ hl . minaz . cu . >
rewrite: ruleset   0 returns: $# procmail $@ / etc / procmailrcs / antivirus
. rc
3,0 charlie(_at_)hl(_dot_)minaz(_dot_)cu(_dot_)procmail
rewrite: ruleset   3   input: charlie @ hl . minaz . cu . procmail
rewrite: ruleset  96   input: charlie < @ hl . minaz . cu . procmail >
rewrite: ruleset  96 returns: charlie < @ hl . minaz . cu . procmail >

Ruleset 96 did not add a '.' here.  Why not?  
  *  *  *

I just found out why.  Because there is no such domain.  Inside our
firewall we have wildcard MX servers, which made it look like the rule 
should be 

   R$*<@$*.procmail.>$*        $1<@$2>$3     Already filtered, map back

But really it should not have a '.' after procmail, in other words:

   R$*<@$*.procmail>$*        $1<@$2>$3     Already filtered, map back

(I gave you wrong TABs, but you already know how to fix it.)

...
My rules are on the top of ruleset 0. I don't know why the rule to map back
is not hit.

That's why... because I gave you wrong information.  sorry about that.
In other words, this rule:

# S0
# R$*<@some.where.>$*
# $#procmail $@/etc/procmailrcs/some.rc 
$:$1(_at_)some(_dot_)where(_dot_)procmail$2

was correct in that mail which has a valid domain will get a '.'
appended to it, so the mail will be handled by procmail.  But this
rule: 

# 
# R$*<@$*.procmail.>$*
# $1<@$2>$3 Already filtered, map back

will NOT work in a "normal" environment because some.where.procmail
isn't a valid domain.  Instead it should be a

# R$*<@$*.procmail>$*
# $1<@$2>$3 Already filtered, map back

hth,
-- 
Neither I nor my employer will accept any liability for any problems
or consequential loss caused by relying on this information.  Sorry.
Collin Park                         Not a statement of my employer.

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>