procmail
[Top] [All Lists]

Re: Sendmail rules

2000-10-30 15:05:36
Collin Park <collin(_at_)cup(_dot_)hp(_dot_)com> writes:
...
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

The more robust solution would be to put the trailing in the rule and
then add "procmail" to class P:

CP procmail

That'll tell sendmail to treat all hostnames ending in ".procmail" as
'canonical' such that they'll get the trailing dot added.  That has
the additional benefit to eliminating the DNS lookup that's bound to
fail anyway.


<sigh>
I suppose this means I should update the manpage...


Philip Guenther

_______________________________________________
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>