Email sent to gmail is marked spam (IP listed in CBL)

Posted July 9, 2015 3.2k views


I am on a Ubuntu VPS. Emails sent to gmail is going in to the spam folder. And some mail clients even won’t receive it even to the spam folder :(

My “/etc/hosts” file looks like this ocr ocr localhost localhost.localdomain ocr

Please help me to resolve this issue


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.

Submit an Answer
1 answer

edit /etc/postfix/

find the line that says

mydomain = localhost


mydomain = localhost.localdomain

edit it so it says your domain. In this example, let’s say your domain is

mydomain =

restart postfix

service postfix restart

and you should be good.