Credit to DFITCH for this excellent write-up.
( I used HyperV rather than VMWare - HyperV is included in Windows 8.x and Windows 10 - And server versions)
nstall Ubuntu from CD
Follow all setup instructions
Add DNS Server
reboot
Log in with username/password you set up during installation
"sudo passwd"
change root password to whatever you want
"su root"
"apt-get install make"
"apt-get install spamassassin spamc"
"groupadd spamd"
"useradd -g spamd -s /bin/false -d /var/log/spamassassin spamd"
"mkdir /var/log/spamassassin"
"chown spamd:spamd /var/log/spamassassin"
"pico /etc/default/spamassassin"
Edit /etc/default/spamassassin so these options are set: (-A 0.0.0.0 should be the IP address of your mailserver)
--------------------------------------
ENABLED=1
SAHOME="/var/log/spamassassin/"
OPTIONS="--create-prefs --max-children 5 --username spamd --round robin -A 0.0.0.0 -i 0.0.0.0 -H ${SAHOME} -s
${SAHOME}spamd.log"
--------------------------------------------
"apt-get install clamav clamav-daemon"
"cpan"
go through initial CPAN setupcd /
cpan> "force install File::Scan::ClamAV"
get clamav.cf and clamav.pm from here and put them into /etc/mail/spamassassin : http://wiki.apache.org/spamassassin/ClamAVPlugin
Change the clamav.pm file -
"pico /etc/mail/spamassassin/clamav.pm"
# our $CLAMD_SOCK = 3310; # for TCP-based usage
our $CLAMD_SOCK = "/var/run/clamd.basic/clamd.sock"; # change me
to
our $CLAMD_SOCK = 3310; # for TCP-based usage
#our $CLAMD_SOCK = "/var/run/clamd.basic/clamd.sock"; # change me
"pico /etc/clamav/clamd.conf"
edit /etc/clamav/clamd.conf - add line "TCPSocket 3310" without quotes
apt-get install ssh
reboot system
test
Change IP address to static if you like - replace IP addresses with your IP's - we recommend putting your SA box behind a pfsense firewall and using the built-in load balancer to gain redundancy. If you want to leave it dynamic though, you can do that.
"pico /etc/network/interfaces"
iface eth0 inet static
address 192.168.1.100
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.254
Change DNS resolver to 127.0.0.1 to use local DNS for lookups
"pico /etc/resolv.conf"