tomclegg.net


Diary
Examples
    256-router
    adzap
    apache-double-reverse
    cacti-adodb-php4
    debian-quota
    diskonmodule
    dollarsperbyte
    dynip
    ezmlm-linux
    fbsdhabits
    freebsdclone
    macbook-quantal-sound
    maildirpop3d-awfulhak
    mandy
    md
    mrtg
    net-snmp
    nodefaultroute
    oracle9i
    oracle9i-bsd5
    oracle9i-client
    oracle9i-nat
    php-cgi
    php-commandline
    php-image
    php-kics
    php-mini_httpd
    pinouts
    pizzaperdollar
    plesk-symlink-php
    pxe
    qmail-linux
    qmail-qfilter
    racoon-sonicwall
    redundant-vpn
    rewriterule
    seahorse-workaround
    setting-locale-failed
    smalldog
    snmpv3-cacti
  >spamassassin<
    squid-tproxy
    supfile
    suse73
    svc-nmbd
    svc-smbd
    svc-smtpd
    switch-virtualbox-virsh
    toyotastereo
    vm
    vn-file
    wmp-invalid
    xcode-remote-install
    xen-eth0-renamed
    xen-monowall
    xen3-ubuntu-dapper
    zz-update-grub-fail
Hire Tom
Mostly Mozart
Patches
School
Scrapbook
Software
Telephones




colocation
comments
davidireland
edsgranola
faq
funsites
goodlooking
goodmovies
google-earth-saucy-amd64
houserules
liberating
resume
resume2
scratch
shopping
snacks
todo
university
warisbogus

Installing SpamAssassin
Posted July 6, 2006
cd /usr/ports/mail/p5-Mail-SpamAssassin
make install
# (turn on DomainKeys, SPF, etc.)
cd /usr/local/lib/perl5/site_perl/*/Mail/SpamAssassin/Plugin
(cd /tmp && fetch http://tomclegg.net/software/spamd-domainkeys.patch)
patch </tmp/spamd-domainkeys.patch || mv DomainKeys.pm.orig DomainKeys.pm

mkdir /var/qmail/.spamassassin
chown qmailq:qmail /var/qmail/.spamassassin

cd /var/service
mkdir spamd
cd spamd
cat <<EOF >run
#!/bin/sh
exec spamd -r /var/run/spamd/spamd.pid -s stderr -u qmailq 2>&1
EOF
mkdir log log/main
cat <<EOF >log/run
#!/bin/sh
exec multilog t ./main
EOF
chmod +x run log/run
chmod +t .

cd /service
ln -s /var/service/spamd

sleep 10
tai64nlocal < /var/service/spamd/log/main/current