I need to build a web application where people can send an email to custom email addresses (like - email@example.com, or firstname.lastname@example.org) and the email address '1week' and '2days' is used to perform certain actions on that email.
In the above mentioned solution, can I have actual inboxes, for example email@example.com 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.