Cleanfeed einrichten

Cleanfeed: http://www.mixmin.net/cleanfeed/

Cleanfeed von 2007: http://www.mixmin.net/cleanfeed/cleanfeed.tar.gz

Cleanfeed mit wget von http://www.bofh.it/~md/cleanfeed/cleanfeed-20020501.tgz holen.

Entweder in das "news/bin/filter-Verzeichnis" entpacken oder das entpackte Verzeichnis dorthin verschieben

mv cleanfeed-20020501 /usr/lib/news/bin/filter/cleanfeed
cd /usr/lib/news/bin/filter
mv filter_innd.pl filter_innd.pl.ORIG
ln -s cleanfeed/cleanfeed filter_innd.pl

Und noch das Configdir in cleanfeed anpassen:

/usr/lib/news/bin/filter $ vi cleanfeed/cleanfeed

---

$config_dir = '/usr/lib/news/bin/filter/cleanfeed';

Weiterhin bitte noch folgende Zeile (296) anpassen:

-$free = 'free(?!dom|bsd|ppp)';
+$free = 'free(?!dom|bsd|ppp|xp)';

Dies resultiert aus einer per default unerwünschten Ausfilterung von Postings von und mit FreeXP. Stefan 'Steve' Tell schreibt hierzu in opennews.admin:

ich weise auf <9qTuyQMfCHB@my.freexp.de> (dcpu) hin und bitte darum, die
Änderung an der Cleanfeed-Konfiguration durchzuführen. Ich habe den
Verlust des Originalpostings persönlich bemerkt.

Nach Neustart des inn läuft jetzt cleanfeed als Filter.

Um die Konfiguration von cleanfeed anzupassen legt man im gleichen Verzeichnis eine Datei cleanfeed.local an (z.B.: touch cleanfeed.local) Achtung: owner muss auf news:news gesetzt sein. Am besten man erinnert sicher immer wieder daran, dass alle Arbeiten im Zusammenhang mit INN immer als user news ausgeführt werden sollten. Dann gibt es später erheblich weniger Probleme.

Und hier noch eine Beispiel cleanfeed.local (Achtung: 'active_file' Eintrag anpassen!):


sub local_config {

### !! WARNING !! YOU CAN & MUST SET ONLY ONE OF THE FOLLOWING:
$inn = 1; # set $inn = 1 for INN
$highwind = 0; # set $highwind = 1 for Cyclone/Typhoon/Breeze
$nntprelay = 0; # set $nntprelay = 1 for NNTPRelay

%config_local = (

# Settings in %config_local will OVERRIDE any defaults
# in Cleanfeed.
#
# Any setting here will blindly replace one with the
# same name in %config. No sanity checks are done.
# Be careful!
#
# On/off settings should be set to 1 for on, 0 for off

### Setting aggressive to 0 disables all content-based filters
'aggressive' => 1,

### Active file
'active_file' => '/var/spool/news/in.coming/act_config/active',

#########################################################
### MD5-based EMP filter settings

### Do the MD5 checks? You probably shouldn't turn this off,
### but if you're running Hippo also you might want to anyway,
### and far be it from me to stop you.
'do_md5' => 1,

### Start rejecting after the MD5 filter sees this many copies
'md5maxmultiposts' => 5,

### Keep history of this many MD5 article checksums
'MD5History' => 11000,

### Time to keep MD5 EMP ids with no hits, in hours
'MD5maxlife' => 24,

### Use "fuzzy" MD5 check by "imploding" message bodies
### before hashing?
'fuzzy_md5' => 0,

### Don't do fuzzy-check if the body is more than this many lines
'fuzzy_max_length' => 700,

### Should the MD5 filter skip articles with References?
### Possibly a major performance difference.
'md5_skips_followups' => 1,

### Maximum number of MD5 EMP ids to ever keep
'MD5HistSize' => 7000,

#########################################################
### Header-based EMP filter settings

### Do the Posting-Host/Lines EMP checks? You really want to
### keep this on.
'do_phl' => 1,

### Do the From/Subject/Lines EMP checks? This is the one with
### the lowest hit rate these days.
'do_fsl' => 1,

### Start rejecting after the header filter sees this many copies.
### More prone to false positives than MD5 so set this higher
'maxmultiposts' => 20,

### Keep history of this many header-EMP checks
'ArticleHistory' => 7000,

### Time to keep EMP ids with no hits, in hours
'EMPmaxlife' => 24,

### Maximum number of EMP ids to ever keep
'EMPHistSize' => 1500,

#########################################################
### Excessive Crosspost settings

### Maximum number of newsgroups allowed in a crosspost
### Articles are rejected if posted such that followups
### will be to more than this many groups
'maxgroups' => 6,

### Restrict crossposts in low_xpost_groups (below) to this many
'low_xpost_maxgroups' => 6,

#########################################################
### Misplaced Binaries Filter

### Block binaries in non-binary newsgroups?
'block_binaries' => 1,

### Max number of binary-encoded lines before considering
### an article a "binary"
'max_encoded_lines' => 15,

### Allow binaries in all moderated groups?
### (Requires an active file)
'binaries_in_mod_groups' => 0,

#########################################################
### HTML, etc.

### Block MIME-encapsulated HTML?
### (not regular HTML or multipart/alternative)
'block_mime_html' => 1,
### Block HTML and multipart/alternative?
'block_html' => 0,

#########################################################
### Cancel Message Filtering

### Block cancels of already-rejected articles?
'block_late_cancels' => 1,

### Time to keep rejected message-ids for cancel rejection
### in hours
'MIDmaxlife' => 1,

#########################################################
### Other filters you may want to shut off for some reason

### Do the scoring filter?
'do_scoring_filter' => 1,

### Do the message-id filter on NNTP CHECK command (INN only)?
'do_mid_filter' => 0,

### Do the spam-bot-signature checks? Leave this on. Really.
'do_bot_checks' => 1,

### Do the excessive Supersedes filter?
'do_supersedes_filter' => 1,

### Apply bad_cancel_paths to Supersedes also?
'check_supersedes_path' => 1,

### Drop all sendsys, senduuname, and version control messages?
'drop_useless_controls' => 1,

### Drop all ihave and sendme control messages?
'drop_ihave_sendme' => 1,
### Drop any control message also containing a Supersedes header?
'drop_control_with_supersedes' => 1,

#########################################################
### Hash-Trimming

### Trim hashes every N cycles through the filter
'trimcycles' => 500,

### Don't bother trimming hashes until they're this big
'EMPstarttrimming' => 500,

#########################################################
### Logging

### Verbose rejection reasons in news.notice/logfile?
'verbose' => 1,

### Set the following to log the message ID's
### of all articles processed.
### Doesn't work for INN (uses news.notice instead).
'logfile' => undef,
'reportfile' => undef,

### Should the above log, if used, log accepts as well as rejects?
'log_accepts' => 1,

### Rotate the log (if used) at this size
'max_log_size' => 10000000,

### Crude stats for tuning purposes (see documentation)
'statfile' => undef,

#########################################################
### Timing Information
### Generate timing information?
'timer_info' => 1,

### Interval over which to average timing information,
### in seconds.
'timer_interval' => 300,

#########################################################
### Debugging

### Batch files for debugging written to this directory
'debug_batch_directory' => undef,

### Batch files will be rotated when they exceed this size
'debug_batch_size' => 100000,

);

%config_append = (

# Used to append to the end of the default regexps.
#
# Settings here will be added to the defaults, with a | between
# the default string and the one provided here.
#
# See the default settings in the Cleanfeed code.
#
# Allowed in this section:

### binaries allowed if groups match
'bin_allowed' => 'delphi-gems.support.attachments|^mustangpeak.attachments',

### reject crossposts if any groups match
# 'poison_groups' => undef,

### HTML allowed if groups match (only if block_html is on)
# 'html_allowed' => undef,

### md5 EMP check not done if groups match
'md5exclude' => "\.(jobs|job|employment|classified|classifieds|forsale|marketplace)",

### no checks done if groups match
# 'allexclude' => undef,

### restrict crossposts in these groups to low_xpost_maxgroups
# 'low_xpost_groups' => undef,

### used to build domain names for URL matching
'badguys' => 'wildchild|ilovelez|sexjunky|nymphette|stobblehouse|hard-core'.
'|latexfetish|harddicks|\w+\.mnet1|pictureview|lasersex|sexypussy'.
'|lick|orgasmic|malebytes|southcorp|mansclub|inet-images|pornschool'.
'|hotsexnow|bmc-engineering|nastygirlz|marys-place|ucla\.dorms|savetrees'.
'|(?:\w+\.)sexzilla|netzilla|jalapeno|orchidvideos|blowme|totallyfreesex'.
'|sexplosion|unitedadultsites|rsi-net|cathouse|forbiddenphotos'.
'|amateur-xposure|teencity|snmworld|spck|fuck|anal|xxx|ukswingers'.
'|icl|uncc|hyperbooks|sexandpussy|fuckmenow|dalounge|eurosluts'.
'|pornoemporium|cuntlick|vianews|knotwork|sex-e-world|pornopeople'.
'|teenmasturbation|monkeyspanker|babelicks|ostomy|traders-update'.
'|nasty|xnasty|hot\.pornofetish|topnotchadult|transgenderweb|sasha2'.
'|xs4all|world-gaming|totalpussy|valleyofsex|sexy1234|thebestxxx'.
'|sex4younow|pluckit|hardcorezone|sexymail2|teenvoyeurism|smellslikefish'.
'|jagworld|ultimatexxx|domxxx|fetishscat|xxxlinks|redhousemedia'.
'|freepink|yiws|xxx-citing|magicus|bsi-service|teenpussy4free|ddacsex'.
'|adulttheatre|web-dream|misako3a|archivedpix|sexdevil|necrobabes'.
'|foxfiles\.inter|anni|thebestxxx\.home\.ml|bigsexyland|wwwcumshots'.
'|sexpussyanal|hotcollegesex|tomasino|uninets|arcticera|slutomatic'.
'|landofvenus|sexyflorida|pussymuncher|midnightpassion|adulttheater'.
'|websextv|adultdigital|toilettarts|heavyhangers|lustybbws|nicebeaver'.
'|alternativeconnections|freerawsex|greatwebsites|real-sex|lisnet|freesex4u'.
'|freesexpalace|freehardcore|crystalv|purehardcore|storm|anal-lover'.
'|adultteens|cumsee|cumseeme|adultxxxfest|free4adults|arrakis|interbbs'.
'|vixenvideo|thecyberpimps|pussycity|centre-europe|adult-sex-world'.
'|lilbluemoon|romsnlaser|porn-station\.holowww|slickpages|stena|hyperion'.
'|sex4younow|pluckit|hardcorezone|sexymail2|teenvoyeurism|smellslikefish'.
'|jagworld|ultimatexxx|domxxx|fetishscat|xxxlinks|redhousemedia'.
'|freepink|yiws|xxx-citing|magicus|bsi-service|teenpussy4free|ddacsex'.
'|adulttheatre|web-dream|misako3a|archivedpix|sexdevil|necrobabes'.
'|foxfiles\.inter|anni|thebestxxx\.home\.ml|bigsexyland|wwwcumshots'.
'|sexpussyanal|hotcollegesex|tomasino|uninets|arcticera|slutomatic'.
'|landofvenus|sexyflorida|pussymuncher|midnightpassion|adulttheater'.
'|websextv|adultdigital|toilettarts|heavyhangers|lustybbws|nicebeaver'.
'|alternativeconnections|freerawsex|greatwebsites|real-sex|lisnet|freesex4u'.
'|freesexpalace|freehardcore|crystalv|purehardcore|storm|anal-lover'.
'|adultteens|cumsee|cumseeme|adultxxxfest|free4adults|arrakis|interbbs'.
'|vixenvideo|thecyberpimps|pussycity|centre-europe|adult-sex-world'.
'|lilbluemoon|romsnlaser|porn-station\.holowww|slickpages|stena|hyperion'.
'|aecl',

### matched against domain names in URLs
# 'baddomainpat' => undef,

### regexps to exempt from NNTP-Posting-Host EMP filter
# 'exempt' => undef,

### regexps to exempt from excessive supersedes filter
# 'supersedes_exempt' => undef,

### Reject cancels (and possibly supersedes) with these path elements
# 'bad_cancel_paths' => undef,

### refuse articles with these in the message-id (INN only)
# 'refuse_messageids' => undef,

);

}

1;

Nicht definiert