I server can send mail to gmail, yahoo, but not outlook and hotmail, why?

Posted February 15, 2017 6.2k views

I am new at linux, I build my mail service in CentOS using postfix, dovecot and squirrelmail, I can send email to gmail, and yahoo, although some of them are in spam, but my outlook, and hotmail cannot receive any mail. Also, my service cannot receive any mail, even from myself, anyone can teach me ?

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


When it comes to successfully sending and ensuring successful receipt of your e-mail, you’ll need to setup SPF and DKIM for your domain and ensure that Postfix is capable of using it. Without these two things, most e-mail to providers such as Google, Yahoo, Hotmail, Outlook, etc will all land in SPAM as there’s no validation to confirm that who is sending the mail is actually who they say they are.

There’s a really good guide on how to setup both. It’s written for Debian/Ubuntu, though you’d simply need to adjust the packages to match those available to CentOS.

The configuration in the guide, however, should apply and work for any OS.

Could you please paste the DNS records related to your mail server here?

  • I have the txt records
    v=spf1 a mx ~all
    and my dkim record.
    Mx handle by
    A directs to

    • As far as I know, SPF self is enough to let your mail go through.

      It seems that your txt records are correct. Still, you may bypass spf using v=spf1 +all to temporarily allow all the mails claiming from your domain. (Have you considered the DNS global propagation time?)

      What do you mean by “A directs to”?

the server can send mail to Gmail, but not yahoo. This problem is the same with me, after test my whole setting, my problem is not solved after I found Yahoo Helpline Number +1-(833)-222-2937. After talking to Yahoo executive my problem is solved.