By dodea4
OK, so - I am using a PHP application which needs to send emails to users such as welcome messages, forgot passwords, password changes, newsletters etc.
I have configured Postfix successfully by following: https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-postfix-as-a-send-only-smtp-server-on-ubuntu-14-04 .
I have Google apps set up for my domain to receive incoming email, which is working as expected
My server sends out the emails just fine, however some recipients such as Gmail for example will send the emails straight to spam.
If possible, could someone please explain the steps for making sure emails sent out out by my server are not marked as spam by recipients?
Would it be a better option to connect the PHP to a 3rd party service such as Mailgun or similar to send outgoing mail, and if so, is this difficult to do?
Also, I had considered using SMTP to access my Google app email account to send email but there is a limit of 100 every 24 hours so this is not viable.
I am sure there is a more experienced developer/sysadmin who has been through this setup before and I would greatly appreciate the help.
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!
First make sure that your IP address is not in any email black/spam lists. And if you haven’t already, setup a SPF record for the domain name that is sending emails. https://www.digitalocean.com/community/tutorials/how-to-use-an-spf-record-to-prevent-spoofing-improve-e-mail-reliability
I personally use mandrillapp for sending emails.
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.