Mails not received by hotmail and spammed by gmail

September 12, 2014 6.1k 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.

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.

  • How can I check, solve this? and I am using multiple websites/domains on the same droplet. I don;t know if that is a part of the issue.

  • are all the domains giving you spam issues or just a specific one?

    whats the domain associated with the droplet?

  • I have 2 domains. the hostname of my droplet is and thats also the name of the droplet and one of my domains. next to that I have another domain. When sending emails to my gmail account myself with the email accounts on those domains it goes all fine. when the website sends an email it goes to spam folder and to hotmail neither one of them arrives.

  • You can check your PTR records doing a reverse lookup using this tool

    Also do you have an SSL, I try putting your domain in the browser and it pop 'The connection is untrusted' and then when I click trust this site it took me to roundcube login page.

    Using the same tool above I check for https and it gave me an error. I'm wondering if this have something to do with your email problems.

  • fixed the ssl on one domain but I don't know if it will give problems with others since the hostname is different..

    I checked reverse lookup but it points to my hostname as expected.. this is so frustrating.. :o

  • have you tested the email since you fix the SSL problem?

  • Yes I did. Unfortunately no change :/ i created a ticket and they checked all possibilities but everything is fine according to digital ocean support. Pff

  • I suggest you take a look at:

    Sender ID Framework SPF Record Wizard :

    Check your SSL certificates

    MS SNDS IP Status

    ReturnPath Sender Score

    Cisco SenderBase

    and join JMRP
    The Junk Mail Reporting Program (JMRP) is a service provided for email senders by It lets you set up a feedback loop, so you can receive copies of messages users mark as junk.

  • fm I checked and went trough all the websites u gave and applied where necessary as you suggested. The only website I had problems with was the first one to create a SPF record wizard. I filled in everything as I thought it should be.. But I don't know if its correct. Also one of the domains doesn't have a nice working SSL certificate but one does How can I make them both use that certificate?

    This is what I got
    v=spf1 mx ip4: ip4: mx:firstdomain(sameashostname).nl -all

    I changed the names so it would be clear how its build :) the first domain is also the hostname and the one with valid certificate.

Have another answer? Share your knowledge.