0

I have a mail server configured on my server (Postfix), I have a script which requires input to be provided to it.

I would like to know if there is a possibility to trigger this script by sending mail to the server.

This is what I am thinking:

Once the mail arrives on server, the mail will contain all the input that script needs.

The script will use these variables in it and complete the script.

Example. The script needs following input:

1 : Username
2 : uid
3 : email address
4 : Group name

Is there a possibility to make the script run once a mail comes in and then use the inputs from the mail to finish the job?

Benjamin W.
  • 46,058
  • 19
  • 106
  • 116
david bob
  • 71
  • 3
  • 9
  • http://serverfault.com/questions/132576/run-script-on-incoming-email-message-to-postfix – Nehal J Wani Mar 31 '17 at 06:14
  • http://serverfault.com/questions/132576/run-script-on-incoming-email-message-to-postfix While this is interesting, I am still a script kiddie to understand this, if someone can help me a bit more, I would really appreciate it – david bob Mar 31 '17 at 18:12

0 Answers0