I need to do the following, and I was wondering if someone did something like that, and if so, what they did.
I need to write a program that will process incoming emails for different clients, process them, and then, depending on the email address, do something (add to the database, reply, etc.).
The thing that makes this a bit more complicated is that email addresses are not static, they are dynamic. For instance. Letters will be like that. dynamic-email1@dynamic-subdomain1.domain.com. Emails are grouped by the client using the dynamic subdomain in this example, this will be "dynamic-subdomain1". The client will have its own subdomain, which is assigned to them. Each client can create his own email address under his subdomain and assign an event to this email. These email addresses and subdomains can change all the time, add new ones, delete old ones, etc.
So, for example, if the letter is sent by e-mail " dynamic-email1@dynamic-subdomain1.domain.com ", then I will need to search the database to find out to whom the client is assigned "dynamic-subdomain1", the subdomain, and then look which event maps to the email address "dynamic-email1" and then execute that event. I already have event handling, I'm just not sure how to map email addresses to the event.
Since email addresses are dynamic, it would be painful to handle this with file-based configuration files, it would be nice to look in the database. I did some research, and I found several projects that do something similar, but not quite. The closest I found is the Zed Shaw Lamson project: http://lamsonproject.org
Additional information:
- I am currently using python, django, linux, mysql, memcached.
Questions:
- Has anyone used Lamson to do what I'm looking for, how do you like it?
- Are there any other projects that do something similar, perhaps in a language other than python?
- How to configure my DNS MX record to handle something like this?
Thank you for your help.
:
google, , , . , - - ? , . , , 25 lamson. , , . .
2:
, -, - , .
http://mailgun.net
http://www.emailyak.com