Thanks again Matt,

So if I wanted multiple ISP's in the same rule can I do an OR operator or
can I just create multiple header rules with the same lable?

Example:

priv-edtnes56.telusplanet.net
priv-edtnes57.telusplanet.net
misav02.sasknet.sk.ca

header LOCAL_RCVD_TRUSTED_SMTP Received =~
/priv-?\.telusplanet\.net|?\.sasknet\.sk\.ca/i
score LOCAL_RCVD_TRUSTED_SMTP -10.0

or

header LOCAL_RCVD_TRUSTED_SMTP Received =~ /?\.sasknet\.sk\.ca/i
header LOCAL_RCVD_TRUSTED_SMTP Received =~ /priv-?\.telusplanet\.net/i
score LOCAL_RCVD_TRUSTED_SMTP -10.0

So the `.` is required before all pattern matches such as {0-20} and is the
`?` the wildcard operator?

Is there a FAQ on the format for writing rules?  Are these just regex?  It's
about time to buy a book on this.

Dan

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Matt
> Kettler
> Sent: Wednesday, October 01, 2003 9:31 PM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: RE: [SAtalk] Whitelist Issue
>
>
> At 09:26 AM 10/1/03 -0600, Dan Tappin wrote:
> >How would I whitelist a machine?
>
> AFAIK there's no normal whitelist support for that, but you could
> get that
> effect with a custom header rule.
>
> For example:
>
> header LOCAL_RCVD_PRIV_TELUSPLANET      Received
> =~  /priv-.{0,20}\.telusplanet\.net/i
> score LOCAL_RCVD_PRIV_TELUSPLANET -10.0
>
> note that the .{0,20} means "between zero and 20 of any
> character" and any
> .'s that you want to be treated literally need to have a \ in
> front of them.
>
> Be sure to spamassassin --lint any custom rules.
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Spamassassin-talk mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/spamassassin-talk



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to