You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by ja...@wasielewski.slask.pl on 2004/05/16 23:27:04 UTC
Whitelisting some addresses from blacklisted domain
Hello Spam Eaters!
I want to whitelist some e-mail addresses from already blacklisted domain.
My preferences are stored in sql database, because we use spamd and spamc
from global /etc/procmailrc (SA 2.63, mysql).
I'm setting:
blacklist_from *@domain.com
unblacklist_from friend1@domain.com
unblacklist_from friend2@domain.com
but I'm still getting USER_IN_BLACKLIST in my friends' e-mails :(
What I'm doing wrong?
--
JW
Re: Whitelisting some addresses from blacklisted domain
Posted by ja...@wasielewski.slask.pl.
At 16/05/2004 18:17:41 -0700, Evan Platt wrote:
> There is no unblacklist_from.
Yes, there is actually. Look into the docs:
"unblacklist_from add@ress.com
Used to override a default blacklist_from entry, so for example a distribution blacklist_from can be overridden in a local.cf file, or an individual user can override a blacklist_from entry in their own user_prefs file."
Now I understand that I can only unblacklist _distribution_ blacklists,
not my own. It is a pitty. Maybe someday this will be possible as easy
as I would think it should.
> I'd do a meta test myself.. something like this:
>
> header __FROM_BADDOMAIN From =~ /baddomain\.com/i
> header __FROM_BADDOMAIN_GOOD_ADDR From =~
> /good_address\@baddomain\.com/i
> meta FROM_BADDOMAIN_NOT_GOOD (__FROM_BADDOMAIN &&
> ! __FROM_BADDOMAIN_GOOD_ADDR)
>
> score FROM_BADDOMAIN_NOT_GOOD 20.0
>
> Note: the above was written off the top of my head and might contain typos,
> syntax errors, etc and isn't tested. But, it gets the idea across.
I'll try it but I don't like it.
Will this work execly as (un)blacklist_from? I mean is this above will check
Resent-From, Envelope-Sender, Resent-Sender, X-Envelope-From, and From
headers? I don't think so :(
The rules can get pretty complicated if I want to have my whitelisting
working right...
--
JW
Re: Whitelisting some addresses from blacklisted domain
Posted by jdow <jd...@earthlink.net>.
From: "jdow" <jd...@earthlink.net>
> From: "Evan Platt" <ev...@espphotography.com>
>
> > At 02:27 PM 5/16/2004, you wrote:
> > >I want to whitelist some e-mail addresses from already blacklisted
> domain.
> > >My preferences are stored in sql database, because we use spamd and
spamc
> > >from global /etc/procmailrc (SA 2.63, mysql).
> > >I'm setting:
> > >
> > >blacklist_from *@domain.com
> > >unblacklist_from friend1@domain.com
> > >unblacklist_from friend2@domain.com
> > >
> > >but I'm still getting USER_IN_BLACKLIST in my friends' e-mails :(
> > >What I'm doing wrong?
> >
> > There is no unblacklist_from.
> >
> > From a previous post:
> >
> > (Original Poster: Matt Kettler):
> >
> >
> > I'd do a meta test myself.. something like this:
> >
> > header __FROM_BADDOMAIN From =~ /baddomain\.com/i
> > header __FROM_BADDOMAIN_GOOD_ADDR From =~
> /good_address\@baddomain\.com/i
> > meta FROM_BADDOMAIN_NOT_GOOD (__FROM_BADDOMAIN &&
> > ! __FROM_BADDOMAIN_GOOD_ADDR)
> >
> > score FROM_BADDOMAIN_NOT_GOOD 20.0
> >
> > Note: the above was written off the top of my head and might contain
> typos,
> > syntax errors, etc and isn't tested. But, it gets the idea across.
>
> Dryly I contribute this grep capture:
> "/usr/lib/perl5/site_perl/5.6.1/Mail/SpamAssassin/Conf.pm:
unblacklist_from
> joe@example.com fred@example.com"
>
> I thought there was no unbliacklist_from also. But a search seems to belie
> that presumption.
Addendum, it appears this is only for default blacklist items.
{^_^}
Re: Whitelisting some addresses from blacklisted domain
Posted by jdow <jd...@earthlink.net>.
From: "Evan Platt" <ev...@espphotography.com>
> At 02:27 PM 5/16/2004, you wrote:
> >I want to whitelist some e-mail addresses from already blacklisted
domain.
> >My preferences are stored in sql database, because we use spamd and spamc
> >from global /etc/procmailrc (SA 2.63, mysql).
> >I'm setting:
> >
> >blacklist_from *@domain.com
> >unblacklist_from friend1@domain.com
> >unblacklist_from friend2@domain.com
> >
> >but I'm still getting USER_IN_BLACKLIST in my friends' e-mails :(
> >What I'm doing wrong?
>
> There is no unblacklist_from.
>
> From a previous post:
>
> (Original Poster: Matt Kettler):
>
>
> I'd do a meta test myself.. something like this:
>
> header __FROM_BADDOMAIN From =~ /baddomain\.com/i
> header __FROM_BADDOMAIN_GOOD_ADDR From =~
/good_address\@baddomain\.com/i
> meta FROM_BADDOMAIN_NOT_GOOD (__FROM_BADDOMAIN &&
> ! __FROM_BADDOMAIN_GOOD_ADDR)
>
> score FROM_BADDOMAIN_NOT_GOOD 20.0
>
> Note: the above was written off the top of my head and might contain
typos,
> syntax errors, etc and isn't tested. But, it gets the idea across.
Dryly I contribute this grep capture:
"/usr/lib/perl5/site_perl/5.6.1/Mail/SpamAssassin/Conf.pm: unblacklist_from
joe@example.com fred@example.com"
I thought there was no unbliacklist_from also. But a search seems to belie
that presumption.
{^,-}
Re: Whitelisting some addresses from blacklisted domain
Posted by Evan Platt <ev...@espphotography.com>.
At 02:27 PM 5/16/2004, you wrote:
>I want to whitelist some e-mail addresses from already blacklisted domain.
>My preferences are stored in sql database, because we use spamd and spamc
>from global /etc/procmailrc (SA 2.63, mysql).
>I'm setting:
>
>blacklist_from *@domain.com
>unblacklist_from friend1@domain.com
>unblacklist_from friend2@domain.com
>
>but I'm still getting USER_IN_BLACKLIST in my friends' e-mails :(
>What I'm doing wrong?
There is no unblacklist_from.
From a previous post:
(Original Poster: Matt Kettler):
I'd do a meta test myself.. something like this:
header __FROM_BADDOMAIN From =~ /baddomain\.com/i
header __FROM_BADDOMAIN_GOOD_ADDR From =~ /good_address\@baddomain\.com/i
meta FROM_BADDOMAIN_NOT_GOOD (__FROM_BADDOMAIN &&
! __FROM_BADDOMAIN_GOOD_ADDR)
score FROM_BADDOMAIN_NOT_GOOD 20.0
Note: the above was written off the top of my head and might contain typos,
syntax errors, etc and isn't tested. But, it gets the idea across.