I am trying to build an app where I want to give users an email id for ex: abc@xyz.com. I am then building a parser for emails received on that email.<p>My problem is I am not sure how I can do the following :
- give each user a unique email id<p>Google app emails are expensive and hosting my own mail server is complex.
Is there a better way to do this? Any service, tutorials, pointers will be helpful. Thanks
I would set up a catchall email on the domain xyz.com which sends to a single destination email address. Then generate abc001, abc002, etc email address to users to have.<p>On that single email address you could parse for the unique email ids and then process as you intended to. Depending on your mail provider you could simply have a POP3 or IMAP client or a full featured SMTP / MTA server.<p>I use a similar trick when people ask me for an email address, it is typically some.person@example.com. Then if that source spams me, etc then I can easily block emails to some.person without affecting my "real" email which is simply mail@example.com.
It looks perhaps unmaintained these days, but in the past I solved a similar problem using Lamson.<p>Lamson: <a href="https://github.com/zedshaw/lamson" rel="nofollow">https://github.com/zedshaw/lamson</a><p>Previous HN discussion: <a href="https://news.ycombinator.com/item?id=612642" rel="nofollow">https://news.ycombinator.com/item?id=612642</a>
Search for "inbound email parsing" services, e.g. <a href="http://www.mailgun.com/inbound-routing" rel="nofollow">http://www.mailgun.com/inbound-routing</a> or <a href="https://postmarkapp.com/" rel="nofollow">https://postmarkapp.com/</a>