[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Remote administartion via email



Am 2006-01-05 11:27:15, schrieb celejar:
> I'm looking for an application to do remote administration of my
> Debian box
> via email. The app should read mail (presumably authenticating via pgp
> / gpg
> keys) and execute commands contained therein. The box connects to the

+ cryption

> internet intermittently to download mail, but does not have a
> persistent
> connection so I can't use ssh or webmin. I have googled but not

I assum, you are downloading the E-Mails from your ISP using fetchmail.
I am using procmail and

  __( '/home/michelle.konzack/.procmail/NET_tdcontrol' )________________
 /
| :0
| * ? test ! -f "`which tdcontrol`"
| { 
|   LOG="($TDPID) NET_tdcontrol     : executable "tdcontrol" not found.$NL"
| }
| 
| :0
| * ^To:.*dhfkjhdufjdzhfdhfedifjdi@freenet.de
| * ? test ! -f "`which tdcontrol`"
| { 
|   LOG="($TDPID) NET_tdcontrol     : pass$NL"
| 
|   :0
|   * ^Subject:.*[tdcontrol]
|   {
|     :0 fw
|     |tdcontrol --decode
|     
|     :0
|     .ADMIN.tdcontrol/
|   }
|   
|   :0
|   .ATTENTION.tdcontrol/
| }
 \______________________________________________________________________

Where my script 'tdcontrol' with the option "--decode" check for valid
data and decode it.  If there are several Messages with commands, then
they will be queued.

  __( '/home/michelle.konzack/.tdcron/default' )________________________
 /
| SHELL=/bin/bash
| PATH=/home/michelle.konzack/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin
| MAILTO=linux4michelle@freenet.de
| 
| * * * * * tdcontrol --execute
 \______________________________________________________________________

this will run the "queue" while multiple instances are not allowed
using a PID file.

Have fun
    Michelle Konzack
    Systemadministrator
    Tamay Dogan Network
    Debian GNU/Linux Consultant


-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack   Apt. 917                  ICQ #328449886
                   50, rue de Soultz         MSM LinuxMichi
0033/3/88452356    67100 Strasbourg/France   IRC #Debian (irc.icq.com)



Reply to: