[Assp-test] assp dying

2013-09-20 Thread Spyros Tsiolis
Hello again,

ASSP Version: 1.9.9(13262)

I think it did an upgrade on its own again which is fine by me.

However, the process keeps dying on me.

Is there a way to check if assp is running and if its not start
automatically.

Here's what I have under /etc/init.d/

I have a file named assp.start and it contains the following :

exec /usr/bin/perl /usr/local/assp/assp.pl

CentOS release 5.5 (Final) - i386
perl version  v5.8.8 built for i386-linux-thread-multi

Is there a saner (more polite) way to start assp ?


s.

--
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. 
http://pubads.g.doubleclick.net/gampad/clk?id=58041151iu=/4140/ostg.clktrk
___
Assp-test mailing list
Assp-test@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/assp-test


Re: [Assp-test] assp dying

2013-09-20 Thread Colin Waring
I have three files:

/etc/init.d/assp
/usr/local/assp/start
/usr/local/assp/stop

I'm sure they are on sourceforge somewhere because I didn't write them. I
have attached them but I'm not sure if the list allows attachments. Let me
know and I can email them direct if they get stripped.

I find that if I have problems starting ASSP the best way to start
diagnosing is to shut it down completely and edit assp.cfg by hand. Turn off
AsDaemon and then manually run ASSP (command copied out of the start file):

perl -I /root/perl5/lib/perl5 /usr/local/assp/assp.pl /usr/local/assp

If you get any errors at startup they will then be output to console. CTRL+C
will shut it down.

If ASSP starts on the console but not as a daemon then in emergencies you
can run screen and run ASSP from within it until out of hours when you can
figure out what the problem is.

All the best,
Colin Waring.

-Original Message-
From: Spyros Tsiolis [mailto:tsiolis.spy...@gmail.com] 
Sent: 20 September 2013 08:56
To: assp-test
Subject: [Assp-test] assp dying

Hello again,

ASSP Version: 1.9.9(13262)

I think it did an upgrade on its own again which is fine by me.

However, the process keeps dying on me.

Is there a way to check if assp is running and if its not start
automatically.

Here's what I have under /etc/init.d/

I have a file named assp.start and it contains the following :

exec /usr/bin/perl /usr/local/assp/assp.pl

CentOS release 5.5 (Final) - i386
perl version  v5.8.8 built for i386-linux-thread-multi

Is there a saner (more polite) way to start assp ?


s.


--
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack
includes Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends
9/20/13. 
http://pubads.g.doubleclick.net/gampad/clk?id=58041151iu=/4140/ostg.clktrk
___
Assp-test mailing list
Assp-test@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/assp-test
#!/bin/sh
# chkconfig: 235 99 10
# description: Start or stop the ASSP SPAM Proxy  server
#
### BEGIN INIT INFO
# Provides: ASSP
# Required-Start: $network $syslog
# Required-Stop: $network
# Default-Start: 2 3 5
# Default-Stop: 0 1 6
# Description: Start or stop the ASSP SPAM Proxy  server
### END INIT INFO

# Rev 0.2.1 Lars Troen
# added reload option

# Rev 0.2.0 R.Toth
# Mods to specify the correct startup directory..
# This needs to be hard-coded for now, until a better way comes up...
# Specifically, the location(s) of the scripts, pid file, config file...
# Mods made for 0.2.0 and new config file format to locate PID file too..

base=/usr/local/assp
confFile=$base/assp.cfg
start=$base/start $base
stop=$base/stop $base
lockfile=/var/lock/subsys/assp.lock
pidFile=$base/pid
name='ASSP'

case $1 in
'start')
echo Starting ASSP via: $start
$start /dev/null 21 /dev/null
# $start
RETVAL=$?
if [ $RETVAL = 0 ]; then
touch $lockfile /dev/null 21
fi
;;
'stop')
$stop
RETVAL=$?
if [ $RETVAL = 0 ]; then
rm -f $lockfile
fi
;;
'status')
pidfile=`grep ^pidfile= $confFile | sed -e 's/pidfile=//g'`
if [ $pidfile =  ]; then
pidfile=$pidFile
fi
if [ -s $pidfile ]; then
pid=`cat $pidfile`
kill -0 $pid /dev/null 21
if [ $? = 0 ]; then
echo $name (pid $pid) is running
RETVAL=0
else
echo $name is stopped
RETVAL=1
fi
else
echo $name is stopped
RETVAL=1
fi
;;
'restart')
$stop; sleep 5; $start
#   $stop  $start
RETVAL=$?
;;
'reload')
pidfile=`grep ^pidfile= $confFile | sed -e 's/pidfile=//g'`
if [ $pidfile =  ]; then
pidfile=$pidFile
fi
if [ -s $pidfile ]; then
pid=`cat $pidfile`
kill -1 $pid /dev/null 21
if [ $? = 0 ]; then
echo $name (pid $pid) reloading config
RETVAL=0
else
echo Unable to reload config. $name is stopped
RETVAL=1
fi
else
echo Unable to reload config. $name is stopped
RETVAL=1
fi
;;

*)
echo Usage: $0 { start | stop | status | restart }
RETVAL=1
;;
esac
exit $RETVAL
#!/bin/sh
#
# 'stop' - Shell script a la RedHat initialization routines
# R. Toth - May/2003
# V1.00 - Initial attempt at creating a fully compatible and compliant
# shutdown script that's 

Re: [Assp-test] assp dying

2013-09-20 Thread Doug Lytle
Spyros Tsiolis wrote:
 Is there a way to check if assp is running and if its not start
 automatically.

I use monit to watch ASSP.

Doug

-- 
Ben Franklin quote:

Those who would give up Essential Liberty to purchase a little Temporary 
Safety, deserve neither Liberty nor Safety.


--
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. 
http://pubads.g.doubleclick.net/gampad/clk?id=58041151iu=/4140/ostg.clktrk
___
Assp-test mailing list
Assp-test@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/assp-test


Re: [Assp-test] assp dying

2013-09-20 Thread Colin Waring
I missed this bit..

I have a cron job for this (attached). It opens a connection to both the
SMTP and Web interface ports and makes sure it gets a connection

Uses mutt to send email notifications.

My actual script contains a few of other things for other daemons/upgrades
and connectivity so this is just the relevant bit.

There are loads of third party utilities that can do monitoring too.

All the best,
Colin Waring.

-Original Message-
From: Doug Lytle [mailto:supp...@drdos.info] 
Sent: 20 September 2013 10:04
To: ASSP development mailing list
Subject: Re: [Assp-test] assp dying

Spyros Tsiolis wrote:
 Is there a way to check if assp is running and if its not start 
 automatically.

I use monit to watch ASSP.

Doug

--
Ben Franklin quote:

Those who would give up Essential Liberty to purchase a little Temporary
Safety, deserve neither Liberty nor Safety.



--
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack
includes Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends
9/20/13. 
http://pubads.g.doubleclick.net/gampad/clk?id=58041151iu=/4140/ostg.clktrk
___
Assp-test mailing list
Assp-test@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/assp-test
#/bin/sh
#
# Lantern Hosting Services monitoring script - Copyright 2011-2013
#

checklocal(){
_asspok=`telnet localhost 25  /dev/null 2/dev/null|grep Connected|cut 
-d   -f1`
_asspwebok=`telnet localhost 5  /dev/null 2/dev/null|grep 
Connected|cut -d   -f1`
_localfail='0'
if [ $_asspok != Connected ]; then
_localfail='1'
fi
if [ $_asspwebok != Connected ]; then
_localfail='1'
fi
return $_localfail
}

if [ ! -f /tmp/asspupgrade ]; then
checklocal
if [ $? -eq 1 ]; then
sleep 5
checklocal
if [ $? -eq 1 ]; then
sh /etc/init.d/assp stop
touch /tmp/assprestart
sleep 5
sh /etc/init.d/assp start
/usr/bin/tail -n 20 /usr/local/assp/maillog.txt 
|/usr/bin/mutt -s ASSP Restarted on m1 Due to port 25/5 failure root
fi
fi
fi
--
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. 
http://pubads.g.doubleclick.net/gampad/clk?id=58041151iu=/4140/ostg.clktrk___
Assp-test mailing list
Assp-test@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/assp-test


Re: [Assp-test] assp dying

2013-09-20 Thread Fritz Borgstedt
ASSP development mailing list assp-test@lists.sourceforge.net
schreibt:
I use monit to watch ASSP.

Doug


ASSP 1.9.9 has a builtin watchdog.

Section: Automatic Update / Restart:

-Enable Watchdog (EnableWatchdog)
 
-Restart/Kill after this many Seconds (WatchdogHeartBeat)
 
 
 -Kill  Restart (WatchdogRestart)
Enabling this will ask the Watchdog to restart ASSP, disabling this
will only kill ASSP. AutoRestartCmd must be configured.
 

--
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. 
http://pubads.g.doubleclick.net/gampad/clk?id=58041151iu=/4140/ostg.clktrk
___
Assp-test mailing list
Assp-test@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/assp-test


[Assp-test] fixes in assp 2.3.4 build 13263

2013-09-20 Thread Thomas Eckardt
Hi all,

fixed in assp 2.3.4 build 13263:

- if a mail was blocked because of foreign BCC recipients, the SPAM flag 
was not set, which caused the deletion of 
  the collected file
 
- the SenderBase querys were running in to a timeout condition (given no 
results) too often
  V2 now uses a smarter way to query senderbase.org

changed:

- the analyzer now queryies senderbase.org if no SBCache entry is found  

Thomas

DISCLAIMER:
***
This email and any files transmitted with it may be confidential, legally 
privileged and protected in law and are intended solely for the use of the 

individual to whom it is addressed.
This email was multiple times scanned for viruses. There should be no 
known virus in this email!
***


--
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. 
http://pubads.g.doubleclick.net/gampad/clk?id=58041151iu=/4140/ostg.clktrk___
Assp-test mailing list
Assp-test@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/assp-test


Re: [Assp-test] assp dying

2013-09-20 Thread Grayhat
 
 I have a cron job for this (attached). It opens a connection to both
 the SMTP and Web interface ports and makes sure it gets a connection

hmm... not bad, but before that, I think you'd better check if the ASSP
process is running, then, if it's running (and only if it's running)
you may go on and check if it's also correctly responding to requests :)

--
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. 
http://pubads.g.doubleclick.net/gampad/clk?id=58041151iu=/4140/ostg.clktrk
___
Assp-test mailing list
Assp-test@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/assp-test


Re: [Assp-test] assp dying

2013-09-20 Thread Spyros Tsiolis
Thank you all for your replies.

I think I am going to go with the built-in feature.

No need to make things more complicated.

However, I will have a thorough look at monit.

Thank you all again for your time,

s.




On Fri, Sep 20, 2013 at 12:27 PM, Fritz Borgstedt f...@iworld.de wrote:
 ASSP development mailing list assp-test@lists.sourceforge.net
 schreibt:
I use monit to watch ASSP.

Doug


 ASSP 1.9.9 has a builtin watchdog.

 Section: Automatic Update / Restart:

 -Enable Watchdog (EnableWatchdog)

 -Restart/Kill after this many Seconds (WatchdogHeartBeat)


  -Kill  Restart (WatchdogRestart)
 Enabling this will ask the Watchdog to restart ASSP, disabling this
 will only kill ASSP. AutoRestartCmd must be configured.


 --
 LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
 Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13.
 http://pubads.g.doubleclick.net/gampad/clk?id=58041151iu=/4140/ostg.clktrk
 ___
 Assp-test mailing list
 Assp-test@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/assp-test

--
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. 
http://pubads.g.doubleclick.net/gampad/clk?id=58041151iu=/4140/ostg.clktrk
___
Assp-test mailing list
Assp-test@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/assp-test


Re: [Assp-test] assp dying

2013-09-20 Thread Doug Lytle
 However, I will have a thorough look at monit.

If you go that route, here is my config:

set mail-format { 
from: assp.monit AT somedomain.com
 subject: [Monit] $SERVICE $EVENT at $DATE
 message: Monit $ACTION $SERVICE 
  at $DATE on $HOST: 
  $DESCRIPTION.
}

check process assp with pidfile /assp/pid

start program = /etc/init.d/assp start
stop program = /etc/init.d/assp stop

if failed host 127.0.0.1 port 25 protocol smtp
with timeout 10 seconds
for 1 times within 1 cycles
then restart

Doug

--
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. 
http://pubads.g.doubleclick.net/gampad/clk?id=58041151iu=/4140/ostg.clktrk
___
Assp-test mailing list
Assp-test@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/assp-test


Re: [Assp-test] assp dying

2013-09-20 Thread Fritz Borgstedt
ASSP development mailing list assp-test@lists.sourceforge.net
schreibt:
I think I am going to go with the built-in feature.


It would be better to run a not dying version. the versions which
are dying in your installatio are not known for that behaviout. Is
there nothing in the log? Did you run it in Terminal mode?
Better than to constantly restart would be to go back to your working
version.

--
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. 
http://pubads.g.doubleclick.net/gampad/clk?id=58041151iu=/4140/ostg.clktrk
___
Assp-test mailing list
Assp-test@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/assp-test


[Assp-test] Improving Bayes/HMM

2013-09-20 Thread Colin Waring
Hi folks,

 

We seem to be getting a large amount of false positives lately (I'm talking
over a period of the last few months). The corpus confidence comes back as
almost bang on most of the time .

 

It does seem to be getting worse over time.

 

What are everyone's best practices for tuning these filters in particular?

 

All the best,

Colin Waring.

--
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. 
http://pubads.g.doubleclick.net/gampad/clk?id=58041151iu=/4140/ostg.clktrk
___
Assp-test mailing list
Assp-test@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/assp-test