Re: [exim] .forward and pipe command 'reboot'

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Christophe Truffier
日付:  
To: Graf J.
CC: exim-users
題目: Re: [exim] .forward and pipe command 'reboot'
Graf J. a écrit :
> Hello,
>
> i will do the following (is typed in my .forward-file):
>
>> if $header_subject: is "reboot" then
>>    save "$home/.imapmail/Trash"
>>    pipe "/sbin/sudo reboot"
>> endif

>
> You see, i will reboot my server by mail.
> The save-command works ok,
> but the pipe-command doesn't work.
>
> In sudoers the user who receives the mail has all rights.
>
> Joachim
>


Hello,

You can try to use MBot Mail Robot, one of its functionalities is to
send a command trought pipe (but it's commented by default to avoid
danger ! :p)

URL:
http://packages.debian.org/testing/mail/mbot
http://mbot.nah-ko.org/

CU

--
Christophe Truffier
UIN #39872819 - http://nah-ko.org