~~~~~~~~~~~~~~~
Ovo je dodatak na standardni SpamAssassin paket. Glavne razlike su u
-mogucnosti upravljanja postavkama (Bayes klasifikator, Razor2, DCC, Pyzor)
+mogucnosti upravljanja postavkama (Bayes klasifikator, Razor2, Pyzor)
u local.cf te potpuniji local.cf predlozak sa postavkama spremnim za
produkciju. Takodjer, koriste se popularna SARE pravila kroz sa-update
mehanizam (GPG potpisani updateovi), a i sam SpamAssassin se automatski
Takodjer se standardno ne omogucuje ni SpamAssassin daemon odnosno spamd,
buduci da je na instalacijama sa Amavis posluziteljem suvisan.
- -- Dinko Korunic <kreator@carnet.hr> Fri, 14 Sep 2007 15:23:37 +0200
+ -- Dinko Korunic <kreator@carnet.hr> Tue, 19 Aug 2008 16:55:47 +0200
+spamassassin-cn (2:3.1.7-4) stable; urgency=low
+
+ * izbacivanje DCC s obzirom da vise nije u Debian repozitorijima zbog
+ sigurnosnih problema i licencnih problema
+
+ -- Dinko Korunic <kreator@carnet.hr> Tue, 19 Aug 2008 16:42:11 +0200
+
spamassassin-cn (2:3.1.7-3) stable; urgency=low
* gasenje ok_languages, bayes_use_chi2_combining i pyzor opcija koje se u
fi
fi
- # check if user had use_dcc already
- db_get spamassassin-cn/usedcc || true
- if [ -z "$RET" ]; then
- usedcc=$(grep -e '^use_dcc ' $confdir/local.cf | cut -d ' ' -f2-)
- if [ "x$usedcc" = "x1" ]; then
- db_set spamassassin-cn/usedcc "true"
- elif [ "x$usedcc" = "x0" ]; then
- db_set spamassassin-cn/usedcc "false"
- fi
- fi
-
# check if user had use_razor2 already
db_get spamassassin-cn/userazor2 || true
if [ -z "$RET" ]; then
db_input medium spamassassin-cn/usebayes || true
db_input medium spamassassin-cn/userazor2 || true
-db_input medium spamassassin-cn/usedcc || true
db_input high spamassassin-cn/runservice || true
db_go || true
Package: spamassassin-cn
Architecture: all
-Depends: spamassassin (>= 3.1.7-1~bpo.1), razor (>= 2.670-1sarge2), libnet-dns-perl, carnet-tools-cn (>= 2.0), dcc-client (>= 1.2.74-2), gnupg (>= 1.4.1-1.sarge7), libmail-dkim-perl (>= 0.19-3), libcrypt-openssl-bignum-perl (>= 0.03-1), ${misc:Depends}
+Depends: spamassassin (>= 3.1.7-1~bpo.1), razor (>= 2.670-1sarge2), libnet-dns-perl, carnet-tools-cn (>= 2.0), gnupg (>= 1.4.1-1.sarge7), libmail-dkim-perl (>= 0.19-3), libcrypt-openssl-bignum-perl (>= 0.03-1), ${misc:Depends}
Recommends: amavis
Description: Perl-based spam filter using text analysis
SpamAssassin is a very powerful and fully configurable spam filter
db_get spamassassin-cn/userazor2 || true
use_razor2="$RET"
-db_get spamassassin-cn/usedcc || true
-use_dcc="$RET"
-
db_get spamassassin-cn/runservice || true
run_service="$RET"
rm -f $confdir/local.cf.$$.$$
fi
- # set bayes/razor2/dcc in local.cf.$$
- for i in bayes razor2 dcc; do
+ # set bayes/razor2 in local.cf.$$
+ for i in bayes razor2; do
use_name="use_$i"
use_value=$(eval echo \$$use_name)
if [ "$use_value" = "true" ]; then
rm -f $confdir/local.cf.$$
fi
-# enable requested plugins in SA
+# enable/disable plugins in SA
list=$(find /etc/spamassassin -type f -name 'v*.pre')
for i in $list; do
- # enable DCC if requested
- if [ "$use_dcc" = "true" ]; then
- cp -f $i $i.$$
- plugin="loadplugin Mail::SpamAssassin::Plugin::DCC"
- cp_check_and_sed "^.*#.*$plugin.*$" \
- "s/^.*#.*$plugin.*$/$plugin/g" $i.$$ || true
- if ! cmp -s $i.$$ $i; then
- mv -f $i.$$ $i
- fi
- rm -f $i.$$
- fi
-
# enable DKIM
cp -f $i $i.$$
plugin="loadplugin Mail::SpamAssassin::Plugin::DKIM"
mv -f $i.$$ $i
fi
rm -f $i.$$
+
+ # disable DCC
+ cp -f $i $i.$$
+ plugin="loadplugin Mail::SpamAssassin::Plugin::DCC"
+ cp_check_and_sed "^$plugin.*$" \
+ "s/^$plugin.*$/#$plugin/g" $i.$$ || true
+ if ! cmp -s $i.$$ $i; then
+ mv -f $i.$$ $i
+ fi
+ rm -f $i.$$
done
# check and replace /etc/default/spamasassin if needed
# for details, see http://www.debian.org/doc/debian-policy/ or
# the debian-policy package
+# Debconf
+. /usr/share/debconf/confmodule
+
case "$1" in
purge)
# continue below
# remove spamd run directory
dpkg-statoverride --remove /var/run/spamd >/dev/null 2>&1 || true
+# purge debconf database we don't need
+db_purge
+
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
klasificiranju i filtriranju spama. Receno predstavlja
komplementarnu tehniku standardnom statickom filtriranju.
-Template: spamassassin-cn/usedcc
-Type: boolean
-Default: true
-Description: Zelite li koristiti DCC:
- SpamAssassin moze koristiti DCC (Distributed Checksum
- Clearinghouse) mrezu. Recena je distribuirana mreza namijenjena
- klasificiranju i filtriranju spama. Receno predstavlja
- komplementarnu tehniku standardnom statickom filtriranju.
-
Template: spamassassin-cn/runservice
Type: boolean
Default: false
razor_timeout 10
# Distributed Checksum Clearinghouse (DCC) options
-use_dcc 1
-dcc_timeout 10
-dcc_timeout 10
-dcc_body_max 999999
-dcc_fuz1_max 999999
-dcc_fuz2_max 999999
+use_dcc 0
# Auto-whitelist to track long-term average score for sender
# AWL should be cleaned from time to time with check_whitelist program