LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   qmail, ssh and events in a LAN (https://www.linuxquestions.org/questions/linux-networking-3/qmail-ssh-and-events-in-a-lan-28055/)

Zingaro2002 08-16-2002 09:19 AM

qmail, ssh and events in a LAN
 
Hi.
I have a Red Hat Linux 7.3 with a qmail mail server installed and working perfectly (I've followed the instructions in LifeWithqmail).

Now I urgently need to do the following:
each time a new e-mail arrive to any account of my domain, my linux server MUST estabilish a connection with a Windows 2000 client and run a particular application on it. All this in an automatic way (I mean without any operator).
I thought to use ssh for the connection (for more security): I can use it perfectly, but it requires that I insert the password for authentication and, moreover, I don't know how to automate the execution of a command (I, personally, must run it, after authentication).

Is there anybody who can give me suggestions?
If somebody think to anything else (also different from ssh) to do that task, please HELP me.

Oh... I was forgetting... the two machines (linux box and windows 2000 box) are connected in a LAN.

Thank you very much in advance.

Mara 08-16-2002 03:50 PM

It's not a perfect solution, but that's what comes to my mind: you can have a script (started from cron) checking every minute if new mail arrived.
To log in by ssh without typing password you can RSA authantication. Read 'man ssh' for details. One pg-down and it starts.
Hope this helps


All times are GMT -5. The time now is 10:44 AM.