Koozali.org: home of the SME Server

[ANNOUNCE]: New Spam Filter Server Manager Module

mbachmann

[ANNOUNCE]: New Spam Filter Server Manager Module
« Reply #30 on: August 23, 2004, 03:13:02 PM »
Works so nice. Hooray for Denmarks Knudsen.

Period Beginning : Fri Aug 20 00:00:03 2004
Period Ending    : Sat Aug 21 00:00:03 2004

Reporting Period : 24.00 hrs
--------------------------------------------------

Total spam rejected   :       84 (  81.55%)
       RBL rejected   :        2 (   1.94%)
Total ham accepted    :       19 (  18.45%)
                        -------------------
Total emails processed:      103 (    4/hr)

Average spam threshold :        7.84
Average spam score     :       30.43
Average ham score      :        1.17

Jon_Reynolds

[ANNOUNCE]: New Spam Filter Server Manager Module
« Reply #31 on: August 23, 2004, 10:55:21 PM »
First off, Jesper, you rock! Thanks for all the time and effort you put into these contribs of yours and for the excellent howto's you write up for the rest of us. You are a credit to humanity. ;)

A just in case. I have been having a problem with my Primary i-bay asking for username/password. How it changed I have no idea, the last thing I installed was Jespers SA update and ran

/sbin/e-smith/db configuration setprop amavis-ng qmail-queue /var/qmail/bin/qmail-spamc
/sbin/e-smith/signal-event email-update

Because I was using pagefaults AV. I then followed this thread and downloaded and ran:

# wget http://sme.swerts-knudsen.dk/downloads/SpamAssassin/lat-procmail
# lat-procmail -c "*|enabled|no|some|normal"

After this was done is when I noticed my Primary i-bay asking for a username/password. I found that the /etc/httpd/conf/httpd.conf file had been changed to look like this for the Primary i-bay:

#------------------------------------------------------------
# Primary ibay directories (Primary i-bay)
#------------------------------------------------------------

<Directory /home/e-smith/files/ibays/Primary/html>
    Options Indexes
    Options +Includes
    AllowOverride None
    order deny,allow
    deny from all
    allow from all
#    AuthName "Primary i-bay"
#    AuthType Basic
#    AuthExternal pwauth
#    require user Primary
#    Satisfy all
</Directory>

<Directory /home/e-smith/files/ibays/Primary/cgi-bin>
    Options ExecCGI
    AllowOverride None
    order deny,allow
    deny from all
    allow from all
 #   AuthName "Primary i-bay"
 #   AuthType Basic
 #   AuthExternal pwauth
 #   require user Primary
 #   Satisfy all
</Directory>

<Directory /home/e-smith/files/ibays/Primary/files>
    AllowOverride None
    order deny,allow
    deny from all
    allow from all
 #   AuthName "Primary i-bay"
 #   AuthType Basic
 #   AuthExternal pwauth
 #   require user Primary
 #   Satisfy all
</Directory>

As you can see I commented out the lines that are requiring authentication and now everything is working again.

I am posting this here just in case something happened that might be explainable. I don't see how but just in case.

Thanks Jesper,

Jon

Offline jmvelez

  • ***
  • 85
  • +0/-0
    • http://velezcomputer.com
New spam filter
« Reply #32 on: August 23, 2004, 11:46:31 PM »
I installed the spam filter.  I do no know it fetchmail is working since I do not get to much email on that account.  Bitdefender is working.

My question is do I need to make a folder so the spam email goes there.  I am getting emails with Spam message like this [SPAM 6.6 of 5.0] Velez Jose, All-time Low Rates in San Juan 3.26% ......

Thank You

1111

[ANNOUNCE]: New Spam Filter Server Manager Module
« Reply #33 on: August 24, 2004, 12:11:33 AM »
Jesper,

Since you're generally not using rpm format, could you also publish an uninstall script with each of your contributions? It makes cleaning up a little easier.

Thanks.

Offline kmccarn

  • ***
  • 112
  • +0/-0
[ANNOUNCE]: New Spam Filter Server Manager Module
« Reply #34 on: August 24, 2004, 08:32:32 PM »
Thanks as always Jesper. (I will be sending $$ after I start upgrading)

1 quick question - is there a limit on the number of entries in the white-list ?? We tend to end up with some very extensive lists.
Kevin in WV 8-)......

Offline edb

  • *
  • 546
  • +0/-0
[ANNOUNCE]: New Spam Filter Server Manager Module
« Reply #35 on: August 25, 2004, 06:35:42 AM »
Knuddi

I tried to download and install your Spam script as per instructions but I get a connection refused error for all rpms? At the server I type  "sh spamfilter_install.sh" have you changed anything?
......

Offline idyll

  • ***
  • 113
  • +0/-0
[ANNOUNCE]: New Spam Filter Server Manager Module
« Reply #36 on: August 26, 2004, 02:02:02 AM »
I found one small syntactic error in the latest SA script, and have forwarded the information to Jesper.

My system was stock contribs.org, v6.0.1, with only the RBL enabled changes. The volume of SPAM was starting to annoy us so I opted to try (again) Jesper's latest SpamAssassin contrib.

My previous experience with earlier version of this contrib was checkered as it installed in addition to the stock SA and resulted in double tagging and general weirdness. Never could make it behave!

THIS version now works wonderfully after (at least in my instance) I hand-edited the .procmailrc files.

Right after install, this contrib was tagging correctly but sorting nothing. Weird. I found the following "error" in the syntax...

----- snip ------
~/.procmailrc

# -------------------------------------------------------------------------
# All mail tagged as spam (eg. with a score higher than the set threshold)
# is moved to the junkmail folder
# Configured by SME-SpamFilter from sme.swerts-knudsen.dk
# -------------------------------------------------------------------------
:0
* ^X-Spam-Status: Yes
$MAILDIR/;junkmail/

--- snip -----


the correct syntax come into play after changing it to this...

--- snip -----

# -------------------------------------------------------------------------
# All mail tagged as spam (eg. with a score higher than the set threshold)
# is moved to the junkmail folder
# Configured by SME-SpamFilter from sme.swerts-knudsen.dk
# -------------------------------------------------------------------------
:0
* ^X-Spam-Flag: YES
$MAILDIR/;junkmail/

--- snip ----------

I am no procmail expert, so please correct me, but the  envelope information indicates the word "Flag" when it determines a given email is indeed within the defined levels. The word "Flag" and then POSSIBLY having the word YES in all caps (this is where I am unclear) is what fixed my instance.

So, your mileage may vary. It makes our server behave like a champ and I await my first few days' worth of statistics to share.

regards

patrick
...

Henk

[ANNOUNCE]: New Spam Filter Server Manager Module
« Reply #37 on: August 27, 2004, 09:59:05 PM »
First of all thanks a lot Knuddi, great contrib. But there are still a few problems.

After installation spam wasn't sorted to the junkmail folder. I tried every possible solution from this topic, but nothing didn't work.

I decided to install the userpanel contrib from http://www.dungog.net/sme/files/userpanel/ and activated procmail for every user (# lat-procmail -c "*|enabled|no|some|normal" ) After that spam is sorted in the junkmail folder!.

Spamsorting doesn't work for the admin account btw, I cannot get that to work.

Newly creating accounts are setup correctly btw, and spam is sorted into the junkmail folder. I didn't check this before installing the userpanel contrib, so I don't know if new account work correctly without that contrib.

Maybe handy to know. I'm using the pagefault antivirus contrib also in this server.

Jon_Reynolds

[ANNOUNCE]: New Spam Filter Server Manager Module
« Reply #38 on: August 27, 2004, 10:47:59 PM »
Here is the output of my spamfilter statistics:


Period Beginning : Thu 26 Aug 2004 12:43:08 PM AKDT
Period Ending    : Fri 27 Aug 2004 12:43:08 PM AKDT

Reporting Period : 24.00 hrs
--------------------------------------------------

Total spam rejected   :     5979 (  97.79%)
       RBL rejected   :     5819 (  95.18%)
Total ham accepted    :      135 (   2.21%)
                        -------------------
Total emails processed:     6114 (  255/hr)

Average spam threshold :        0.24
Average spam score     :        0.50
Average ham score      :       -0.11
---------------------------------------------------

Why does it keep lowering my Averages down? The threshold should be 5 the spam score is .50? Is anybody else seeing this also?

Jon

Offline bushinc

  • **
  • 62
  • +0/-0
    • http://www.bushinc.com
[ANNOUNCE]: New Spam Filter Server Manager Module
« Reply #39 on: September 01, 2004, 08:48:32 PM »
> In the new spamfilter I per default enable procmail
> for all existing users and all new IF they are
> local users.

I noticed that you are still changing all local users:
Email Delivery: Both Deliver Locally and Forward
Is this what you mean by enabling procmail on all existing users if they are local?

I didn't notice if it changes for remote only users as well.  This may be an issue with someone who will see lots of mail queue up on their server for users who never check mail.
...

trenskow

[ANNOUNCE]: New Spam Filter Server Manager Module
« Reply #40 on: September 02, 2004, 03:53:20 PM »
Hi all
After installing the spam filter, and looking though this thread, i doesnt seem, that my spam filter is removing any spam mails, og isnt showing them in my mrtg page if it does.
http://www.trenskow.dk/mrtg

i have installed user-panel from dungon, and then tried
wget http://sme.swerts-knudsen.dk/downloads/SpamAssassin/lat-procmail
lat-procmail -c |enabled|

then the ssh prompt gives me
>
and wants me to type something.
I am quite new at linux, so what am i doing wrong?

mbachmann

[ANNOUNCE]: New Spam Filter Server Manager Module
« Reply #41 on: September 03, 2004, 11:54:44 AM »
After some days running it shows some broken processes:

ps -A -H

...
0249 ?        00:00:00       pyzor <defunct>
 2956 ?        00:00:45     spamd
10484 ?        00:00:00       pyzor <defunct>
 2957 ?        00:00:41     spamd
10679 ?        00:00:00       dccproc <defunct>
10680 ?        00:00:00       pyzor <defunct>
...

Don't know why, will keep watching.

Offline sgt-spam

  • ***
  • 84
  • +0/-0
[ANNOUNCE]: New Spam Filter Server Manager Module
« Reply #42 on: September 03, 2004, 01:12:31 PM »
Quote from: "trenskow"
Hi all
After installing the spam filter, and looking though this thread, i doesnt seem, that my spam filter is removing any spam mails, og isnt showing them in my mrtg page if it does.
http://www.trenskow.dk/mrtg

i have installed user-panel from dungon, and then tried
wget http://sme.swerts-knudsen.dk/downloads/SpamAssassin/lat-procmail
lat-procmail -c |enabled|

then the ssh prompt gives me
>
and wants me to type something.
I am quite new at linux, so what am i doing wrong?


Quoted from a previous message:
Quote from: "Knuddi"
The script you used is correct and the latest - there is no need to re-install.

I assume that you have enabled the sorting funtions in the spamfilter  so my best suggestion would be to try to manually enable procmail. If you have UserPanel installed then try to enable for one user and check the .procmailrc file again.

You can also do the following (also requires usermanager but is easy):

# wget http://sme.swerts-knudsen.dk/downloads/SpamAssassin/lat-procmail
# lat-procmail -c "*|enabled|no|some|normal"

/Jesper


This has actually helped me several times...

trenskow

[ANNOUNCE]: New Spam Filter Server Manager Module
« Reply #43 on: September 03, 2004, 05:43:52 PM »
Hi and thanks.

[/quote]# wget http://sme.swerts-knudsen.dk/downloads/SpamAssassin/lat-procmail
# lat-procmail -c "*|enabled|no|some|normal"
Quote


when i do this, it returns
bash: lat-procmail: command not found

trenskow

[ANNOUNCE]: New Spam Filter Server Manager Module
« Reply #44 on: September 03, 2004, 05:44:19 PM »
Hi and thanks.

Quote
# wget http://sme.swerts-knudsen.dk/downloads/SpamAssassin/lat-procmail
# lat-procmail -c "*|enabled|no|some|normal"


when i do this, it returns
bash: lat-procmail: command not found