This question already has an answer here:
I have been asked to setup an automated trigger on Unix upon receiving a certain kind of email from MS Exchange server.
The requirement is to trigger a shell script when any person from a fixed list of senders sends an email via MS Exchange server to a designated email account on unix.
Email from email@example.com (Exchange Server) sends an email to firstname.lastname@example.org (Linux) with the subject: Unlock Account X
This ideally should trigger a shell script that will have code to unlock Account X.
Is there a way to configure this on Unix so that upon receiving an email as described above, I can trigger a shell script?