Mailing List Archive

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 <spamalert@srcs.org>; 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
Re: Whitelisting local Users [ In reply to ]
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 -----
From: Isaac Ordonez
To: spamassassin-users@incubator.apache.org
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 <spamalert@srcs.org>; 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
Re: Whitelisting local Users [ In reply to ]
Hallo und guten Tag Danie,

danke für die Email, die Du am 05.02.2004 um 10:08 schriebst - you wrote:

> 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

and what must I do for the really IP? Or for localhost?
- header LOCAL_MAIL Received =~ /127\.0\.0\.0/ ??

--
Viele Grüße, best regards,
Jim Knuth
jk@jkart.de
-------------
Zufalls-Text
-------------
Wer davon überzeugt ist, das Ende der Dinge zu wissen,
die er gerade erst beginnt, ist entweder außerordentlich weise
oder ganz besonders töricht;
so oder so ist er aber gewiß ein unglücklicher Mensch,
denn er hat dem Wunder ein Messer ins Herz gestoßen.
(Der Drachenbeinthron - von Tad Williams)
-------------
dieser Text ist zufällig gewählt und hat nichts mit dem Empfänger der Mail zu tun.
-------------
Mail wurde auf Viren geprüft mit:
Virenscanner NOD32 Version 1.615 Update am 02.02.04
Re: Whitelisting local Users [ In reply to ]
What do the headers look like for such a mail?

>
> > 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
>
> and what must I do for the really IP? Or for localhost?
> - header LOCAL_MAIL Received =~ /127\.0\.0\.0/ ??
>
Re: Whitelisting local Users [ In reply to ]
Hallo und guten Tag Danie,

danke für die Email, die Du am 05.02.2004 um 17:01 schriebst - you wrote:

> What do the headers look like for such a mail?

You mean the received from?
This is: Received: from localhost (localhost [127.0.0.1])
I work with amavisd-new
--
Viele Grüße, best regards,
Jim Knuth
jk@jkart.de
-------------
Zufalls-Text
-------------
Fürchte den Bock von vorn, das Pferd von hinten und das Weib von allen Seiten.
(Anton Tschechow)
-------------
dieser Text ist zufällig gewählt und hat nichts mit dem Empfänger der Mail zu tun.
-------------
Mail wurde auf Viren geprüft mit:
Virenscanner NOD32 Version 1.615 Update am 02.02.04
Re: Whitelisting local Users [ In reply to ]
It looks like he has the same setup as I do. All mail my server sends
to it's self has 127.0.0.1 in it's headers. And we are both having the
same problems. Anyone seen anything like this?


Isaac Ordonez
Technology Support Specialist II
San Rafael City Schools
415.302.8114
On Feb 5, 2004, at 8:10 AM, Jim Knuth wrote:

> Hallo und guten Tag Danie,
>
> danke für die Email, die Du am 05.02.2004 um 17:01 schriebst - you
> wrote:
>
>> What do the headers look like for such a mail?
>
> You mean the received from?
> This is: Received: from localhost (localhost [127.0.0.1])
> I work with amavisd-new
> --
> Viele Grüße, best regards,
> Jim Knuth
> jk@jkart.de
> -------------
> Zufalls-Text
> -------------
> Fürchte den Bock von vorn, das Pferd von hinten und das Weib von allen
> Seiten.
> (Anton Tschechow)
> -------------
> dieser Text ist zufällig gewählt und hat nichts mit dem Empfänger der
> Mail zu tun.
> -------------
> Mail wurde auf Viren geprüft mit:
> Virenscanner NOD32 Version 1.615 Update am 02.02.04
>
>
Re: Whitelisting local Users [ In reply to ]
Yeah,

header LOCAL_MAIL Received =~ /127\.0\.0\.1/
or
header LOCAL_MAIL Received =~ /localhost/

would do the job then

Danie Marais

>
> You mean the received from?
> This is: Received: from localhost (localhost [127.0.0.1])
> I work with amavisd-new
> --
> Viele Grüße, best regards,
> Jim Knuth
> jk@jkart.de
> -------------
RE: Whitelisting local Users [ In reply to ]
How about?

trusted_networks 127.

whitelist_rcvd_from * localhost