How to setup postfix to send email not as spam?

  • Posted August 25, 2014

I create a WordPress droplet with ubuntu 14.04 and install postfix, it can send mail to the user when user register, but the mail client(Gmail) always treats the mail as SPAM, and I found that the send from is “”.

How to setup the send from correctly in postfix so that the mail client doesn’t treat the mail that my server sent as SPAM.

Thank you.



Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

Administering mail traffic can be a complicated subject these days. Have you deployed DKIM and SPF with your mail setup? Are you utilizing DMARC reporting? Are you receiving any error log entries from receiving mail servers that indicate they are delaying your traffic for SPAM reasons?

DKIM and SPF are good places to begin with helping maintain a good reputation on the internet. DKIM and SPF are anti spoofing specifications that help receiving mail servers know mail traffic is legitimate. DMARC allows you to receive reports on your policies from major ISP providers around the world.

I am also facing same issue … My ip is not blacklisted but still the emails are going to spam folder

Please help.

Spam filtering is usually done based on the IP address, you need to check if your IP address is on the IP Address Black List. If it is then your best option would be to destroy the droplet and create a new one. On another note, are you using any security measures, a firewall? using HTTPS? etc , you need to protect your droplet from the hackers and the malicious activity that they can perfrom