I have a several domains hosted on my droplet like foo.com and bar.com and my server's hostname is like server.foo.com.
I have set google services to send and receive emails. But hosted web applications also send emails using those domains (like email@example.com, firstname.lastname@example.org and email@example.com) from my droplet.
I have configured following TXT record at DNS for each domains.
@ : "v=spf1 include:_spf.google.com ~all"
But I think, this record says that google can send email safely as this domain. So, the e-mails sent from my droplet can still be flagged as spam.
How can I include my droplet as a safe smtp server for all hosted domains?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart.
If you run into issues leave a comment, or add your own answer to help others.