Learn about Centmin Mod LEMP Stack today
Become a Member

Email DNS Gmail e-mail delivery problem

Discussion in 'Domains, DNS, Email & SSL Certificates' started by sepulchre, Apr 16, 2019.

  1. sepulchre

    sepulchre Member

    145
    22
    18
    Dec 22, 2014
    Ratings:
    +26
    Local Time:
    4:31 PM
    Somehow mails can't be delivered to gmail. It is a huge problem. My users who register with gmail don't get activation mails or when someone gets a new pm, they don't get the e-mail reminding them this.

    • I am using cloudflare for DNS.
    • Zohomail for mail.
    • Centminmod for the server.

    Error:

    Code:
    <[email protected]>: host gmail-smtp-in.l.google.com[74.125.140.27] said:
    550-5.7.1 This message does not have authentication information or fails to
    pass 550-5.7.1 authentication checks. To best protect our users from spam,
    the 550-5.7.1 message has been blocked. Please visit 550-5.7.1
    https://support.google.com/mail/answer/81126#authentication for more 550
    5.7.1 information. x2si10647871wmk.38 - gsmtp (in reply to end of DATA
    command)
    Reporting-MTA: dns; server.xxx.com
    X-Postfix-Queue-ID: 5E83BB7AC1
    X-Postfix-Sender: rfc822; [email protected]
    Arrival-Date: Mon, 15 Apr 2019 14:35:21 +0000 (UTC)
    
    Final-Recipient: rfc822; [email protected]
    Action: failed
    Status: 5.7.1
    Remote-MTA: dns; gmail-smtp-in.l.google.com
    Diagnostic-Code: smtp; 550-5.7.1 This message does not have authentication
    information or fails to pass 550-5.7.1 authentication checks. To best
    protect our users from spam, the 550-5.7.1 message has been blocked. Please
    visit 550-5.7.1
    https://support.google.com/mail/answer/81126#authentication for more 550
    5.7.1 information. x2si10647871wmk.38 - gsmtp
    

    What I have is DNS A, AAA, MX records and SPF, DKIM, DMARC


    upload_2019-4-15_17-17-1.png


    I didn't enable reverse DNS for the server (didn't know that I had to), I thought that might solve the problem, but did that today.

    upload_2019-4-15_17-20-22.png

    upload_2019-4-15_17-21-44.png

    And this is the results from intodns.com

    upload_2019-4-15_17-24-57.png

    And then this is from mail-tester.com

    upload_2019-4-15_17-31-44.png

    Now you could say my SPF and DKIM are not configured. But:

    upload_2019-4-15_17-38-58.png

    upload_2019-4-15_17-39-34.png

    I don't really know what else I can do. I tried everything and don't know what I am doing wrong here.

    Would appreciate help.
     
  2. eva2000

    eva2000 Administrator Staff Member

    41,645
    9,380
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,408
    Local Time:
    12:31 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    follow steps and diagnostic tools outlined at https://community.centminmod.com/th...ver-email-doesnt-end-up-in-spam-inboxes.6999/

    noting the message about
     
    • Winner Winner x 1
  3. sepulchre

    sepulchre Member

    145
    22
    18
    Dec 22, 2014
    Ratings:
    +26
    Local Time:
    4:31 PM
    Ah, now I understand the problem.

    The whole time XenForo was sending the e-mails through Centmin Mod Postfix MTA, even though I haven't configured it.

    I had to choose the SMTP option in XenForo settings in order to use zohomail. I thought choosing the default option in XF will do it just fine, but it didn't.

    Now it seems okay, my mail goes through and lands in gmail. Also the mail-tester now gives me 9/10 points instead of 4. This was madness for me, such a simple thing... I am so stupid.
     
    • Like Like x 1
  4. eva2000

    eva2000 Administrator Staff Member

    41,645
    9,380
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,408
    Local Time:
    12:31 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    Yeah there's 2 sets of SPF/DKIM/DMARC you need to setup one for main host name and one for site's domain. You would of got working emails too if you setup the 2nd set of SPF/DMARC/DKIM for main hostname too.
     
    • Like Like x 1
  5. sepulchre

    sepulchre Member

    145
    22
    18
    Dec 22, 2014
    Ratings:
    +26
    Local Time:
    4:31 PM
    Is there a good reason also to set it up for the hostname now since I got it working for the domain?

    Let me ask differently. What are the advantages of sending the mails though a 3rd party instead of Centmin mod?

    Are there any advantages of setting BOTH ways to be able to send mails by configuring SPF/DKIM/DMARC for both?
    Is one sufficient?
     
  6. eva2000

    eva2000 Administrator Staff Member

    41,645
    9,380
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,408
    Local Time:
    12:31 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    working main hostname is needed for many things in centmin mod, see step 1 of getting started guide at https://centminmod.com/getstarted.html

    not all 3rd party smtp created equal, zoho, gmail, outlook smtp have rate limits of how much you can send and frequency of sending while proper transactional smtp services like mailgun, sendgrid and amazon ses have better limits and more reputation build up over time for sending IPs so better mail deliverability than local centmin mod sent server IP reputation

    you'd want both as if you setup script and email alerts from shell scripts, cron jobs and centmin.sh menu option 22 wordpress installs, then emails are sent via local postfix MTA so need that main hostname setup properly as per https://community.centminmod.com/th...ver-email-doesnt-end-up-in-spam-inboxes.6999/
     
    • Like Like x 1