Re: how to trigger an action on email recieved



On 2007-12-07, rpnabar@xxxxxxxxx <rpnabar@xxxxxxxxx> wrote:
On Dec 6, 8:23 pm, The Natural Philosopher <a...@xxx> wrote:
rpna...@xxxxxxxxx wrote:
Natural Philosopher: MTA is sendmail. (Is that what you mean?) I
didn't get your sugesstion though. Can u elaborate or point me to a
link?

Bill: I have never scripted sendmailrc but am googling that now.
THanks!

Bill Marcum has it the way I was thinking of.



-Rahul

On Dec 6, 12:42 pm, The Natural Philosopher <a...@xxx> wrote:
rpna...@xxxxxxxxx wrote:
Hi,
I needed to trigger a script on my system whenever I recieved a
trigger from a remote system as an email. The email would also have a
few arguments in it that I wanted to access.
WHats the best way to do this?
ANy advice is greatly appreciated!
I have red-hat linux with the mail program on it. Prefrably does not
require root access.
-Rahul
What MTA?

sendmail at least is fairly trivial..just make up an alias of yourself
and make one of the aliases you, and another one a pipe to a program.- Hide quoted text -

- Show quoted text -

Thanks for the detailed sugesstions guys!

Quick question:Is there any recipie I can impliment as a user.
Without invoking my root previlages. Second, my MTA seems to be
sendmail.(I think; any way to check?) So would the procmail recipies
above still work?

Depending on your MTA, you may be able to put an instruction
to pipe through procmail in your ~/.forward file.

To find your MTA, you might use your package manager to see
which of sendmail and/or postfix is installed.

HTH

--
Robert Riches
spamtrap42@xxxxxxxxxxx
(Yes, that is one of my email addresses.)
.



Relevant Pages

  • Re: how to trigger an action on email recieved
    ... trigger from a remote system as an email. ... require root access. ... What MTA? ... So would the procmail recipies ...
    (comp.os.linux.misc)
  • Re: mail in /var
    ... (I have root access, so no permission problems). ... figure out which MTA you're using. ... make a change to some configuration file or database ...
    (comp.unix.programmer)