Javier,

> Hi there i would like to know the correct syntax to blacklist some
> domains that are always spamming. I ´ve got a hard blacklist file and
> i´ve been trying different ways for example lets say the domain for the
> person who sends spam is [EMAIL PROTECTED], and the address changes but for
> the domain, sometimes he ses [EMAIL PROTECTED]  i´ve tried blacklisting
> him like [EMAIL PROTECTED] and [EMAIL PROTECTED] .spam.you and mails from the 
> domain
> spam.you are still delievered without the ***SPAM*** tag, i don´t care
> the spam level, i would like to always have spam.you mail tagged as
> spam. What am i doing wrong.

It's .spam.you (one entry per line), as pointed out by mouss,
assuming your file is loaded as a hash-type lookup table, e.g.

@blacklist_sender_maps = ( read_hash("$MYHOME/etc/blacklist.txt") );

Note that black- (and white-) -listing traditionally work on
envelope sender address only, which is not necessarily the same
as an author address (in From header field). Starting with
version amavisd-new-2.6.0 this has changed. From release notes:

- white and blacklisting now takes into account both the SMTP envelope
  sender address, as well as the author address from a header section
  (address(es) in a 'From:' header field). Note that whitelisting
  based only on a sender-specified address is mostly useless nowadays.
  For a reliable whitelisting see @author_to_policy_bank_maps below,
  as well as a set of whitelisting possibilities in SpamAssassin (based
  on DKIM, SPF, or on Received header fields);

Your other choices is to blacklist using various mechanisms of
SpamAssassin (file local.cf), see Mail::SpamAssassin::Conf man page.

> And another thing, is there anyway to blacklist an email  but using
> header info as a trigger? Mails with ***UNCHECKED*** are bypassing\
> the spam tags. So i would like to blacklist all mails that have
> ***UNCHECKED*** on the header. How can i do this.

  $final_destiny_by_ccat{+CC_UNCHECKED} = D_DISCARD;
or:
  $final_destiny_by_ccat{+CC_UNCHECKED} = D_BOUNCE;


Mark

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
AMaViS-user mailing list
[email protected] 
https://lists.sourceforge.net/lists/listinfo/amavis-user 
 AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 
 AMaViS-HowTos:http://www.amavis.org/howto/ 

Reply via email to