Koozali.org: home of the SME Server

Spamassassin and ClamAV HowTo's for dummies

Jesper Knudsen

Spamassassin and ClamAV HowTo's for dummies
« on: December 02, 2003, 01:37:57 PM »
All,

Based on all the great ideas and written howto's from many people (no one mentioned - none forgotten) I have created an install script for both Spamassasin  and Clam Antivirus for both SME 5.6 and 6.0 (Beta3 will all updates).

I have tested the scripts on a couple of new installs and they are working nicely for me - however if they cause any problems in your system then please let me know so I can get it corrected.

The Howto's and scripts can be found at:

http://sme.swerts-knudsen.dk

There is also a new script for DShield for those of you who would like to battle port scanners.

Good luck,
Jesper Knudsen

Brad Jennings

Re: Spamassassin and ClamAV HowTo's for dummies
« Reply #1 on: December 02, 2003, 10:27:18 PM »
I used your Spamassassin script just yesterday and it worked great on my 5.6 box.  Thanks

Thor Anthrax

Re: Spamassassin and ClamAV HowTo's for dummies
« Reply #2 on: December 02, 2003, 10:56:15 PM »
Install does work perfectly, only fetchmail mailboxes are not scanned at all :S How to solve that?

Jesper Knudsen

Re: Spamassassin and ClamAV HowTo's for dummies
« Reply #3 on: December 03, 2003, 11:47:31 AM »
Thor,

Which SME version are you running?

Rgds,
Jesper

Thor Anthrax

Re: Spamassassin and ClamAV HowTo's for dummies
« Reply #4 on: December 03, 2003, 01:29:25 PM »
Sorry, I forgot to mention it...

I'm using 6.0b3

Mark

Re: Spamassassin and ClamAV HowTo's for dummies
« Reply #5 on: December 04, 2003, 11:26:25 AM »
I get this after installing. (BTW 'cab' is the first user under admin)
Activating procmail for user 'cab'.
Can't open directory /etc/e-smith/events/user-modprocmail
An error occurred while updating account 'cab'.
Installation of SpamAssassin complete.

The panel shows up in the server manager, but nothing in the e-mail headers indicating it was scanned by SA.

I'm using 6b3 with the latest updates.

Jesper Knudsen

Re: Spamassassin and ClamAV HowTo's for dummies
« Reply #6 on: December 04, 2003, 09:20:19 PM »
Mar,

Can you manually get to the mentioned directory? Did you login as root when you installed these scripts?

Did you upgrade a 5.5/5.6 to 6.0 ?

Did you have the User-Panel installed before this script tried ?

A ton of questions but we will figure out what went wrong. :-)

Rgds,
Jesper

Mark

Re: Spamassassin and ClamAV HowTo's for dummies
« Reply #7 on: December 04, 2003, 10:49:41 PM »
Can you manually get to the mentioned directory?
The directory doesn't exist.

Did you login as root when you installed these scripts?
Yes

Did you upgrade a 5.5/5.6 to 6.0 ?
No fresh install of 6b3

Did you have the User-Panel installed before this script tried ?
It was at one time but I had un-installed it prior to using your script. SA wasn't working then either.

I also have clamAV installed and working from dungog.

christopher

Re: Spamassassin and ClamAV HowTo's for dummies
« Reply #8 on: December 05, 2003, 04:27:47 AM »
Dude...your scripts were impeccable!!  Great Job....

nef kho

error upon installation of clamav
« Reply #9 on: December 06, 2003, 02:52:12 AM »
i got this error upon installation of the script for clamav. my email doest work now, i am running sme 5.6 update 5.

package amavis-ng-0.1.6.4-03dc is already installed
ERROR: LOGGER: Can't open file /var/log/clamav/freshclam.log to write.
ERROR: Problem with internal logger.
Starting clamd: ERROR: Problem with internal logger. Please check the permissions on the /var/clamav/log/clamd.log file.

thanks,

nef

nef kho

Re: Spamassassin and ClamAV HowTo's for dummies
« Reply #10 on: December 06, 2003, 05:08:28 AM »
hi,

i got the previous problem installed, dont know how, i just rpm -3 it and install it again, but i got new error when i try to qmailq output

[root@e-smith clam]# sudo ls -l /var/lib/clamav/clamd.sock
sudo: can't stat /etc/sudoers: No such file or directory

any idea, thanks

nef

Mark

Re: Spamassassin and ClamAV HowTo's for dummies
« Reply #11 on: December 07, 2003, 04:54:36 PM »
>Did you have the User-Panel
>installed before this script tried ?
Sorry, that was the wrong answer in my previous post. The correct answer would be _no_.

I think this is were the problem is because e-smith-userpanel-1.6.0-1.noarch.rpm was never installed.

In your script you have;
"This installation only supports SME 5.6 and 6.0 (beta 3 with updates)"

do the updates include these?
http://www.ibiblio.org/pub/linux/distributions/e-smith/dev/6.0dev/updates/6.0beta3/RPMS/

Jesper Knudsen

Re: Spamassassin and ClamAV HowTo's for dummies
« Reply #12 on: December 08, 2003, 03:37:42 PM »
All,

I have noticed a few changes to Razor and Pyzor than needs some correcting to work perfectly.

from http://sme.swerts-knudsen.dk

The Razor and Pyzor servers have changed since the RPMs used in this installation have been build so if you have run this script before December 8, 2003 you should get it updated. The razor_patch script from now on incorporated in the above sa_install script. Also there is a Razor patch available in order to get Razor to work flawlessly with SpamAssassin 2.60. This can be done with this simple script:

 

[root@e-smith]# wget http://sme.swerts-knudsen.dk/downloads/SpamAssassin/razor_patch.sh

[root@e-smith]# sh razor_patch.sh

NiGhTsPiRiT

Re: Spamassassin and ClamAV HowTo's for dummies
« Reply #13 on: December 08, 2003, 03:49:43 PM »
When I configured email to be forwarded for a user it is scanned by both spamassassin and amavis and deliverd locally instead of being forwarded.
Also, admin is not congured by your script.


But anything else on the scripts is just great! :)

dave

Re: Spamassassin and ClamAV HowTo's for dummies
« Reply #14 on: December 08, 2003, 07:17:57 PM »
Hi Jasper & thanks for the great scripts!
after installing your spamassassin script on my 6.0b3 box it works like a charm but all SPAMS are still in my inbox - a junkmail folder has been created but the spams are not sent there - is there anything I need to do to get the spams delivered into the junkmail folder?
dave.