This is a discussion on RE: [AMaViS-user] per_recip_blacklist_sender_lookup_tables and read_hash? within the Amavis User forums, part of the Anti-Spam and Anti-Virus Related Forums category; I'd like to do hard blacklisting. How do you reject / block the message from reaching the recipient. Now, it ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
I'd like to do hard blacklisting. How do you reject / block the message from
reaching the recipient. Now, it is just tagged as spam. Thanks, Nicklas B > Nicklas wrote: > > > Well they aren't, that's the catch. Any other ideas except > using sql > > lookups? > > If you have a lot of dynamic data, you really should go to > SQL. Any change to any static table will require you > stop/start (or reload) amavisd-new in order to see the > changes. Static tables are read into memory. > > As far as static tables go, at any rate you will need one > master blacklist file that contains all domains you wish to > set up, with each domain using their own blacklist file. > > One thing you could do is create a second configuration file > that would contain only the blacklist master list. You would > first place this code at the bottom of amavisd.conf (just > before the last line): > > # Want to execute additional configuration files from some directory? > { my($d) = '/etc/amavis/conf.d'; # do *.cf or *.conf files > in this directory > local(*D); opendir(D,$d) or die "Can't open dir $d: $!"; > my(@d) = sort grep {/\.(cf|conf)$/ && -f} map > {/^(.*)$/,"$d/$1"} readdir(D); > closedir(D) or die "Can't close $d: $!"; > for my $f (@d) { > printf("Reading config file %s\n", $f); $!=0; > if (defined(do $f)) {} > elsif ($@ ne '') { die "Error in $f: $@" } > elsif ($! != 0) { die "Error reading $f: $!" } > } > } > > and then create a second configuration file, > /etc/amavis/conf.d/blacklist.conf (for example) with the contents: > > use strict; > # blacklist configuration file > # /etc/amavis/conf.d/blacklist.conf > > $per_recip_blacklist_sender_lookup_tables = { > '.example.com' => read_hash("$MYHOME/example_blacklist"), > '.example2.com' => read_hash("$MYHOME/example2_blacklist"), > }; > > 1; # insure a defined return > > > Also, Google for "what is top posting" > > Gary V > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Power Architecture Resource Center: Free content, downloads, > discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl > _______________________________________________ > AMaViS-user mailing list > AMaViS-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/...fo/amavis-user > AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 > AMaViS-HowTos:http://www.amavis.org/howto/ > ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl _______________________________________________ AMaViS-user mailing list AMaViS-user@lists.sourceforge.net https://lists.sourceforge.net/lists/...fo/amavis-user AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 AMaViS-HowTos:http://www.amavis.org/howto/ |