You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by hansje2000 <ke...@xs4all.nl> on 2006/07/12 11:49:17 UTC

Problems on rethad 9.0

Hello,
Im working in rethad 9.0 and try to install spamassassin in a good way

I have found thate the install of spamassassin version 3.1.3 isnt not thate
easy as it looks.
When i start spamd in consolle like #pamd -u spambucket he referer to the
perl cofig.(no problem on thate, and works fine, seems to find a little bug
on there but works).

But when i start spamassassin like redhat 9.0 does, he goes to a other
direction

So give a look at the standaard /etc/init.d/spamassassin

------------------------------------------------------------------------------
#!/bin/sh
#
# spamassassin This script starts and stops the spamd daemon
#
# chkconfig: - 80 30
# processname: spamd
# description: spamd is a daemon process which uses SpamAssassin to check \
#              email messages for SPAM.  It is normally called by spamc \
#	       from a MDA.
# Source function library.
. /etc/rc.d/init.d/functions
# Source networking configuration.
. /etc/sysconfig/network
# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0
# Set default spamd configuration.
SPAMDOPTIONS="-d -c -m5 -H"
SPAMD_PID=/var/run/spamd.pid
# Source spamd configuration.
if [ -f /etc/sysconfig/spamassassin ] ; then
. /etc/sysconfig/spamassassin
fi
[ -f /usr/bin/spamd -o -f /usr/local/bin/spamd ] || exit 0
PATH=$PATH:/usr/bin:/usr/local/bin
# By default it's all good
RETVAL=0
# See how we were called.
case "$1" in
 start)
# Start daemon.
echo -n "Starting spamd: "
daemon $NICELEVEL spamd $SPAMDOPTIONS -r $SPAMD_PID
RETVAL=$?
echo
if [ $RETVAL = 0 ]; then
touch /var/lock/subsys/spamassassin
fi
;;
  stop)
# Stop daemons.
 echo -n "Shutting down spamd: "
 killproc spamd
RETVAL=$?
 echo
if [ $RETVAL = 0 ]; then
rm -f /var/lock/subsys/spamassassin
rm -f $SPAMD_PID
fi
;
  restart)
$0 stop
$0 start
;;
  condrestart)
[ -e /var/lock/subsys/spamassassin ] && $0 restart
;;
  status)
status spamd
RETVAL=$?
;;
  *)
echo "Usage: $0 {start|stop|restart|status|condrestart}"
RETVAL=1
;;
esac
exit $RETVAL

Okey lets grep some things when i try to start spamassassin in the redhat
way on defaul way

[root@ProdecoBoy root]# ps -ef | grep spamd
root      6578     1  2 11:40 ?        00:00:00 /usr/bin/spamd -d -c -m5 -H
-r /var/run/spamd.pid
root      6581  6578  0 11:40 ?        00:00:00 spamd child
root      6582  6578  0 11:40 ?        00:00:00 spamd child
root      6626  6595  0 11:40 pts/0    00:00:00 grep spamd
[root@ProdecoBoy root]#




Now i do a grep when i start spamassassin on the manual way like #spamd -u
spambucket

[root@ProdecoBoy root]# ps -ef | grep spamd
root      5615     1  0 04:16 ?        00:00:05 /usr/bin/perl -T -w
/usr/bin/spamd -u spambucket
508       5619  5615  0 04:16 ?        00:00:00 [spamd <defunct>]
508       5621  5615  0 04:16 ?        00:00:01 spamd child
508       5622  5615  0 04:16 ?        00:00:00 spamd child
root      6510  6431  0 11:35 pts/1    00:00:00 grep spamd

How can i fix this problem?

Thanks for reply anyway

best regards Henco 
-- 
View this message in context: http://www.nabble.com/Problems-on-rethad-9.0-tf1929957.html#a5285828
Sent from the SpamAssassin - Users forum at Nabble.com.


Re: Problems on rethad 9.0

Posted by hp <he...@aroint.org>.
On Wed, 12 Jul 2006, Tom Brown wrote:


> to install a fresh new system today with RH9 is just plain dumb.
>
> sorry to be blunt!
>


I vigorously disagree. It's a lot more work, more down-time, more
problems, more chances for security errors to install an new OS when RH9
is working.

And to top it off, there's no assurance that spam-assassin will install any
more easily with a new OS.



RE: Problems on rethad 9.0

Posted by Sietse van Zanen <si...@wizdom.nu>.
Yes, it's indeed better to smoke a blunt... :-p

________________________________

From: Tom Brown [mailto:tom@ng23.net]
Sent: Wed 12-Jul-06 13:24
To: hansje2000
Cc: users@spamassassin.apache.org
Subject: Re: Problems on rethad 9.0




> Nope thats no asolution redhat Fedore works in the same way.

to install a fresh new system today with RH9 is just plain dumb.

sorry to be blunt!




Re: Problems on rethad 9.0

Posted by Tom Brown <to...@ng23.net>.
> Nope thats no asolution redhat Fedore works in the same way.

to install a fresh new system today with RH9 is just plain dumb.

sorry to be blunt!


RE: Problems on rethad 9.0

Posted by hansje2000 <ke...@xs4all.nl>.
This did the job.. :) 

Thanks Bowie. 
-- 
View this message in context: http://www.nabble.com/Problems-on-rethad-9.0-tf1929957.html#a5299593
Sent from the SpamAssassin - Users forum at Nabble.com.


Re: Problems on rethad 9.0

Posted by hansje2000 <ke...@xs4all.nl>.
Thanks to all folks for reply.

This forum its not a discussion about OS.
But for the people who say that I have to update the OS is not that simple.
I run this OS as a server 24/7 4 years now and didn?t let me and himself
down.
So to update this system is not that easy and fast, because it runs multiple
sites, sentmail, samba, vmware,  mysql+php firewall etc..etc.. so to
configure this all again gona take a while more time than I try to configure
and update spamassassin to a good config.

@ Tom Brown-9  (see above)
@ Sietse van Zanen   (Grapig maar uhh to smoke a blunt?)
@ Raymond Dijkxhoorn 

My goal is to setup a updated spamassassin (like version 3.1.3) as a
widesite config but need spamd to run under (user) spambucket. Why? For
security reason and wants also sent the spam mail to his mail address
(spamass-milter).

In default redhat 9 runs spamassassin as root and falls back to nobody when
he notice he is running as root.

Now the problem.
In the normal way by booting up redhat, he starts his first rule for
spamassassin in  /etc/sysconfig/spamassassin
In this simple .txt file I can put minor options like:
SPAMDOPTIONS="-d -c -u mail"
I tried to fill this .txt file to get a good output and running spamassassin
under the user spambucket (SPAMDOPTIONS="-u spambucket").
I have read somewhere that he defaults also ?d so I think I don?t have to
put this option there. (correct me if I am wrong here) 


But when I write something like SPAMDOPTIONS="-u spambucket" en restart: he
freeze the system completely. And nothing happens, but when I tried this in
console like #spamd ?u spambucked he is running smoothly.
So anyone know a solution how to correct config this?

Thanks anyway

-- 
View this message in context: http://www.nabble.com/Problems-on-rethad-9.0-tf1929957.html#a5297176
Sent from the SpamAssassin - Users forum at Nabble.com.


RE: Problems on rethad 9.0

Posted by Sietse van Zanen <si...@wizdom.nu>.
It's either upgrade, or if you're lucky Dag Wieers' packages still work for your old system:
 
http://dag.wieers.com/packages/spamassassin/

-Sietse

________________________________

From: Raymond Dijkxhoorn [mailto:raymond@prolocation.net]
Sent: Wed 12-Jul-06 12:06
To: hansje2000
Cc: users@spamassassin.apache.org
Subject: Re: Problems on rethad 9.0



Hi!

> Nope thats no asolution redhat Fedore works in the same way.

You have much more problems if you run ReDHat 9. RH9 is not supported
anymore. Especially if you setup new things now, install a OS from this
era first please.

Thanks,
Raymond.



Re: Problems on rethad 9.0

Posted by Raymond Dijkxhoorn <ra...@prolocation.net>.
Hi!

> Nope thats no asolution redhat Fedore works in the same way.

You have much more problems if you run ReDHat 9. RH9 is not supported 
anymore. Especially if you setup new things now, install a OS from this 
era first please.

Thanks,
Raymond.

Re: Problems on rethad 9.0

Posted by hansje2000 <ke...@xs4all.nl>.
Nope thats no asolution redhat Fedore works in the same way.
-- 
View this message in context: http://www.nabble.com/Problems-on-rethad-9.0-tf1929957.html#a5285929
Sent from the SpamAssassin - Users forum at Nabble.com.


Re: Problems on rethad 9.0

Posted by Kelson <ke...@speed.net>.
Benny Pedersen wrote:
> the same was a fault from redhat to say we don't like to support older redhat
> relases, since we now need to donwload a iso file again to upgrade what could
> have being done from up2date ?

You might find the following useful:

HOWTO: yum upgrade to CentOS 4.0
http://www.centos.org/modules/newbb/viewtopic.php?topic_id=654&forum=27

CentOS 4 is a clone of Red Hat Enterprise 4, and as such is as current 
and will remain supported as long as RHEL 4.  (Basically they grab the 
source RPMs, which are available per GPL and similar licenses, strip out 
anything they aren't allowed to redistribute, and rename it.)

You can grab a copy of yum and the appropriate config, then upgrade the 
system live.

I've upgraded two systems this way from Red Hat 9 to CentOS 3 (which is 
based on RHEL 3).  Version 3 is a bit older, but it's still supported 
and will continue to be supported for several years, unlike Red Hat 9, 
which lost official support two years ago and will likely lose the 
unofficial support from Fedora Legacy within the next 6 months to a year.

-- 
Kelson Vibber
SpeedGate Communications <www.speed.net>

Re: Problems on rethad 9.0

Posted by Benny Pedersen <me...@junc.org>.
On Wed, July 12, 2006 11:53, Tom Brown wrote:

>> Im working in rethad 9.0 and try to install spamassassin in a good way
> why redhat 9?

why redhat at all ? :-)

>> How can i fix this problem?
> use a more upto date OS ??

70 million people still use windows 98, now microsoft stops supporting
secuirity updates to it, this might get 70 millon people to join the fun of
windows xp ?

if windows 98 still does the job for 70 million people why change then ?

the same was a fault from redhat to say we don't like to support older redhat
relases, since we now need to donwload a iso file again to upgrade what could
have being done from up2date ?

think about it :-)))




-- 
Benny


Re: Problems on rethad 9.0

Posted by Tom Brown <to...@ng23.net>.
> Im working in rethad 9.0 and try to install spamassassin in a good way

why redhat 9?

> How can i fix this problem?

use a more upto date OS ??

Re: Problems on rethad 9.0

Posted by hp <he...@aroint.org>.
On Wed, 12 Jul 2006, hansje2000 wrote:

> But when i start spamassassin like redhat 9.0 does, he goes to a other
> direction

It's been too long for me to remember, but I think the file to start
spamd, /etc/init.d/spamassassin, needed a change in in the path somewhere,
like loading the options or further at the end where it checks how the
file was called.

Also configuration files seemed scattered in several places and I had to
track down the right files to change. I left the files, so when I make new
changes I have to hunt and change them all again.

Stay with RH9. It works and it can work with spamassassin.