|
List Info
Thread: bypass spam check for domain
|
|
| bypass spam check for domain |

|
2008-03-27 09:39:52 |
Hi to all, i got a questiong regarding the spam_lovars_maps
static maps,
i undestand that if i want to bypass all spam check for a
particular
recipient/domains, i just need to list them in spam_lovers_maps,
however, i found this tutorial
h
ttp://www200.pair.com/mecham/spam/bypassing.html#9
where it says that you have to do it with
bypass_spam_checks_maps
and additional to add them to spam_lovars_maps
i just want to do the right thing.
What is the "official", recommended way to do
this?
regards,
------------------------------------------------------------
-------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216
239;13503038;w?http://sf.net/marketplace
_______________________________________________
AMaViS-user mailing list
AMaViS-user lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amav
is.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/ho
wto/
|
|
| Re: bypass spam check for domain |

|
2008-03-27 10:11:41 |
On 3/27/08, Miguel wrote:
> Hi to all, i got a questiong regarding the
spam_lovars_maps static maps,
> i undestand that if i want to bypass all spam check for
a particular
> recipient/domains, i just need to list them in spam_lovers_maps,
> however, i found this tutorial
>
> h
ttp://www200.pair.com/mecham/spam/bypassing.html#9
>
> where it says that you have to do it with
>
> bypass_spam_checks_maps
>
> and additional to add them to spam_lovars_maps
>
> i just want to do the right thing.
> What is the "official", recommended way to do
this?
>
> regards,
>
With spam_lovers_maps, the message is still processed by
spamassassin
and a score is assigned, but the message is passed
regardless of the
score. With bypass_spam_checks_maps, the message is usually not
processed by spamassassin, so this saves processing power.
However,
when the message is addressed to multiple recipients, and
the
recipients disagree whether scanning should occur or not,
the message
will be scanned. There is the possibility in this case that
the
recipient(s) in the bypass_spam_checks_maps will not get a
copy of
the message. Possibly the best way to set this up so you
save as much
processing as possible, but still ensure that spam is
passed, is to
include the recipients in both maps.
One other thing to consider however. For any messages that
are not
scanned by spamassassin, those messages will not included in
the
messages that are learned by Bayes (assuming autolearn is
active). So,
you decide.
Another thing to consider. Depending on your default
kill_level and
your quarantine setup, spam that is passed to recipients in
spam_lovers_maps may also have a copy of the message
sent to
quarantine. Assuming one is using default static lookups,
consider
also creating a spam_kill_level_maps where the spam lovers
are given
a high kill_level (which prevents quarantine), e.g.:
spam_kill_level_maps = (
{ 'user1 example.org' => 9999,
'.example.com' => 9999 }, # those in spam_lovers_maps
$sa_kill_level_deflt, # catchall default - everyone not
in spam_lovers_maps
);
--
Gary V
------------------------------------------------------------
-------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216
239;13503038;w?http://sf.net/marketplace
_______________________________________________
AMaViS-user mailing list
AMaViS-user lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amav
is.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/ho
wto/
|
|
| Re: bypass spam check for domain |

|
2008-03-27 10:39:52 |
Gary V escribió:
> On 3/27/08, Miguel wrote:
>
>> Hi to all, i got a questiong regarding the
spam_lovars_maps static maps,
>> i undestand that if i want to bypass all spam check
for a particular
>> recipient/domains, i just need to list them in spam_lovers_maps,
>> however, i found this tutorial
>>
>> h
ttp://www200.pair.com/mecham/spam/bypassing.html#9
>>
>> where it says that you have to do it with
>>
>> bypass_spam_checks_maps
>>
>> and additional to add them to spam_lovars_maps
>>
>> i just want to do the right thing.
>> What is the "official", recommended way
to do this?
>>
>> regards,
>>
>>
>
> With spam_lovers_maps, the message is still processed by
spamassassin
> and a score is assigned, but the message is passed
regardless of the
> score. With bypass_spam_checks_maps, the message is
usually not
> processed by spamassassin, so this saves processing
power. However,
> when the message is addressed to multiple recipients,
and the
> recipients disagree whether scanning should occur or
not, the message
> will be scanned.
What is that mean?, that i have example.com for bypass spam
check and i
also have another setting somewhere for xx example.com to do spam checks?
> There is the possibility in this case that the
> recipient(s) in the bypass_spam_checks_maps
will not get a copy of
> the message. Possibly the best way to set this up so
you save as much
> processing as possible, but still ensure that spam is
passed, is to
> include the recipients in both maps.
>
> One other thing to consider however. For any messages
that are not
> scanned by spamassassin, those messages will not
included in the
> messages that are learned by Bayes (assuming autolearn
is active). So,
> you decide.
>
> Another thing to consider. Depending on your default
kill_level and
> your quarantine setup, spam that is passed to
recipients in
> spam_lovers_maps may also have a copy of the message
sent to
> quarantine. Assuming one is using default static
lookups, consider
> also creating a spam_kill_level_maps where the spam lovers
are given
> a high kill_level (which prevents quarantine), e.g.:
>
> spam_kill_level_maps = (
> { 'user1 example.org' => 9999,
> '.example.com' => 9999 }, # those in spam_lovers_maps
> $sa_kill_level_deflt, # catchall default - everyone
not in spam_lovers_maps
> );
>
>
Ok, i do not quarantine any messages ($QUARANTINEDIR =
undef), so i
guess the spam_kill_lelvel_maps is not necesary.
All is clearer now,
Thanks Gary .
------------------------------------------------------------
-------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216
239;13503038;w?http://sf.net/marketplace
_______________________________________________
AMaViS-user mailing list
AMaViS-user lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amav
is.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/ho
wto/
|
|
| Re: bypass spam check for domain |

|
2008-03-27 11:23:32 |
> > On 3/27/08, Miguel wrote:
> > With spam_lovers_maps, the message is still
processed by spamassassin
> > and a score is assigned, but the message is passed
regardless of the
> > score. With bypass_spam_checks_maps, the message is
usually not
> > processed by spamassassin, so this saves
processing power. However,
> > when the message is addressed to multiple
recipients, and the
> > recipients disagree whether scanning should occur
or not, the message
> > will be scanned.
>
> What is that mean?, that i have example.com for bypass spam
check and i
> also have another setting somewhere for xx example.com to do spam checks?
I'm not sure I understand your question. Here is an axample.
A message
is addressed to user example.com and user example.org (both of which
are domains you are responsible for).
bypass_spam_checks_maps = ( ["example.com"]
);
This message will still be scanned because user example.org is not
included in bypass_spam_checks_maps. user example.com is in the map,
but in this case this recipient may not receive a copy of
the message
(assuming it is spam). bypass_spam_checks_maps does not
guarantee
delivery of spam. To guarantee delivery of a message that
has been
scanned by spamassassin and subsequently marked as spam, you
want to
also include the recipient in spam_lovers_maps.
--
Gary V
------------------------------------------------------------
-------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216
239;13503038;w?http://sf.net/marketplace
_______________________________________________
AMaViS-user mailing list
AMaViS-user lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amav
is.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/ho
wto/
|
|
| Re: bypass spam check for domain |

|
2008-03-27 11:36:01 |
Gary V wrote:
> Another thing to consider. Depending on your default
kill_level and
> your quarantine setup, spam that is passed to
recipients in
> spam_lovers_maps may also have a copy of the message
sent to
> quarantine. Assuming one is using default static
lookups, consider
> also creating a spam_kill_level_maps where the spam lovers
are given
> a high kill_level (which prevents quarantine), e.g.:
Well, yes, high kill level does disable quarantine (because
spam level
never reaches a high kill level, so mail is never considered
spam and
quarantining does not apply), but it also makes spam_lovers
redundant,
as mail is never considered spam, so there is no need to
bother with
spam_lovers, mail will be delivered normally.
So setting kill level high to some recipients achieves both:
they will
receive mail (same as spam_lovers), and no spam quarantining
takes place
(same as disabling quarantine for these users).
Quarantining has its direct control too, so to turn off
quarantining
for spam lovers, spam_quarantine_to_maps can be set to
false (an empty
string or undef) for such recipients:
spam_quarantine_to_maps = (
[qw( !user1 example.com !user2 example.com !.example.net
)],
$spam_quarantine_to,
);
or:
spam_quarantine_to_maps = (
{'user1 example.com' => '',
'user2 example.com' => '',
'.example.net' => '',
'.' => $spam_quarantine_to,
}
);
But I admit it is awkward to automatically construct a
spam_quarantine_to_maps list if one already has a
nontrivial
list in spam_lovers_maps.
Mark
------------------------------------------------------------
-------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216
239;13503038;w?http://sf.net/marketplace
_______________________________________________
AMaViS-user mailing list
AMaViS-user lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amav
is.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/ho
wto/
|
|
| Re: bypass spam check for domain |

|
2008-03-27 11:58:15 |
On 3/27/08, Mark Martinec <Mark.Martinec+amavis ijs.si> wrote:
> Gary V wrote:
> > Another thing to consider. Depending on your
default kill_level and
> > your quarantine setup, spam that is passed to
recipients in
> > spam_lovers_maps may also have a copy of the message
sent to
> > quarantine. Assuming one is using default static
lookups, consider
> > also creating a spam_kill_level_maps where
the spam lovers are given
> > a high kill_level (which prevents quarantine),
e.g.:
>
> Well, yes, high kill level does disable quarantine
(because spam level
> never reaches a high kill level, so mail is never
considered spam and
> quarantining does not apply), but it also makes
spam_lovers redundant,
> as mail is never considered spam, so there is no need
to bother with
> spam_lovers, mail will be delivered normally.
>
> So setting kill level high to some recipients achieves
both: they will
> receive mail (same as spam_lovers), and no spam
quarantining takes place
> (same as disabling quarantine for these users).
But what if you have one recipient in a bypass_spam_checks_maps and
another that is not? Would you still not need to place the
recipient
in the bypass_spam_checks_maps in the spam_lovers_maps?
--
Gary V
------------------------------------------------------------
-------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216
239;13503038;w?http://sf.net/marketplace
_______________________________________________
AMaViS-user mailing list
AMaViS-user lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amav
is.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/ho
wto/
|
|
| Re: bypass spam check for domain |

|
2008-03-27 12:58:25 |
Gary,
> But what if you have one recipient in a bypass_spam_checks_maps and
> another that is not? Would you still not need to place
the recipient
> in the bypass_spam_checks_maps in the spam_lovers_maps?
bypass_spam_checks_maps is pretty much independent
from everything else.
If at least one recipient requires spam checking (has bypass
at false),
then spam checking is performed. Or in other words, if all
recipients
have bypass at true, spam checking need not be performed
(but the result
may still be available, e.g. when cached).
What happens next depends on whether mail is considered spam
(above kill level
for this recipient), or not. If it is not spam, it is
delivered normally
and not quarantined. If it is spam, it gets quarantined
unless quarantining
is disabled, and it is blocked, unless recipient is a spam
lover.
As you can see, if mail is not considered spam (e.g. when
mail is clean
or recipient has a high kill level, same thing), the spam_lovers_maps is
irrelevant.
See first couple of items under:
http://www.ijs.si/software/amavisd/amavisd-new-docs.html
Mark
------------------------------------------------------------
-------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216
239;13503038;w?http://sf.net/marketplace
_______________________________________________
AMaViS-user mailing list
AMaViS-user lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amav
is.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/ho
wto/
|
|
| Re: bypass spam check for domain |

|
2008-03-27 15:12:40 |
On 3/27/08, Mark Martinec wrote:
> Gary,
>
> > But what if you have one recipient in a bypass_spam_checks_maps and
> > another that is not? Would you still not need to
place the recipient
> > in the bypass_spam_checks_maps in the spam_lovers_maps?
>
> bypass_spam_checks_maps is pretty much independent
from everything else.
> If at least one recipient requires spam checking (has
bypass at false),
> then spam checking is performed. Or in other words, if
all recipients
> have bypass at true, spam checking need not be
performed (but the result
> may still be available, e.g. when cached).
>
> What happens next depends on whether mail is considered
spam (above kill level
> for this recipient), or not. If it is not spam, it is
delivered normally
> and not quarantined. If it is spam, it gets quarantined
unless quarantining
> is disabled, and it is blocked, unless recipient is a
spam lover.
>
> As you can see, if mail is not considered spam (e.g.
when mail is clean
> or recipient has a high kill level, same thing), the
spam_lovers_maps is
> irrelevant.
>
> See first couple of items under:
> http://www.ijs.si/software/amavisd/amavisd-new-docs.html
>
> Mark
>
I see. Oops, for some reason I must have casually assumed
that because mail
is tagged as spam at tag2_level, this alone might be
sufficient to short circuit
delivery of a message to a recipient in bypass_spam_checks_maps. Now I
imagine this is actually a result of $final_destiny being
set to
anything other than
D_PASS. Thus, if kill_level is beyond any possible spam
score, the action in
$final_destiny never takes place. All spam is delivered.
--
Gary V
------------------------------------------------------------
-------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216
239;13503038;w?http://sf.net/marketplace
_______________________________________________
AMaViS-user mailing list
AMaViS-user lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amav
is.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/ho
wto/
|
|
| Re: bypass spam check for domain |

|
2008-03-28 07:12:51 |
Gary,
> I see. Oops, for some reason I must have casually
assumed that because mail
> is tagged as spam at tag2_level, this alone might be
sufficient to short
> circuit delivery of a message to a recipient in bypass_spam_checks_maps.
Back in versions before amavisd-new-20030314 there was no
tag2_level,
all spam handling was triggered at kill level. Due to
popular demand,
part of this spam handling associated mainly with header
editing/tagging
got its own tag2_level control, although it is still common
that
tag2_level is equal to kill_level.
The kill_level is still the main control, scores above
kill_level
indicate mail is officially spam (CC_SPAM), spam
quarantining,
spam blocking and spam admin notifications take place for
spam.
$final_spam_destiny and spam_lovers_maps are
consulted when
deciding whether spam should be blocked or not.
Scores below kill_level indicates mail is not spam. To make
it
slightly more flexible, it is possible to start labeling
header
(e.g. Subject, X-Spam-Flag) at a lower level than
kill_level,
i.e. at tag2_level. Also appending address extensions takes
place
at tag2_level. The region between tag2_level and kill_level
is
labeled as a CC_SPAMMY contents category. As far as
quarantining
and blocking of mail is concerned, such mail is still
clean.
> Thus, if kill_level is beyond any possible spam score,
the action
> in $final_destiny never takes place. All spam is
delivered.
Yes.
The bypass_spam_checks_maps is mostly outside of all this
story.
It is the first control. It only tells if SpamAssassin
should
be called or not. If it isn't called, it is the same as if
it were
called but returned a low spam score. That is all there is
to bypass_spam_checks_maps. Covers your eyes and you'll
never
recognize spam in mail.
Mark
------------------------------------------------------------
-------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216
239;13503038;w?http://sf.net/marketplace
_______________________________________________
AMaViS-user mailing list
AMaViS-user lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amav
is.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/ho
wto/
|
|
[1-9]
|
|