I need to build a web application where people can send an email to custom email addresses (like - [email protected], or [email protected]) and the email address '1week' and '2days' is used to perform certain actions on that email.
I looked at this Postfix - How to process inbound emails?, particularly, the response - https://serverfault.com/a/247279/94544 and that is indeed a solution that will work for me.
Questions:
In the above mentioned solution, can I have actual inboxes, for example [email protected] which would be a real email address hosted with Google Apps? How do I specify the others to be redirected to the 'catch-all' address? Note that the email addresses - 1day, 1 week are NOT defined beforehand - there can be an email address - 9999weeks, for instance.
Can the script access the email address '1week', the subject line, date/time sent, and the body?
Is perl the best language for processing these emails, assuming that we scale up to handle 100s and 1000s of emails a day (or an hour)? It will need to process these emails and store them in a database.
I'm reading that the other options are of using Postfix, procmail, but I'm unsure about which would be the best, most scalable option.