use Email and script to send commands to your Windows server

Use this forum if you have problems with a hMailServer script, such as hMailServer WebAdmin or code in an event handler.
Post Reply
Thomas Parvais
Normal user
Normal user
Posts: 111
Joined: 2004-12-17 12:21
Contact:

use Email and script to send commands to your Windows server

Post by Thomas Parvais » 2010-11-26 23:10

Hello

I have in mind to use hmailserver scripting mechanisms to implement some remote function to perform some actions on my windows server

Idea is : I send an email to a certain address, with defined subject and defined message (including password)

Then hmail server detects this message and launch a batch file or some shell commands and sends back an email with results

I have some trouble with one of my IIS website that needs to be relaunched remotely

any idea to implement this ?

Thank you
Interrested by Law & new technologies ?
Intéressé par le droit de l'internet et des nouvelles technologies ?
Visit/Visitez http://www.droit-technologie.org

User avatar
mattg
Moderator
Moderator
Posts: 20228
Joined: 2007-06-14 05:12
Location: 'The Outback' Australia

Re: use Email and script to send commands to your Windows se

Post by mattg » 2010-11-27 00:52

Here is a script I wrote that will activate when specific text is in the header

http://www.hmailserver.com/forum/viewto ... 85#p101485

You can modify that to run a batch file. If you get stuck, post where you get to and I'll try and help. This is something I have been considering doing for a while anyway, specifically I am looking to update the account list stored on a backup MX via an email generated from a script that is scheduled at the primary MX
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

Post Reply