Koozali.org: home of the SME Server

ASSP Anti-SPAM HOWTO

Gene Cooper

ASSP Anti-SPAM HOWTO
« on: June 18, 2003, 12:09:38 PM »
Hi all,

I've just written my first HOWTO based on various sources of info...including this list.  Thanks for your help!

Though I see much room for improvement, I hope this HOWTO will help others.

Please e-mail me with any comments, fixes, updates or rewrites.

PDF here: http://www.sonoracomm.com/sonoracomm/pdf/ASSP_HOWTO.pdf
or
RTF here: http://www.sonoracomm.com/sonoracomm/pdf/ASSP_HOWTO.rtf

G

Michiel

Re: ASSP Anti-SPAM HOWTO
« Reply #1 on: June 18, 2003, 12:49:18 PM »
Maybe you could also publish your howto on http://contribs.org. That way we keep all great SME contributions in a central place.

Michiel

Cyrus Bharda

Re: ASSP Anti-SPAM HOWTO
« Reply #2 on: June 18, 2003, 02:03:43 PM »
Gene,

Congratz on your first howto, looks great! You really should move it over to contribs.org, just so that more people can gain access to it :-)

Your howto is for 5.6, is there any reason it wont work on 5.5 ?

Cyrus Bharda

Gene Cooper

Re: ASSP Anti-SPAM HOWTO
« Reply #3 on: June 18, 2003, 09:30:35 PM »
Not that I know of...

G

Gene Cooper

Re: ASSP Anti-SPAM HOWTO
« Reply #4 on: June 18, 2003, 11:26:53 PM »
A couple of ommisions weere pointed out...and fixed.  New version posted.

G

Tom H.

Re: ASSP Anti-SPAM HOWTO
« Reply #5 on: June 19, 2003, 02:44:31 AM »
In your howto you say...
You will want to change:
Base (/usr/local/assp)
Spam Error (edit for a valid mail address)

I cannot find either of those options.  The only base is the Directory Base, but that will not accept /usr/local/assp

thx

Tom H.

Re: ASSP Anti-SPAM HOWTO
« Reply #6 on: June 19, 2003, 03:02:50 AM »
after applying changes etc and rebooting, I cannot log onto that page anymore?

admin connection from 192.168.1.66 rejected by allowAdminConnectionsFrom

crap...anyone can help with this?

gage

Re: ASSP Anti-SPAM HOWTO
« Reply #7 on: June 22, 2003, 01:02:19 AM »
I untared the package, and I get this error wile untaring  -Im starting to think that something was wrong with my tarball. Anyone have any ideas?


asspsmpl/notspam/2671

gzip: stdin: unexpected end of file
asspsmpl/notspam/2672
asspsmpl/notspam/2673
asspsmpl/notspam/2674
asspsmpl/notspam/2675
asspsmpl/notspam/2676
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now
[root@pompano root]#

Steve

Re: ASSP Anti-SPAM HOWTO
« Reply #8 on: June 22, 2003, 11:48:49 AM »
Sounds like you have accidently barred yourself from the admin webserver ?

I think you need to edit the cfg file or can you replace it with the working backup, failing that delete it and it will be recreated (you will of course loose your settings)

gage

Re: ASSP Anti-SPAM HOWTO
« Reply #9 on: June 22, 2003, 08:17:48 PM »
everything seems to be running correctly except -
when I go and try to build the SPAM database and update the DNS blackhole list
I get this error , damn, can someone pls. help?

Thanks for this great HOWTO!!!!

Length: unspecified [text/html]

    0K .....                                                  @  44.94 KB/s

11:18:29 (44.94 KB/s) - dns.bz2' saved [5568]

mv dns dns.sav
mv: cannot stat dns': No such file or directory
bunzip2 dns.bz2
bunzip2: dns.bz2 is not a bzip2 file.
perl dnsbl.pl dns
db=./dnsbl
Can't open dns: No such file or directory at dnsbl.pl line 11.
 records written


[root@pompano assp]# perl assp.pl
loading config -- base='.'
Jun-22-03 11:23:10 ASSP version 0.2.1 initializing
Jun-22-03 11:23:10 Warning: bayesian spam database is small or empty: './spamdb'
Jun-22-03 11:23:10 Warning: DNS blacklist database is small or empty: './dnsbl'
Jun-22-03 11:23:10 Warning: Whitelist is small or empty: './whitelist' (ignore if this is a new install)
Jun-22-03 11:23:10 Listening for mail connections at 25 and admin connections at 55555
Jun-22-03 11:23:10 Starting

Steve

Re: ASSP Anti-SPAM HOWTO
« Reply #10 on: June 22, 2003, 08:47:38 PM »
Yeah me too! today anyway. I assume the DNSBL file is not available, corrupt or the format has changed. Try another time.

The DNSBL only add a weighting and is not relied solely upon for determining spam, so dont worry.

The other warning about whitelist & spamdb will go away as soon as the files contain enough information

gage

Re: ASSP Anti-SPAM HOWTO
« Reply #11 on: June 22, 2003, 08:50:35 PM »
thanks steve. Im going to just observe in test mode for a couple of days.

Barry S

Re: ASSP Anti-SPAM HOWTO
« Reply #12 on: June 27, 2003, 06:52:38 PM »
Hi all,

It seems that the filename has changed for the DNS BlackList.

Update your updatednsbl.sh file to wget this file:

wget http://spfilter.openrbl.org/data/output/DEFAULT.octets.bz2 -O dns.bz2

It was originally looking for SPFILTER.octets.bz2

This should solve your problem.

-Barry

Gage

Re: ASSP Anti-SPAM HOWTO
« Reply #13 on: June 29, 2003, 10:22:22 AM »
Thanks Berry, that did helped alot. But Im still not able to update the updatednsbl.sh

What wiered is that I have seen the log say that the whitelist has been updated.



[root@pompano assp]# ./nightly.sh
updatednsbl.sh: dns.bz2: command not found

01:27:53 (145.60 KB/s) - dns.bz2' saved [634382/634382]

[root@pompano assp]# loading config -- base='.'
Jun-29-03 01:28:21 ASSP version 0.2.1 initializing
Jun-29-03 01:28:21 Warning: bayesian spam database is small or empty: './spamdb'
Jun-29-03 01:28:21 Warning: Whitelist is small or empty: './whitelist' (ignore if this is a new install)
Jun-29-03 01:28:21 Listening for mail connections at 25 and admin connections at 55555
Jun-29-03 01:28:21 Starting
updatednsbl.sh: dns.bz2: command not found
bash: updatednsbl.sh:: command not found
[root@pompano assp]#

Barry S

Re: ASSP Anti-SPAM HOWTO
« Reply #14 on: June 29, 2003, 07:54:44 PM »
Hey Gage:

I think that this is an issue related to the script (nightly.sh) that you are running. Most probably its not executing in the home directory of the updatednsbl.sh script (or there are path problems).

Two things:

(1)
As a test, can you 'cd' to the home directory of ASSP (ie. /usr/local/assp), and execute the following:

sh updatednsbl.sh

If that leads to the same error, try this:

(2)
It sounds that there is an error with the shell script updatednsbl.sh. Perhaps,  dns.bz2 is on a line by itself?

It should be on the same line as "wget".

See if this helps,
-Barry

Gage wrote:
>
> Thanks Berry, that did helped alot. But Im still not able to
> update the updatednsbl.sh
>
> What wiered is that I have seen the log say that the
> whitelist has been updated.
>
>
>
> [root@pompano assp]# ./nightly.sh
> updatednsbl.sh: dns.bz2: command not found
>
> 01:27:53 (145.60 KB/s) - dns.bz2' saved [634382/634382]
>
> [root@pompano assp]# loading config -- base='.'
> Jun-29-03 01:28:21 ASSP version 0.2.1 initializing
> Jun-29-03 01:28:21 Warning: bayesian spam database is small
> or empty: './spamdb'
> Jun-29-03 01:28:21 Warning: Whitelist is small or empty:
> './whitelist' (ignore if this is a new install)
> Jun-29-03 01:28:21 Listening for mail connections at 25 and
> admin connections at 55555
> Jun-29-03 01:28:21 Starting
> updatednsbl.sh: dns.bz2: command not found
> bash: updatednsbl.sh:: command not found
> [root@pompano assp]#