I use ubuntu 16.04 on my server and recently I've installed postfix MTA on my server following this tutorial.
The problem is the email I send goes into spam, not inbox. Any idea what's wrong and how can I fix it? Noted that my domain name isn't into black list. Because few months ago, I did in on another server and emails sent as well (they went into inbox).
Also I send email via command line interface like this:
echo "This is the body of the email" | mail -s "This is the subject line" <my_email>
What should I do now?
Also this is my /etc/postfix/main.cf
file on the server and this is my DNS records on cloudflare:
In the last year, several mail providers (most notably GMail) have started to put all Emails received without TLS into the spam folder. Try adding the following lines to your postfix configuration:
After doing
systemctl reload postfix
follow the instructions at https://www.port25.com/authentication-checker/ to validate your setup.