Mails not received by hotmail and spammed by gmail

Posted September 12, 2014 11.3k views

Hello guys, After a lot of configuration in my ubuntu 14.4 my mail sent is not received in any hotmail, live or outlook account. In gmail it goes straight to the spam folder.

I tried testing it with mail-tester and it gives me a 9/10 and the only error is that there is no signing with dkim. I’ve turned on debug mode in amavisd and sent a new email to both gmail and hotmail and this is how the logs look like: ( removed real email addresses and hostname)

Sep 12 06:37:06 hostname postfix/pickup[6898]: F1AAF20A33: uid=33
Sep 12 06:37:07 hostname postfix/cleanup[7675]: F1AAF20A33:
Sep 12 06:37:07 hostname postfix/qmgr[1742]: F1AAF20A33:, size=116574, nrcpt=2 (queue active)
Sep 12 06:37:07 hostname postfix/pipe[7684]: F1AAF20A33:, relay=dovecot, delay=0.1, delays=0.04/0.01/0/0.05, dsn=2.0.0, status=sent (delivered via dovecot service)
Sep 12 06:37:08 hostname postfix/smtp[7683]: F1AAF20A33:,[]:25, delay=1.2, delays=0.04/0.02/0.35/0.82, dsn=2.0.0, status=sent (250 2.0.0 OK 1410518228 ei9si2177318wid.26 - gsmtp)
Sep 12 06:37:08 hostname postfix/qmgr[1742]: F1AAF20A33: removed
Sep 12 06:44:04 hostname postfix/pickup[6898]: D470A20A33: uid=33
Sep 12 06:44:04 hostname postfix/cleanup[7726]: D470A20A33:
Sep 12 06:44:04 hostname postfix/qmgr[1742]: D470A20A33:, size=116546, nrcpt=2 (queue active)
Sep 12 06:44:04 hostname postfix/pipe[7735]: D470A20A33:, relay=dovecot, delay=0.11, delays=0.04/0.01/0/0.05, dsn=2.0.0, status=sent (delivered via dovecot service)
Sep 12 06:44:07 hostname postfix/smtp[7734]: D470A20A33:,[]:25, delay=2.4, delays=0.04/0.02/1.3/1.1, dsn=2.0.0, status=sent (250 Queued mail for delivery)
Sep 12 06:44:07 hostname postfix/qmgr[1742]: D470A20A33: removed

If there is someone who can fix this for me I would be really happy since I’m struggling a few days with this now.. I used the iredmail tutorial on this website to install the email server.

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
2 answers

That happen to me when I setup my droplet, although I was using centos and cpanel. One of the problems I had was that my PTR records weren’t right and that’s why I was getting spam. I would start by checking that.