Koozali.org: home of the SME Server

[ANNOUNCE]: New Spam Filter Server Manager Module

Offline Knuddi

  • *
  • 540
  • +0/-0
    • http://www.scanmailx.com
[ANNOUNCE]: New Spam Filter Server Manager Module
« Reply #90 on: October 02, 2004, 09:08:55 AM »
josht,

Did you install the spamfilter RPM? The install script within the RPM should set the permissions correct (at least that was the intention).

You can do it manually by:

# Since SpamAssassin is called via Qmail make sure that
# some directories are created via proper rights
/bin/mkdir -p /var/qmail/.spamassassin
/bin/mkdir -p /var/qmail/.pyzor
/bin/mkdir -p /var/qmail/.razor
/bin/chmod 755 /var/qmail/.spamassassin
/bin/chmod 755 /var/qmail/.pyzor
/bin/chmod 755 /var/qmail/.razor
/bin/chown -R qmailq:qmail /var/qmail/.spamassassin
/bin/chown -R qmailq:qmail /var/qmail/.pyzor
/bin/chown -R qmailq:qmail /var/qmail/.razor

Offline psoren

  • *
  • 371
  • +0/-0
Does the RBL list reject work?
« Reply #91 on: October 02, 2004, 11:44:23 AM »
Is there anyway to test if the rejecting works. Since installing RBL listing, i have never seen any reject message in the log file. I have now installed with knuddis script (great stuff), but the daily reports have never shown any rejecting either.
In MRTG i can see that i get about 6% spam, so there should really be some rejections or....??

Per

josht

Permissions problem
« Reply #92 on: October 02, 2004, 01:47:27 PM »
I installed via your script, so I'm assuming that the RPM was downloaded in the process - the filter is active and is marking spam, just not performing the distributed checks and moving it afterwards.

I ran the last six commands you gave manually - the directories already existed so I didn't re-create them.  I'll see if that worked, because lord knows I get enough spam that I'll have an answer soon.

If you're taking feature requests, I preferred the old markup behavior from 2.5+, where SA added the extra header field rather than rewriting the subject line.  It'd also be nice to see a feature for controlling the Bayes autolearning from within the SpamFighter web interface (maybe if the install script created a default training address?).

Other than this experience, your module has been a terrific help for me and I've used it in several other places - this has been the first difficulty I ever had with any version.

josht

Still no go
« Reply #93 on: October 02, 2004, 08:33:33 PM »
I tried both executing the commands you gave and re-loading the RPM, neither fixed the problem.  Spam continues to be marked up properly in the subject line, but then it's delivered into the Inbox regardless of whether it scores high enough for auto-delete or not.

pvanassouw

[ANNOUNCE]: New Spam Filter Server Manager Module
« Reply #94 on: October 13, 2004, 10:10:51 AM »
I have the same problem on my 2 servers.
Has anyone already solved the problem.

Oct 12 21:02:52 spambox spamd[28399]: Creating default_prefs [/var/qmail/.spamassassin/user_prefs]
Oct 12 21:02:52 spambox spamd[28399]: Cannot write to /var/qmail/.spamassassin/user_prefs: Permission denied
Oct 12 21:02:52 spambox spamd[28399]: Couldn't create readable default_prefs for [/var/qmail/.spamassassin/user_prefs]
Oct 12 21:02:52 spambox spamd[28399]: processing message <s16c467c.024@mail.myserver.com> for qmaild:401.
Oct 12 21:02:55 spambox dccproc[30588]: open(/var/dcc/map): Permission denied

Offline Knuddi

  • *
  • 540
  • +0/-0
    • http://www.scanmailx.com
[ANNOUNCE]: New Spam Filter Server Manager Module
« Reply #95 on: October 13, 2004, 11:38:26 AM »
My best suggestion to ensure that marked emails will be autodeleted and/or sorted is to manually enable procmail for all users.

Do you have the UserPanel installed? if so then install also the LAT tools
and do

# lat-procmail -c "*|enabled|no|some|normal"

LAT:
http://sme.swerts-knudsen.dk/downloads/e-smith-lazy_admin_tools-0.9.0-1.noarch.rpm

UserPanel (1.60 for SME 6.0.x):
http://sme.swerts-knudsen.dk/downloads/Userpanel/

pvanassouw

[ANNOUNCE]: New Spam Filter Server Manager Module
« Reply #96 on: October 13, 2004, 11:44:00 AM »
Sorry i didn’t mentioned but the server is configured as a delegated mail server.

pvanassouw

[ANNOUNCE]: New Spam Filter Server Manager Module
« Reply #97 on: October 13, 2004, 11:46:51 AM »
Sorry i didn’t mentioned but the server is configured as a delegated mail server.

Offline Knuddi

  • *
  • 540
  • +0/-0
    • http://www.scanmailx.com
[ANNOUNCE]: New Spam Filter Server Manager Module
« Reply #98 on: October 13, 2004, 08:18:12 PM »
And then (as you can read in the FAQ on my site) there can be no filtering done as procmail only works with local users.

Offline psc

  • *
  • 151
  • +0/-0
[ANNOUNCE]: New Spam Filter Server Manager Module
« Reply #99 on: October 16, 2004, 04:29:23 PM »
Hi Jesper,

great work, i just have one wish.
I want to redirect spam messages to a specific mail accoutnt instead of the "junkmail" folder.

To do so i modified the "30_spamfilter_sort" templete:
--------------------
        $OUT .= ":0\n";
        $OUT .= "* ^.*X-Spam-Flag: YES\n";
        $OUT .= "! junkmail\@mydom.com\n";
--------------------
Works fine.


Maybe in future versions, you can add this option also.

Thanks
Peter
First, solve the problem. Then, write the code.

RayG

[ANNOUNCE]: New Spam Filter Server Manager Module
« Reply #100 on: October 17, 2004, 04:18:01 PM »
Quote from: "psc"
great work, i just have one wish.
I want to redirect spam messages to a specific mail accoutnt instead of the "junkmail" folder.

Maybe in future versions, you can add this option also.


I have been doing this for a while too and feel it would be nice to add as an official option.

bobk

[ANNOUNCE]: New Spam Filter Server Manager Module
« Reply #101 on: October 18, 2004, 02:14:32 AM »
Knuddi,

Using SME 6.0.1-01 with ClamAV installed from your site.

When installing spamfilter it gives me this error at the end.
Code: [Select]
ERROR: You cannot set a config record without a type.
Installation of SpamFilter complete.


I get this error when accessing the Spam Filter panel.
Quote
Spam Filter Settings
Software error:
Can't call method "props" on an undefined value at /etc/e-smith/web/panels/manager/cgi-bin/spamfilter line


The file /home/e-smith/spamassassin_V3 is empty. I tried deleting it, stoping spamassassin, removing the spamfilter rpm and then re-installing. I get the same results as above.

Any Ideas?

Offline TrevorB

  • *
  • 259
  • +0/-0
    • http://www.batley.id.au
What is using port 2525????
« Reply #102 on: October 18, 2004, 05:06:46 AM »
Jesper,

I have installed your latest spamassassin contrib and it's working fine. In actual fact it does MORE than I expected, but not sure why.

My ISP blocks port 25 so I have been redirecting 2525 to 25, but this appears to not be necessary anymore...???

I have previously opened port 2525, and now taken the redirect off and my mail is still coming through (I am assuming at the wrong point in the chain). Which particular item is using port 2525 and what am I bypassing?

To get my particular setup working correctly, which config files do I need to change (happy to generate fragments and make it a configurable item if I know which ones...).

TIA
Trevor B

Offline lu2fgn

  • ***
  • 55
  • +0/-0
    • http://www.sateliteros.com.ar
[ANNOUNCE]: New Spam Filter Server Manager Module
« Reply #103 on: October 18, 2004, 12:59:23 PM »
Hi Jesper

Thanks for the grate job.
I am not a big/good programer, I did install the
spamfilter and I am getting these mail every day
to the Admin acount.

Subject: Cron <root@servidor1>    /usr/bin/spamfilter-stats.pl
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/root>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=root>


ERROR: Date::Manip unable to determine TimeZone.
   Date::Manip::Date_TimeZone called at /usr/lib/perl5/vendor_perl/5.6.1/Date/Manip.pm line 629
   Date::Manip::Date_Init() called at /usr/lib/perl5/vendor_perl/5.6.1/Date/Manip.pm line 747
   Date::Manip::ParseDateString('yesterday') called at /usr/lib/perl5/vendor_perl/5.6.1/Date/Manip.pm line 1683
   Date::Manip::UnixDate('yesterday', '%s') called at /usr/bin/spamfilter-stats.pl line 317
   main::parse_arg('yesterday', '') called at /usr/bin/spamfilter-stats.pl line 96

Will apreciate any help.
Best regards

Alberto
......

Offline Dirk

  • *
  • 20
  • +0/-0
[ANNOUNCE]: New Spam Filter Server Manager Module
« Reply #104 on: October 18, 2004, 09:32:07 PM »
Just wanted to share the problems i fixed for myself
regarding the spammassassin problem

Everytime i wanted to save the panel i got a server error 500 this was due to the rpms from the devel directory on ibilio i installed.
When i installed the old e-smith-lib again the problem was gone.
So i replaced all rpms back to the original ones.

For the people that have double spam tags like
[*****SPAM*****(12.5 of 5.0][*****SPAM*****(12.5 of 5.0)] i tracked it down to the .procmailrc file in the user directory that contained the lines;
# The lock file ensures that only 1 spamassassin invocation happens
# at 1 time, to keep the load down.
#
:0fw: spamc.lock

Remove it and double tagging is gone.
Well this works for me, hope its helpfull

Dirk