Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Automation when email is received

Status
Not open for further replies.

RottPaws

Programmer
Mar 1, 2002
478
US
I wasn't sure what would be the proper forum would be for this, so I figured I'd start here.

I'm on RH Linux 9. I have an email address set up to receive status messages for a process we have with another company.

When an email comes in, I'd like to launch a Perl script and pass the body of the message to it. And maybe the subject line too.

I've searched on the internet, but have not been able to come up with the right keywords. Either I get a million irrelevant hits or none.

Can someone tell me where there are instructions for this? Do I need to have special modules installed? Or are the necessary elements installed with the mail server that comes with Linux? If so, what are they?

_________
Rott Paws

...It's not a bug. It's an undocumented feature!!!
 
Thanks,

I'll check those out.

_________
Rott Paws

...It's not a bug. It's an undocumented feature!!!
 
I read a little about procmail and the article about incoming mail.

I prefer the option of using an alias to send incoming email directly to my script without having to use procmail. It sounds like it would be simpler in the long run.

So I set up the alias to pipe incoming mail to a script, but I havn't been able to get it to work. I get this error:
[tt]smrsh: "ir_entries.pl" not available for sendmail programs (stat failed)[/tt]

I googled that error and found some information about limitations on sendmail running perl scripts. The info I found said that a symbolic link to the file needed to be created in the /etc/smrsh directory and I did that. But I still haven't been able to get it to work.

Do you know of any good sites with instructions on how to get around the smrsh problem?



_________
Rott Paws

...It's not a bug. It's an undocumented feature!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top