This worked well for me.  My users are all in the ip range 192.168.20.xxx:
 
header LOCAL_MAIL Received =~ /192\.168\.20\./
score LOCAL_MAIL -50
describe LOCAL_MAIL Mail is from someone on the LAN
Danie Marais
----- Original Message -----
Sent: Thursday, February 05, 2004 10:42 AM
Subject: Whitelisting local Users

Hello,

I'm pulling my hair out trying to get this. I want to add a rule for local users to have a score of -50 I've read the FAQ on the wiki but it won't work at all. My system is:

OS X 10.3 Server Running Postfix, Amavisd and Spamassassin with clamav for virus. I've tried so many combinations to try and get it to work by adding lines into /etc/mail/spamassassin/local.cf with no avail. Here is an Example of what the headers look like:

Received: from mail.srcs.org ([unix socket]) by mail.srcs.org (Cyrus v2.1.13) with LMTP; Wed, 04 Feb 2004 21:05:19 -0800
Received: from localhost (localhost [127.0.0.1]) by mail.srcs.org (Postfix) with ESMTP id 77ABB115AA7 for <[EMAIL PROTECTED]>; Thu, 5 Feb 2004 05:05:18 +0000 (GMT)
Received: from lfrost (unknown [10.103.58.28]) by mail.srcs.org (Postfix) with SMTP id 788D0115A92; Wed, 4 Feb 2004 21:04:56 -0800 (PST)
Received: by localhost with Microsoft MAPI; Wed, 4 Feb 2004 21:05:46 -0800

I've even tried something as simple as:

header LOCAL_RCVD Received =~ /127\.0\.0\.1/
describe LOCAL_RCVD Received from a local machine
score LOCAL_RCVD -50

But no avail. As anyone can tell my skills at writing rules is very very minimal.

Thanks,

Isaac Ordonez
Technology Support Specialist II
San Rafael City Schools
415.302.8114

Reply via email to