You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Luis Hernán Otegui <lu...@gmail.com> on 2007/03/06 15:40:13 UTC

How to whitelist mail lists?

Hi, several of my users have mail lists (such as Yahoo ones, or some other,
at elsevier.com, or other scientific publications).
I've been searching the web, trying to find a way to whitelist the messages
from these lists. Could anyone point me some directions?


Thanks in advance,


Luis
-- 
-------------------------------------------------
GNU-GPL: "May The Source Be With You...
-------------------------------------------------

Re: How to whitelist mail lists?

Posted by Mark Martinec <Ma...@ijs.si>.
Luis,

> OK, but the point is that I run SA trough AMaViS, so procmail recipes
> aren't the answer. Thanks a lot, I suppose I should create some type of
> whitelist in AMaViS to avoid SA.

As this mailing list use VERP sender envelope addresses,
you need to use regexp-based lookup table in amavisd.conf, e.g.:

@score_sender_maps = (
  # these score points are added to SA score (score boost)

  new_RE(  # regexp-type lookup table

    # positive points lean towards blacklisting
    [qr'^(bulkmail|offers|cheapbenefits|earnmoney|foryou)@'i          => 5.0],
    [qr'^(greatcasino|investments|lose_weight_today|market\.alert)@'i => 5.0],
    [qr'^(money2you|MyGreenCard|new\.tld\.registry|opt-out|opt-in)@'i => 5.0],

    # negative points lean towards whitelisting
    [qr'^\d{6,}@mms\.mobitel\.si$'i                  => -4],
    [qr'^users-return-.*@spamassassin\.apache\.org$' => -4],
  ),

);

Re: How to whitelist mail lists?

Posted by Vivek Khera <vi...@khera.org>.
On Mar 6, 2007, at 10:37 AM, Luis Hernán Otegui wrote:

> OK, but the point is that I run SA trough AMaViS, so procmail  
> recipes aren't the answer. Thanks a lot, I suppose I should create  
> some type of whitelist in AMaViS to avoid SA.

amavisd-new has several whitelisting options.   first you have to  
identify the common part, such as the sender address or sender  
domain, etc., then use that for creating your whitelist.


Re: How to whitelist mail lists?

Posted by Marco Maske <ma...@netcologne.de>.
Luis Hernán Otegui wrote:
> OK, but the point is that I run SA trough AMaViS, so procmail recipes
> aren't the answer. Thanks a lot, I suppose I should create some type of
> whitelist in AMaViS to avoid SA.

Yes an example for bypass THIS list with amavisd,
I've postet here in Feb. 06
search the archive: http://wiki.apache.org/spamassassin/MailingLists

Subject
Re: Bypass SA Was: DO NOT Filter this list!!!

Ciao Marco!

Re: How to whitelist mail lists?

Posted by Luis Hernán Otegui <lu...@gmail.com>.
OK, but the point is that I run SA trough AMaViS, so procmail recipes aren't
the answer. Thanks a lot, I suppose I should create some type of whitelist
in AMaViS to avoid SA.


Luis

2007/3/6, David Goldsmith <dg...@sans.org>:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Luis Hernán Otegui wrote:
> > Hi, several of my users have mail lists (such as Yahoo ones, or some
> > other, at elsevier.com <http://elsevier.com>, or other scientific
> > publications).
> > I've been searching the web, trying to find a way to whitelist the
> > messages from these lists. Could anyone point me some directions?
> >
> >
> > Thanks in advance,
> >
> >
> > Luis
> > --
>
> Look for the "List-Id" field such as:
>
> List-Id: <Dans_CCCemails.yahoogroups.com>
>
> As an example for if your call SA via procmail:
>
> :0fw
> * ! ^List-Id: <Dans_CCCemails.yahoogroups.com>
> * ! ^X-Spam-Checker-Version:.*iceman11
> | /usr/bin/spamc -d <IP ADDRESS> -u spamass
>
>
> If the message does not contain that list id, and it hasn't already been
> scanned by our SA, then passit to SA.
>
> David Goldsmith
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.3rc2 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFF7YKd417vU8/9QfkRAlo6AJ9/M97mO6H/KhViklaqprojwmHJVQCgmFKa
> dVBuzm38UjcbidJbVLhUos0=
> =ilI/
> -----END PGP SIGNATURE-----
>



-- 
-------------------------------------------------
GNU-GPL: "May The Source Be With You...
-------------------------------------------------

Re: How to whitelist mail lists?

Posted by David Goldsmith <dg...@sans.org>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Luis Hernán Otegui wrote:
> Hi, several of my users have mail lists (such as Yahoo ones, or some
> other, at elsevier.com <http://elsevier.com>, or other scientific
> publications).
> I've been searching the web, trying to find a way to whitelist the
> messages from these lists. Could anyone point me some directions?
> 
> 
> Thanks in advance,
> 
> 
> Luis
> -- 

Look for the "List-Id" field such as:

List-Id: <Dans_CCCemails.yahoogroups.com>

As an example for if your call SA via procmail:

:0fw
* ! ^List-Id: <Dans_CCCemails.yahoogroups.com>
* ! ^X-Spam-Checker-Version:.*iceman11
| /usr/bin/spamc -d <IP ADDRESS> -u spamass


If the message does not contain that list id, and it hasn't already been
scanned by our SA, then passit to SA.

David Goldsmith
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3rc2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF7YKd417vU8/9QfkRAlo6AJ9/M97mO6H/KhViklaqprojwmHJVQCgmFKa
dVBuzm38UjcbidJbVLhUos0=
=ilI/
-----END PGP SIGNATURE-----