MT6 dspam

From The Network People, Inc. - Wiki
Jump to navigation Jump to search
Mail Toaster 6
Start Installation
FreeBSD Upgrade
DNS Upgrade
MySQL Upgrade
ClamAV Upgrade
AVG Upgrade
SpamAssassin Upgrade
Rspamd Upgrade
dspam Upgrade
Vpopmail Upgrade
Haraka Upgrade
Haproxy Upgrade
webmail Upgrade
Monitor Upgrade
testing

NOTE

Dspam is not currently functional. Work remains to get it working. Skip this for now.


Install dspam

jailmanage dspam
pkg install mysql56-client dspam

configure dspam

cp /usr/local/etc/dspam.conf.sample /usr/local/etc/dspam.conf
sed -i .bak -e 's/^#ServerPID/ServerPID/' /usr/local/etc/dspam.conf
echo 'dspam_enable="YES"' >> /etc/rc.conf
service dspam restart

configure dspam to use MySQL

Note: replace the password with the one you noted during the MySQL install.

sed -i .bak -e 's/libpgsql_drv.so$/libmysql_drv.so/' /usr/local/etc/dspam.conf
tee -a /usr/local/etc/dspam.conf <<EO_MYSQL
MySQLServer             127.0.0.4
MySQLUser               dspam
MySQLPass               CHANGE.THIS
MySQLDb                 dspam
EO_MYSQL
service dspam restart



Other Information About dspam

dspam-devel install

The stable version of dspam is very old, so if you can get dspam-devel installed, it's recommended to do so:

cd /usr/ports/mail/dspam-devel && make install clean
cp /usr/local/etc/dspam.conf.sample /usr/local/etc/dspam.conf
sed -i .bak -e 's/^#ServerPID/ServerPID/' /usr/local/etc/dspam.conf
echo 'dspam-devel="YES"' >> /etc/rc.conf
service dspam-devel restart