Page 1 of 1

SPAM Assassin VMWare

Posted: 2010-01-08 14:40
by sheffters
Elo,

I've givn up trying to get spamassassin to work (probably my fault, but meh).

Found this http://www.vmware.com/appliances/directory/255 ... has anyone had an experiance with this / does it work? Seems an easy way to get spam and virus sorted if it does.

Cheers

S.

Re: SPAM Assassin VMWare

Posted: 2010-01-08 15:04
by ^DooM^
I wouldn't use that sheff.

Last Updated: 08/13/2006

Re: SPAM Assassin VMWare

Posted: 2010-01-08 16:59
by sheffters
ah :(

assumed it would autoupdate?

S.

Re: SPAM Assassin VMWare

Posted: 2010-01-09 00:11
by ^DooM^
No idea, try it, can't hurt :)

Re: SPAM Assassin VMWare

Posted: 2010-01-22 16:39
by DFitch
S,

I would suggest setting up Ubuntu Server on VMware, with Spamasassin/ClamAV along with bind for local DNS.
Install 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"
That should get you up and running a full SpamAssassin/ClamAV installation (thx. mbreitba)