Uriskip, software

Questions and answers about how to do stuff
Post Reply
nicola.piazzi
Posts: 282
Joined: 23 Apr 2015 09:45

Uriskip, software

Post by nicola.piazzi » 17 May 2019 12:25

Hi,
I devepoped a piece of software, a sample script that create a list of most used 2nd level domains based on latest headers received
most used domains are checked for URIBL one time only and saved into a .cf that is used to skip URIBL check
so these domains most used are skipped and save tons of query , this can solve URIBL blocked problem !

This must be in crontab
# Uriskip, refresh list of excluded domains from uri check
01 02 * * 0 /etc/mail/spamassassin/uriskip.sh

And attached program into spamassassin dir
Attachments
uriskip.rar
(2.52 KiB) Downloaded 34 times

benscha
Posts: 18
Joined: 23 Jan 2018 07:19

Re: Uriskip, software

Post by benscha » 19 Jun 2019 13:03

Ciao Nicola

Unfortunately the script ist not running on my efa box... i'll the the following output

Code: Select all

./uriskip.sh: line 10: 
: command not found
./uriskip.sh: line 42: 
: command not found
./uriskip.sh: line 43: 
: command not found
./uriskip.sh: line 47: 
: command not found
./uriskip.sh: line 48: 
: command not found
./uriskip.sh: line 52: 
: command not found
./uriskip.sh: line 53: 
: command not found
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
./uriskip.sh: line 58: 
: command not found
./uriskip.sh: line 59: 
: command not found
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
./uriskip.sh: line 63: 
: command not found
./uriskip.sh: line 64: 
: command not found
./uriskip.sh: line 70: syntax error near unexpected token `
'
./uriskip.sh: line 70: ` ((c++))
'
any idea? thx for your help
always happy for any hints and tipps! :clap: | EFA 3.0.2.6

nicola.piazzi
Posts: 282
Joined: 23 Apr 2015 09:45

Re: Uriskip, software

Post by nicola.piazzi » 19 Jun 2019 13:07

You ran script as is or you modified it ?

benscha
Posts: 18
Joined: 23 Jan 2018 07:19

Re: Uriskip, software

Post by benscha » 19 Jun 2019 15:40

actually i did not modified anything expect the VURIFIXED Parameter
always happy for any hints and tipps! :clap: | EFA 3.0.2.6

nicola.piazzi
Posts: 282
Joined: 23 Apr 2015 09:45

Re: Uriskip, software

Post by nicola.piazzi » 19 Jun 2019 15:49

Yes, but what you have at line ./uriskip.sh: line 10:
: command not found
?

benscha
Posts: 18
Joined: 23 Jan 2018 07:19

Re: Uriskip, software

Post by benscha » 20 Jun 2019 09:40

sorry Nicola

i shame on me... :liar: i found the error. the uriskip.cf file was missing! everything works fine now!

thx a lot! buon estate
always happy for any hints and tipps! :clap: | EFA 3.0.2.6

nicola.piazzi
Posts: 282
Joined: 23 Apr 2015 09:45

Re: Uriskip, software

Post by nicola.piazzi » 20 Jun 2019 09:45

thank you,

Post Reply