Automatic e-mail reply

I am setting up an automated-reply system for an e-mail helpdesk. How can I have the computer run a program whenever new e-mail is received in a certain accout?
I am using Digital Unix running on an Alpha.
LVL 2
SlartiAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

josvCommented:
Yes you can!

Assuming that sendmail is doing the mail delivery, you can set up an email alias that will feed your email through a program. Sendmail maintains an alias file (usually /etc/aliases) that can be used to create email aliases for users, or groups of users. The usual syntax is:

admin: josv, frans, erik

to denote that all mail sent to admin@somehwere should be sent to all three users (josv, erik, frans). However, sendmail also allows the following syntax:

helpdesk: "| myprog"

This means that whenever sendmail detects mail for helpdesk@somewhere, it starts the program myprog and feeds the email message as stdin.

++Jos
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Networking

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.