Hey guys here's a good question..
I wanted to write a program that can receives an email, interprets what the message is, then performs a calculation, then responds based on the email received.
For example... The mail server receives an email that has "option 1" in the body...then somehow the mail server asks the program what it should do in the event of option 1. The program performs some calculations, then asks a SQL server to relay some data related to option 1 . The mail server then returns a dynamically created message "option 1 means xxx".
I really have no idea where to start on this one. A friend recommended PostFix but I'm not exactly sure where any program logic can be performed. Any ideas or suggestions are welcome.