SPAM Assassin VMWare

Forum for things that doesn't really have anything to do with hMailServer. Such as php.ini, beer, etc etc.
Post Reply
User avatar
sheffters
Senior user
Senior user
Posts: 453
Joined: 2009-07-01 20:46
Contact:

SPAM Assassin VMWare

Post by sheffters » 2010-01-08 14:40

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.

^DooM^
Site Admin
Posts: 13861
Joined: 2005-07-29 16:18
Location: UK

Re: SPAM Assassin VMWare

Post by ^DooM^ » 2010-01-08 15:04

I wouldn't use that sheff.

Last Updated: 08/13/2006
If at first you don't succeed, bomb disposal probably isn't for you! ヅ

User avatar
sheffters
Senior user
Senior user
Posts: 453
Joined: 2009-07-01 20:46
Contact:

Re: SPAM Assassin VMWare

Post by sheffters » 2010-01-08 16:59

ah :(

assumed it would autoupdate?

S.

^DooM^
Site Admin
Posts: 13861
Joined: 2005-07-29 16:18
Location: UK

Re: SPAM Assassin VMWare

Post by ^DooM^ » 2010-01-09 00:11

No idea, try it, can't hurt :)
If at first you don't succeed, bomb disposal probably isn't for you! ヅ

User avatar
DFitch
Senior user
Senior user
Posts: 258
Joined: 2006-09-16 20:40

Re: SPAM Assassin VMWare

Post by DFitch » 2010-01-22 16:39

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)
hMailServer 5.3.3: External MySql
Win2k3 Server | eWall 4.0 Anti-Spam Anti-Virus SMTP Proxy {http://sssolutions.net/}
SpamAssassin 3.31 - ClamAV on backend Ubuntu Server 10.04(VMware)

Post Reply