[Technik] spamassassin Upgrade
Christian Gatzemeier
christian.gatzemeier at hostsharing.net
Tue Jul 11 17:26:02 CEST 2006
Am Dienstag, 11. Juli 2006 10:41 suserieb Michael Hoennig:
> /usr/local/bin/sa-upgrade-2to3
>
> Ich habe es bisher nur bei mir manuell gemacht. Das Skript ist UNGETESTET!
>
> Hat jemand noch eine Mailbox mit Spamassassin, die er dafür verbraten
> könnte?
Dabei ist mir aufgefallen das "/usr/bin/spamc -U /var/run/spamd" bei mir
Nachrichten von [global-anounce] als spam markiert hat. Da war z.B. auch die
Benachrichtigungen der Upgrade-Verschiebung wegen dem Backup-Platten Defekt
dabei. Vielleich ist da auch deswegen bei anderen nicht so viel angekommen.
Im skript hab ich zumindest einen typo gefunden:
@pomo:~$ /usr/local/bin/sa-upgrade-2to3
db_upgrade: .spamassassin/bayes_tok: No such file or directory
db_upgrade: DB->upgrade: .spamassassin/bayes_tok: No such file or directory
ERROR: db seems to be in ver3 format already
nach lokaler korrektur lief es wie folgt:
xyz00-user at pomo:~$ ./sa-upgrade-2to3
--17:06:00-- http://spamassassin.taint.org/devel/db-to-text.pl.txt
=> `-'
Resolving spamassassin.taint.org... 195.218.96.101
Connecting to spamassassin.taint.org[195.218.96.101]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5,288 [text/plain]
100%[====================================>] 5,288 --.--K/s
17:06:00 (95.79 KB/s) - `-' saved [5288/5288]
.spamassasin/bayes_toks: 0 keys copied
.spamassasin/bayes_toks: 0 future-keys reset
done.
.spamassasin/bayes_toks: 0 keys copied
done.
Cannot open bayes databases /home/pacs/xyz00/users/user/.spamassassin/bayes_*
R/O: tie failed: No such file or directory
^^^^^^^^^^^^^ Müsste da bei Verwendung von spamd was existieren?
debug: SpamAssassin version 3.0.3
debug: Score set 0 chosen.
debug: running in taint mode? yes
debug: Running in taint mode, removing unsafe env vars, and resetting PATH
debug: PATH included '/usr/local/bin', keeping.
debug: PATH included '/usr/bin', keeping.
debug: PATH included '/bin', keeping.
debug: PATH included '/usr/bin/X11', keeping.
debug: PATH included '/usr/games', keeping.
debug: Final PATH set to: /usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games
debug: using "/etc/spamassassin/init.pre" for site rules init.pre
debug: config: read file /etc/spamassassin/init.pre
debug: using "/usr/share/spamassassin" for default rules dir
debug: config: read file /usr/share/spamassassin/10_misc.cf
debug: config: read file /usr/share/spamassassin/20_anti_ratware.cf
debug: config: read file /usr/share/spamassassin/20_body_tests.cf
debug: config: read file /usr/share/spamassassin/20_compensate.cf
debug: config: read file /usr/share/spamassassin/20_dnsbl_tests.cf
debug: config: read file /usr/share/spamassassin/20_drugs.cf
debug: config: read file /usr/share/spamassassin/20_fake_helo_tests.cf
debug: config: read file /usr/share/spamassassin/20_head_tests.cf
debug: config: read file /usr/share/spamassassin/20_html_tests.cf
debug: config: read file /usr/share/spamassassin/20_meta_tests.cf
debug: config: read file /usr/share/spamassassin/20_phrases.cf
debug: config: read file /usr/share/spamassassin/20_porn.cf
debug: config: read file /usr/share/spamassassin/20_ratware.cf
debug: config: read file /usr/share/spamassassin/20_uri_tests.cf
debug: config: read file /usr/share/spamassassin/23_bayes.cf
debug: config: read file /usr/share/spamassassin/25_body_tests_es.cf
debug: config: read file /usr/share/spamassassin/25_hashcash.cf
debug: config: read file /usr/share/spamassassin/25_spf.cf
debug: config: read file /usr/share/spamassassin/25_uribl.cf
debug: config: read file /usr/share/spamassassin/30_text_de.cf
debug: config: read file /usr/share/spamassassin/30_text_fr.cf
debug: config: read file /usr/share/spamassassin/30_text_nl.cf
debug: config: read file /usr/share/spamassassin/30_text_pl.cf
debug: config: read file /usr/share/spamassassin/50_scores.cf
debug: config: read file /usr/share/spamassassin/60_whitelist.cf
debug: config: read file /usr/share/spamassassin/65_debian.cf
debug: using "/etc/spamassassin" for site rules dir
debug: config: read file /etc/spamassassin/local.cf
debug: using "/home/pacs/xyz00/users/user/.spamassassin/user_prefs" for user
prefs file
debug: config: read file /home/pacs/xyz00/users/user/.spamassassin/user_prefs
debug: plugin: loading Mail::SpamAssassin::Plugin::URIDNSBL from @INC
debug: plugin: registered Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x857fdbc)
debug: plugin: loading Mail::SpamAssassin::Plugin::Hashcash from @INC
debug: plugin: registered Mail::SpamAssassin::Plugin::Hashcash=HASH(0x8eb7e78)
debug: plugin: loading Mail::SpamAssassin::Plugin::SPF from @INC
debug: plugin: registered Mail::SpamAssassin::Plugin::SPF=HASH(0x8e8482c)
debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x857fdbc) implements
'parse_config'
debug: plugin: Mail::SpamAssassin::Plugin::Hashcash=HASH(0x8eb7e78) implements
'parse_config'
debug: bayes: 1960 tie-ing to DB file
R/O /home/pacs/xyz00/users/user/.spamassassin/bayes_toks
debug: bayes: 1960 tie-ing to DB file
R/O /home/pacs/xyz00/users/user/.spamassassin/bayes_seen
debug: bayes: found bayes db version 3
debug: bayes: Not available for scanning, only 32 spam(s) in Bayes DB < 200
debug: bayes: 1960 untie-ing
debug: bayes: 1960 untie-ing db_toks
debug: bayes: 1960 untie-ing db_seen
debug: Score set 0 chosen.
debug: Initialising learner
debug: Syncing Bayes and expiring old tokens...
debug: lock: 1960
created /home/pacs/xyz00/users/user/.spamassassin/bayes.lock.pomo.hostsharing.net.1960
debug: lock: 1960 trying to get lock
on /home/pacs/xyz00/users/user/.spamassassin/bayes with 0 retries
debug: lock: 1960 link
to /home/pacs/xyz00/users/user/.spamassassin/bayes.lock: link ok
debug: bayes: 1960 tie-ing to DB file
R/W /home/pacs/xyz00/users/user/.spamassassin/bayes_toks
debug: bayes: 1960 tie-ing to DB file
R/W /home/pacs/xyz00/users/user/.spamassassin/bayes_seen
debug: bayes: found bayes db version 3
debug: refresh: 1960
refresh /home/pacs/xyz00/users/user/.spamassassin/bayes.lock
debug: bayes: expiry check keep size, 0.75 * max: 112500
debug: bayes: token count: 34922, final goal reduction size: -77578
debug: bayes: reduction goal of -77578 is under 1,000 tokens. skipping
expire.
debug: Syncing complete.
debug: bayes: 1960 untie-ing
debug: bayes: 1960 untie-ing db_toks
debug: bayes: 1960 untie-ing db_seen
debug: bayes: files locked, now unlocking lock
debug: unlock: 1960
unlink /home/pacs/xyz00/users/user/.spamassassin/bayes.lock
Wenn alles ok ist:
rm -rf .spamassassin.bak
xyz00-user at pomo:~$
Gruß,
Christian
More information about the Technik
mailing list