Discover Centmin Mod today
Register Now

Issue with getting CMM related emails

Discussion in 'Install & Upgrades or Pre-Install Questions' started by Jay Chen, Jan 11, 2022.

  1. Jay Chen

    Jay Chen Active Member

    181
    60
    28
    Sep 10, 2017
    Ratings:
    +116
    Local Time:
    9:59 AM
    Please fill in any relevant information that applies to you:
    • CentOS Version: CentOS 7
    • Centmin Mod Version Installed: 23.09beta01
    • Nginx Version Installed: nginx/1.21.5
    • When was last time updated Centmin Mod code base ? : brand new install
    • Persistent Config: D
      Code (Text):
      NGINX_SSLCACHE_ALLOWOVERRIDE='y'
      SET_DEFAULT_MYSQLCHARSET='utf8mb4'
      AUTOHARDTUNE_NGINXBACKLOG='y'
      ZSTD_LOGROTATE_NGINX='y'
      ZSTD_LOGROTATE_PHPFPM='y'
      NGINX_LIBBROTLI='y'
      NGXDYNAMIC_BROTLI='y'
      PHP_BROTLI='y'
      PHP_PGO='y'
      PHP_LZFOUR='y'
      PHP_LZF='y'
      PHP_ZSTD='y'
      
      MARCH_TARGETNATIVE='n'
      LETSENCRYPT_DETECT='y'
      DUALCERTS='y'
      DISABLE_IPVSIX='y'
      
    I just installed CMM on a new VPS and I got the message "You have new mail in /var/spool/mail/root"

    After checking the root mail, I noticed the from and to are the same, both are root@hostname.localdomain. Could this be the issue? This is my first time running into email issue with CMM.
    Code (Text):
    From root@hostname.localdomain  Tue Jan 11 01:14:11 2022
    Return-Path: <root@hostname.localdomain>
    X-Original-To: root
    Delivered-To: root@hostname.localdomain
    Received: by hostname.localdomain (Postfix, from userid 0)
        id D9457119437; Tue, 11 Jan 2022 01:14:11 -0500 (EST)
    From: root@hostname.localdomain
    To: root@hostname.localdomain
    Subject: lfd on hostname: blocked 112.85.42.74 (CN/China/-)
    Message-Id: <20220111061411.D9457119437@hostname.localdomain>
    Date: Tue, 11 Jan 2022 01:14:11 -0500 (EST)
    
    Time:     Tue Jan 11 01:14:11 2022 -0500
    IP:       112.85.42.74 (CN/China/-)
    Failures: 5 (sshd)
    Interval: 3600 seconds
    Blocked:  Permanent Block [LF_SSHD]
    


     
  2. eva2000

    eva2000 Administrator Staff Member

    53,178
    12,112
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,647
    Local Time:
    11:59 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Who's the web host, make sure they don't block outbound Postfix emails by default. Linode, Vultr and some others for new servers they block SMTP outbound emails until you contact them to provide verification ID - this is a spam precaution measure they take.

    You can read full guide for outbound email sending and troubleshooting steps at https://community.centminmod.com/th...ver-email-doesnt-end-up-in-spam-inboxes.6999/

    Could be same issue as @cloud9 that web host blocked outgoing emails https://community.centminmod.com/threads/email-issue.22342/ ?
     
  3. cloud9

    cloud9 Premium Member Premium Member

    431
    117
    43
    Oct 6, 2015
    England
    Ratings:
    +217
    Local Time:
    2:59 PM
    1.25.3
    10.6.x
    Might be worth noting Vultr have no intention of unblocking port 25 for outgoing smtp no matter what you ask them...... They would rather loose the customer than go back on their blanket policy
     
  4. Jay Chen

    Jay Chen Active Member

    181
    60
    28
    Sep 10, 2017
    Ratings:
    +116
    Local Time:
    9:59 AM
    Its Hetzner, I checked with them a few days ago and was told that they unblocked mail ports for my vps.
    I will send an email to their customer service again, hopefully this is the issue.
     
  5. Jay Chen

    Jay Chen Active Member

    181
    60
    28
    Sep 10, 2017
    Ratings:
    +116
    Local Time:
    9:59 AM
    Does this mean you will have to use your own or 3rd party mail server?
     
  6. Jay Chen

    Jay Chen Active Member

    181
    60
    28
    Sep 10, 2017
    Ratings:
    +116
    Local Time:
    9:59 AM
    I just did a test to send an email to my outlook and I got it, but not Gmail, using following command
    Code (Text):
    echo "mail-test" | mail -s "mail-tester" email@outlook.com

    I think Gmail is blocking the email. I will go through the outbound email sending and troubleshooting steps @eva2000 provided and see if I can fix this issue.
     
  7. cloud9

    cloud9 Premium Member Premium Member

    431
    117
    43
    Oct 6, 2015
    England
    Ratings:
    +217
    Local Time:
    2:59 PM
    1.25.3
    10.6.x
    Yes, ie amazon, gmail, Namecheap Privateemail, other SMPT hosting
     
  8. Jay Chen

    Jay Chen Active Member

    181
    60
    28
    Sep 10, 2017
    Ratings:
    +116
    Local Time:
    9:59 AM
    good luck with the process, I think gmail has a free tier that allows 500 emails/day
     
  9. eva2000

    eva2000 Administrator Staff Member

    53,178
    12,112
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,647
    Local Time:
    11:59 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    As mentioned above, for sending mail from server you can use Amazon SES too via Postfix MTA relay setup. I do that on my servers too. See an example at https://community.centminmod.com/th...cloudflare-forward-root-mail-safely-er.18602/

    Latest Postfix MTA relay with Amazon SES docs at Integrating Amazon SES with Postfix - Amazon Simple Email Service Classic just no need to uninstall Sendmail and install Postfix as that is already done during Centmin Mod initial install.
     
  10. cloud9

    cloud9 Premium Member Premium Member

    431
    117
    43
    Oct 6, 2015
    England
    Ratings:
    +217
    Local Time:
    2:59 PM
    1.25.3
    10.6.x
    Im using Namecheap Privateemails - works a treat - wasted hours trying to get Amazon set up - every three days I get an email from them saying the DNS is not set - yet all the cnames (they gave me) are set up perfect - so I gave up with amazon - gmail - cant stand google so didnt even try them
     
  11. eva2000

    eva2000 Administrator Staff Member

    53,178
    12,112
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,647
    Local Time:
    11:59 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    If your using Cloudflare mail related DNS records need to be not proxied with orange cloud disabled.
     
  12. cloud9

    cloud9 Premium Member Premium Member

    431
    117
    43
    Oct 6, 2015
    England
    Ratings:
    +217
    Local Time:
    2:59 PM
    1.25.3
    10.6.x
    Nope - no Cloudflare