FreeBSD(Rpi3)のメールサーバーにspamassasinを追加する

  • 投稿日:
  • by
  • カテゴリ:

まずは対象をpkg searchする

root@fbsd2:~ # pkg search spamass
claws-mail-spamassassin-3.17.5 SpamAssassin plugin for Claws Mail
spamass-iXhash-1.5.5_3 Plugin for SpamAssassin supporting iXhash
spamass-milter-0.4.0_4 Sendmail Milter (mail filter) plugin for SpamAssassin
spamass-rules-20190101 Custom rulesets for SpamAssassin
spamassassin-3.4.4 Highly efficient mail filter for identifying spam
spamassassin-dqs-1.1.0 Real-Time DNSBL's that catch a bunch of additional spam

対象はspamassassin-3.4.4とのことなので、pkg install する。

root@fbsd2:~ # pkg install spamassassin-3.4.4

インストール後の注意書き

(1)opensslの関係

If you prefer to do this manually, replace the following symlinks with
either an empty file or your site-local certificate bundle.

* /etc/ssl/cert.pem
* /usr/local/etc/ssl/cert.pem
* /usr/local/openssl/cert.pem
=====
Message from spamassassin-3.4.4:

(2)/usr/local/etc/mail/spamassassin/init.preの編集とか、/etc/rc.confの書き換えなど。

--
You should complete the following post-installation tasks:

1) Read /usr/local/share/doc/spamassassin/INSTALL
and /usr/local/share/doc/spamassassin/UPGRADE
BEFORE enabling SpamAssassin for important changes

2) Edit the configuration in /usr/local/etc/mail/spamassassin,
in particular /usr/local/etc/mail/spamassassin/init.pre
You may get lots of annoying (but harmless) error messages
if you skip this step.

3) To run spamd, add the following to /etc/rc.conf:
spamd_enable="YES"

4) If this is a new installation, you should run sa-update
and sa-compile. If this isn't a new installation, you
should probably run those commands on a regular basis
anyway.

5) Install mail/spamass-rules if you want some third-party
spam-catching rulesets

SECURITY NOTE:
By default, spamd runs as root (the AS_ROOT option). If you wish
to change this, add the following to /etc/rc.conf:

spamd_flags="-u spamd -H /var/spool/spamd"