dxSpider forwarder

di | 16 Marzo 2016

(In Italiano qui)

Recently I set up a new dxcluster node (using dxspider 1.55) and I wrote a tiny ‘quick and dirty’ utility to forward all BBS messages addressed to the sysop on I8ZSE-1 to my internet email address.

It is a small python script that can be downloaded from http://dxcluster.i8zse.eu/files/dxforward.tgz.

Setup is very simply: just decompress the tarball inside /spider/msg directory and configure the script editing .py file and setting these constansts with your data:

#constants and configuration
SMTPSERVER='servername'
SMTPUSER='smtpuser'
SMTPPASS='smtppass'
FROM='from@addr'
TO='to@adds'
SUBJ='Received a new message on dxcluster'
CALL='sysopcall'

Then add a cronjob to schedule the job, like this example that is executed every 20 minutes

#constants and configuration
*/20 * * * * /spider/msg/dxforward.sh

When a new message is received you’ll got an email like this:

dxforwarder

dxforward is released under GNU GPL license.


Ho recentemente messo in funzione un nodo dxcluster (con dx spider 1.55) ed ho scritto una semplice e veloce utilità per inoltrare tutti i messaggi indirizzati al sysop della BBS I8ZSE-1 alla mia casella email internet.

E’ un piccolo script python che può essere scaricato da http://dxcluster.i8zse.eu/files/dxforward.tgz.

L’installazione è semplicissima: è sufficiente decomprimere l’archivio tar nella directory /spider/msg e configurarlo editando le costanti del file .py con i tuoi dati.

#constants and configuration
SMTPSERVER='servername'
SMTPUSER='smtpuser'
SMTPPASS='smtppass'
FROM='from@addr'
TO='to@adds'
SUBJ='Received a new message on dxcluster'
CALL='sysopcall'

Fatto questo basta aggiungere la schedulazione del job in crontab, come questo esempio eseguito ogni 20 minuti.

#constants and configuration
*/20 * * * * /spider/msg/dxforward.sh

Quando viene ricevuto un nuovo messaggio riceverai un messaggio come questo.

dxforwarder

dxforward è rilasciato con licenza GNU GPL.

Lascia un commento

Il tuo indirizzo email non sarà pubblicato. I campi obbligatori sono contrassegnati *