#1  
Old 20th February 2007, 00:09
galaxyboss galaxyboss is offline
Junior Member
 
Join Date: Feb 2007
Posts: 13
Thanks: 1
Thanked 0 Times in 0 Posts
Exclamation ASSP fedora 5

hi
I was installing ASSP
http://www.howtoforge.com/antispam_smtp_proxy

I have fedora 5
I stop in to
Code:
update-rc.d assp defaults
then I try to skip it and do the code
Code:
cat > /etc/logcheck/ignore.d.server/assp << "EOF"
^\w{3} [ :0-9]{11} [._[:alnum:]-]+ assp\[[0-9]+\]: *
EOF
and also I had error there

Code:
-bash: /etc/logcheck/ignore.d.server/assp: No such file or directory
what is wrong ?
thanks
Reply With Quote
Sponsored Links
  #2  
Old 20th February 2007, 08:14
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,872
Thanks: 689
Thanked 4,182 Times in 3,201 Posts
Default

You get the error because the init script was not created. Please reun theis command:

Code:
cat > /etc/init.d/assp << "EOF"
#!/bin/sh -e

# Start or stop ASSP
#
# Ivo Schaap <ivo@lineau.nl>

PATH=/bin:/usr/bin:/sbin:/usr/sbin

case "$1" in

    start)
        echo -n "Starting the Anti-Spam SMTP Proxy"
        cd /usr/share/assp
        perl assp.pl
    ;;

    stop)
        echo -n "Stopping the Anti-Spam SMTP Proxy"
        kill -9 `ps ax | grep "perl assp.pl" | grep -v grep | awk '{ print $1 }'`
    ;;

    restart)
        $0 stop || true
        $0 start
    ;;
   
    *)
    echo "Usage: /etc/init.d/assp {start|stop|restart}"
    exit 1
    ;;

esac

exit 0
EOF
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 20th February 2007, 11:19
galaxyboss galaxyboss is offline
Junior Member
 
Join Date: Feb 2007
Posts: 13
Thanks: 1
Thanked 0 Times in 0 Posts
Question the update-rc.d is not found ,

I did exactly script code as you mention:
but the problem is here:
Code:
[root@server1 ~]# chmod 755 /etc/init.d/assp
[root@server1 ~]# update-rc.d assp defaults
-bash: update-rc.d: command not found
[root@server1 ~]#
the update-rc.d is not found ,
as i mentioned I am running fedora, and assp is in /etc/init.d/
and I can run it
Code:
 /etc/init.d/assp start
and then its working but not as Daemon!

anyidea, also how to check if its working...?
Reply With Quote
  #4  
Old 20th February 2007, 11:24
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,872
Thanks: 689
Thanked 4,182 Times in 3,201 Posts
Default

The errors you get result in the fact that the file was not created properly. Please run the command again as I posted above.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 20th February 2007, 12:07
galaxyboss galaxyboss is offline
Junior Member
 
Join Date: Feb 2007
Posts: 13
Thanks: 1
Thanked 0 Times in 0 Posts
Question

what about this error
Code:
[root@server1 init.d]# cat > /etc/logcheck/ignore.d.server/assp << "EOF"
> ^\w{3} [ :0-9]{11} [._[:alnum:]-]+ assp\[[0-9]+\]: *
> EOF
-bash: /etc/logcheck/ignore.d.server/assp: No such file or directory
[root@server1 init.d]#
what is the meaning of
HTML Code:
Set the permissions.

chmod 755 /etc/init.d/assp

and add it to the default runlevel.

update-rc.d assp defaults

Here is a treat for logcheck users.

cat > /etc/logcheck/ignore.d.server/assp << "EOF"
^\w{3} [ :0-9]{11} [._[:alnum:]-]+ assp\[[0-9]+\]: *
EOF

Now you get mail what the heck is going on.
Reply With Quote
  #6  
Old 20th February 2007, 12:31
galaxyboss galaxyboss is offline
Junior Member
 
Join Date: Feb 2007
Posts: 13
Thanks: 1
Thanked 0 Times in 0 Posts
Default

I found what is the problem
as I mentioned I am running fedora, I found small how to ASSP for fedora:
http://fedoranews.org/contributors/keith_howanitz/assp/

how ever I just need the last 2 steps:
1- create update spam data base
2- start on boot

I think for fedora users they need just to do :
Code:
vi /etc/cron.daily/update_assp
add
Code:
#!/bin/sh
# update_assp
# place this file in /etc/cron.daily/ to update the
# assp database each night
BASE=/usr/share/assp
cd $BASE
# Rebuild the spam database
/usr/bin/perl /$BASE/rebuildspamdb.pl
this to rebuild the spam database each night

now
To start ASSP on boot, add the following to end of /etc/rc.local
Code:
/usr/bin/perl /usr/share/assp/assp.pl /usr/share/assp
so I will start testing it right now
and many thanks for your replies

Last edited by galaxyboss; 20th February 2007 at 15:08.
Reply With Quote
  #7  
Old 21st February 2007, 22:55
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,591 Times in 2,443 Posts
Default

The update-rc.d command is for Debian based systems only. On Fedore, you must use chkconfig - e.g.

Code:
chkconfig --levels 235 name_of_init_script on
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #8  
Old 22nd February 2007, 08:50
galaxyboss galaxyboss is offline
Junior Member
 
Join Date: Feb 2007
Posts: 13
Thanks: 1
Thanked 0 Times in 0 Posts
 
Wink falko thanks

thank you falko

but assp seems not support this command:
Code:
[root@server1 ~]# chkconfig --levels 235 assp on
service assp does not support chkconfig
[root@server1 ~]#
but I think
Code:
To start ASSP on boot, add the following to end of /etc/rc.local
Code:

/usr/bin/perl /usr/share/assp/assp.pl /usr/share/assp
sis the job

btw, assp work @ my server and this is great

once again thanks
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
The Perfect Setup - Fedora Core 4 british.assassin Server Operation 9 21st February 2008 17:29
Fedora 6 LAMP and How To Configure Dynamic DNS Roger Huston HOWTO-Related Questions 3 16th January 2007 20:07
assp tutorial port 25 woes dkrysak HOWTO-Related Questions 11 4th January 2007 15:07
fedora core 4 and PCMCIA troubles abdv Installation/Configuration 2 20th September 2006 20:42
Fedora Core 5.0 and SimplyMepis gtoman Installation/Configuration 2 10th July 2006 20:12


All times are GMT +2. The time now is 07:17.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.