This shows you the differences between two versions of the page.
spamassassinonubuntu [2007/12/12 22:31] 127.0.0.1 external edit |
spamassassinonubuntu [2020/02/13 22:55] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | |||
- | ====== Installation ====== | ||
- | < | ||
- | aptitude update | ||
- | aptitude install spamc spamassassin clamav-daemon clamav-freshclam pyzor razor libmail-dkim-perl | ||
- | </ | ||
- | Install DCC-client from source since the Debian package is old | ||
- | |||
- | < | ||
- | aptitude install build-essential | ||
- | |||
- | / | ||
- | |||
- | cd /usr/src | ||
- | wget -c http:// | ||
- | |||
- | tar xzf dcc.tar.Z | ||
- | cd dcc* | ||
- | |||
- | ./configure --with-uid=dcc --disable-server --disable-dccm | ||
- | make -j4 | ||
- | make install | ||
- | |||
- | sed -i ' | ||
- | </ | ||
- | Add to < | ||
- | |||
- | < | ||
- | / | ||
- | </ | ||
- | < | ||
- | |||
- | < | ||
- | ENABLED=1 | ||
- | OPTIONS=& | ||
- | NICE=& | ||
- | CRON=1 | ||
- | </ | ||
- | < | ||
- | |||
- | < | ||
- | #@daily / | ||
- | @daily mv -f / | ||
- | @daily mv -f / | ||
- | </ | ||
- | < | ||
- | |||
- | < | ||
- | required_hits 4.0 | ||
- | # | ||
- | rewrite_header Subject *****SPAM***** | ||
- | # | ||
- | |||
- | add_header all DCC _DCCB_: _DCCR_ | ||
- | add_header all Pyzor _PYZOR_ | ||
- | add_header all Report _REPORT_ | ||
- | ok_locales en fr | ||
- | |||
- | bayes_learn_to_journal 1 | ||
- | pyzor_path / | ||
- | dcc_home /var/dcc | ||
- | </ | ||
- | Configure razor/ | ||
- | |||
- | < | ||
- | ln -s / | ||
- | sudo -u debian-spamd -s -H | ||
- | cd | ||
- | cdcc info | ||
- | pyzor discover | ||
- | razor-admin -create | ||
- | razor-admin -register | ||
- | </ | ||
- | Check spamassassin for configuration errors: | ||
- | |||
- | < | ||
- | sudo -u debian-spamd -H spamassassin --lint | ||
- | </ | ||