I need to build a web application where people can send an email to custom email addresses (like - firstname.lastname@example.org, or email@example.com) 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 firstname.lastname@example.org 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.