meta data for this page
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| linux:spamassassin [2020/04/23 15:24] – ↷ Page name changed from linux:spamassasin to linux:spamassassin niziak | linux:spamassassin [2024/08/11 19:41] (current) – niziak | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Spamassassin ====== | ====== Spamassassin ====== | ||
| + | |||
| + | From v4 Debian' | ||
| + | * spamd | ||
| + | so ''/ | ||
| + | |||
| + | ===== missing perl modules ===== | ||
| + | |||
| + | Check if some modules are missing: | ||
| + | <code bash> | ||
| + | spamassassin -D --lint 2>&1 | grep -i failed | ||
| + | </ | ||
| + | |||
| + | <code bash> | ||
| + | sudo apt-get install libencode-detect-perl libnet-libidn-perl \ | ||
| + | libemail-address-xs-perl libmail-dkim-perl libmail-spf-perl \ | ||
| + | libio-socket-ip-perl | ||
| + | </ | ||
| + |      | ||
| + | <code bash> | ||
| + | sudo apt install libdigest-sha-perl libnet-libidn2-perl libmaxmind-db-reader-perl libmaxmind-db-reader-xs-perl | ||
| + | </ | ||
| + | |||
| + | <code bash> | ||
| + | sudo cpan install IP:: | ||
| + | </ | ||
| + | |||
| + | ===== register at DNSWL ===== | ||
| + | |||
| + | Register legitimate SMTP server at: [[https:// | ||
| + | |||
| ====== Issues ====== | ====== Issues ====== | ||
| Line 31: | Line 61: | ||
| </ | </ | ||
| + | ====== bayes: tok_get_all: | ||
| + | <code bash> | ||
| + | spamassassin -D --lint 2>&1 | grep bayes | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | Aug 11 18: | ||
| + | Aug 11 18: | ||
| + | Aug 11 18: | ||
| + | </ | ||
| + | |||
| + | It was running on very old system, upgraded multiple times. Nowadays other encodings are added to MySQL database. | ||
| + | |||
| + | <code sql> | ||
| + | ALTER DATABASE sa CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; | ||
| + | </ | ||
| + | Not possible to convert bayes databases to new charset: | ||
| + | <code sql> | ||
| + | ALTER TABLE awl CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; | ||
| + | </ | ||
| + | |||
| + | Recreate tables with new character set (prebiously set for '' | ||
| + |   * backup bayes '' | ||
| + |   * drop 5 '' | ||
| + |   * create it again from scheme: ''/ | ||
| + |   * '' | ||
| + | |||
| + | Another problem: | ||
| + |   * [[https:// | ||
| + |   * [[https:// | ||
| + |   * [[https:// | ||
| + | |||
| + | For me it was faster to train bayes again: | ||
| + | <code bash> | ||
| + | sa-learn --ham --progress ./hamdir | ||
| + | sa-learn --spam --progress ./spamdir | ||
| + | </ | ||