gliu11
By:
gliu11

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

February 15, 2017 845 views
Email CentOS

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 ?

2 Answers

@gliu11

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.

https://www.skelleton.net/2015/03/21/how-to-eliminate-spam-and-protect-your-name-with-dmarc/

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

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

    • 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"?

Have another answer? Share your knowledge.