Koozali.org: home of the SME Server

Spamassassin

Offline ReetP

  • *
  • 3,950
  • +6/-0
Spamassassin
« on: December 12, 2004, 04:51:54 AM »
Succesfully upgraded a 5.6 server to 6.01 - well, nearly.

Installed Spamassassin and various other bits and everything seemed to working OK.

As I needed SMTP authentication I then installed the latest version of e-smith-email-4.15.1-06 along with it's dependencies. This was slightly fraught but we seemed to get there - it refused to create the smpt-auth-proxy entry ini the configuration file but with setprop etc I got it all working OK.

Except for Spamassassin which seems to be in a world of it's own.

If I use the default Spamassassin_V3 config file, when I choose to save changes from the manager panel, I get the following error :

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, admin and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.



the admin_error_log gives :

[Sun Dec 12 03:40:50 2004] spamfilter: ERROR: You cannot set a config record without a type.
[Sun Dec 12 03:40:50 2004] [error] [client 127.0.0.1] malformed header from script. Bad header=</pre>: /etc/e-smith/web/panels/manager/cgi-bin/spamfilter


After having a look round I can found that /etc/e-smith/events/actions/spamfilter-init-procmail should create a new file in the event that the original is missing. If I backup the Spamassassin_V3 file and then run at a command prompt I get

ERROR: You cannot set a config record without a type.

Equally, this is the same script called for the server-manager panel and with the Spamassassin_V3 removed server-manager gives the following error :

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 206.

For help, please send mail to the webmaster (admin), giving this error message and the time and date of the error.



This has been driving me nuts for hours. I have tried to remove all the spamassasin rpms and re-install with no joy. As it stands, SA does work, but I can't change the configuration.

I would be grateful if anyone can give me any help on this cos I am completely flummoxed.

B. Rgds
John
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline NickR

  • *
  • 283
  • +0/-0
    • http://www.witzendcs.co.uk/
Spamassassin
« Reply #1 on: December 12, 2004, 11:47:08 AM »
FWIW, you can eliminate the fact that it's an upgraded 5.6 - I have 4 SME's I look after that were all installed with SME 6.01 clean, a bunch of updates done & then Spamassassin applied using Jesper's script.  Every one of them (apart from my own server here) has the exact same problem you report.  On one, I even had it fail to set up the SA entries in the config database completely.

I've looked long and hard & can't figure out why this is happening, so in the end I gave up & now simply close down SA by hand, edit the Spamassassin_V3 file by hand & then restart SA.  Not elegant but it does work.
--
Nick......

Offline ReetP

  • *
  • 3,950
  • +6/-0
Spamassassin
« Reply #2 on: December 13, 2004, 04:00:52 PM »
Thanks for that. At 4am I was beginning to think I had lost the plot entirely :cry:

Looks likes the AV panel won't work either. As you said, I can edit by hand etc. Just be nice to have it working properly.

I would love to get it sorted out / debugged but don't have the knowledge to actually hack it myself.

Anyone who wants me to try something then let me know and I'll be happy to oblige.

B. Rgds
John
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline mdo

  • *
  • 355
  • +0/-0
Spamassassin
« Reply #3 on: December 13, 2004, 06:47:11 PM »
That's what I found on one server:

Can't call method "props" on an undefined value ...

and in /var/log/httpd/admin_error_log:
You cannot set a config record without a type

When I looked in /home/e-smith/spamassassin_V3 which I believe has been migrated during script execution, the format was like this:

conf.global=|auto_learn|1|per_user|1|report_safe ... cut ...
wbl.global=

Note the pipe after the equal sign!

I then manually changed this to be

conf.global=auto_learn|1|per_user|1|report_safe .. cut ...
wbl.global=

and from then on I could go and configure spamfilter through server manager!

The above (wrong?) format IS definitely working on another (untouched) server so I do not understand why this all happened but I thought this might help others.

Regards,
Michael
...