By planetceres
I would like to parse inbound emails in a Node.js app on an Ubuntu 14.04.4 x64 Droplet, so I’m trying to create an email address for my app’s domain that can post to a webhook. How do I create an email address like name@example.com (or name@subdomain.example.com)?
For parsing, I am using Mailin.io, and following Mailin’s documentation I have changed my Domain records on Digital Ocean as follows:
MX 10 subdomain.example.com
A subdomain [ip address of my droplet]
I have the webhook set up at http://www.example.com/webhook, and if I post using curl, I get the expected response, but I can’t figure out how to post to the webhook via email.
Am I going about this the right way?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi @planetceres,
Great question! Before we proceed, perhaps give this a look over:
That said, it’s something we have a ton of tutorials on, for example:
Before you go ahead and do that, consider perhaps hosting email at an email provider, and using your droplet to poll the account (through imap, pop3, or an api) instead, it may turn out to be less heartache for you in the long run. Hope this helps, and let us know if you have any more questions!
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.