By Josh M
I am using an Ubuntu LAMP droplet. I set up an A record to point a subdomain to my droplet that runs a cron job. I would like cron to send an email to my gmail. Since I set up the A record for sub.domain.com, I cannot set up a subdomain on cpanel, therefore I cannot create an MX record for that subdomain. If I get rid of the A record and set up a subdomain, it does not route to the droplet.
I set up Postfix and cron tries to send emails, but they don’t go through.
How do I set this up.
Thanks!
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!
Personally I would recommend using a transactional mailer like sendgrid (who offers 12k email sends a month on their free plan) to handle this type of thing. It is easy to integrate and does not require the amount of attention and initial setup that running a live SMTP service on a public server can.
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.