Uriskip, software

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

Uriskip, software

Post by nicola.piazzi »

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 254 times
benscha
Posts: 19
Joined: 23 Jan 2018 07:19

Re: Uriskip, software

Post by benscha »

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: 388
Joined: 23 Apr 2015 09:45

Re: Uriskip, software

Post by nicola.piazzi »

You ran script as is or you modified it ?
benscha
Posts: 19
Joined: 23 Jan 2018 07:19

Re: Uriskip, software

Post by benscha »

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: 388
Joined: 23 Apr 2015 09:45

Re: Uriskip, software

Post by nicola.piazzi »

Yes, but what you have at line ./uriskip.sh: line 10:
: command not found
?
benscha
Posts: 19
Joined: 23 Jan 2018 07:19

Re: Uriskip, software

Post by benscha »

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: 388
Joined: 23 Apr 2015 09:45

Re: Uriskip, software

Post by nicola.piazzi »

thank you,
Post Reply