Join the community today
Register Now

Cron update email sent - to address change ?

Discussion in 'Install & Upgrades or Pre-Install Questions' started by cloud9, Apr 10, 2022.

  1. cloud9

    cloud9 Premium Member Premium Member

    431
    117
    43
    Oct 6, 2015
    England
    Ratings:
    +217
    Local Time:
    1:36 AM
    1.25.3
    10.6.x
    Had this

    You have new mail in :
    /var/spool/mail/root

    so looked at it and it showed this

    Code:
    -------------------------------------
    Updated Centmin Mod code
    -------------------------------------
    
    
    From root@server.mydomainname.run  Sat Apr  9 18:00:02 2022
    Return-Path: <root@server.mydomainname.run>
    X-Original-To: root
    Delivered-To: root@server.mydomainname.run
    Received: by server.mydomainname.run (Postfix, from userid 0)
        id 2F9FCC2A3E; Sat,  9 Apr 2022 18:00:02 +0000 (UTC)
    From: "(Cron Daemon)" <root@server.mydomainname.run>
    To: root@server.mydomainname.run
    Subject: Cron <root@server> /usr/local/src/centminmod/updatecm.sh 2>/dev/null
    Content-Type: text/plain; charset=UTF-8
    Auto-Submitted: auto-generated
    Precedence: bulk
    X-Cron-Env: <XDG_SESSION_ID=2935>
    X-Cron-Env: <XDG_RUNTIME_DIR=/run/user/0>
    X-Cron-Env: <LANG=en_US.UTF-8>
    X-Cron-Env: <SHELL=/bin/sh>
    X-Cron-Env: <HOME=/root>
    X-Cron-Env: <PATH=/usr/bin:/bin>
    X-Cron-Env: <LOGNAME=root>
    X-Cron-Env: <USER=root>
    Message-Id: <20220409180002.2F9FCC2A3E@server.mydomainname.run>
    Date: Sat,  9 Apr 2022 18:00:01 +0000 (UTC)
    
    
    -------------------------------------
    Updating Centmin Mod code
    -------------------------------------
    
    * 123.09beta01
    No local changes to save
    Already up-to-date.
    commit cb7b974081d5902ae3951de3830c802f22391d11
    Author: George Liu (eva2000) <eva2000@centminmod.com>
    Date:   Tue Apr 5 07:30:27 2022 +1000
    
    Firstly port 25 is closed so im using Namecheap's private email and SMTP service


    Secondly any way to have this email sent to me rather than root on SMTP and email admin@mydomainname.run
     
  2. eva2000

    eva2000 Administrator Staff Member

    54,384
    12,198
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,763
    Local Time:
    11:36 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  3. cloud9

    cloud9 Premium Member Premium Member

    431
    117
    43
    Oct 6, 2015
    England
    Ratings:
    +217
    Local Time:
    1:36 AM
    1.25.3
    10.6.x
    I presume thats relying on port 25 ?
     
  4. eva2000

    eva2000 Administrator Staff Member

    54,384
    12,198
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,763
    Local Time:
    11:36 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Yes Postfix MTA mail server uses port 25 by default. Who's your web host some web hosts block port 25 until you contact them to request unblocking by providing ID verification. Some web hosts outright ban port 25 and some allow alternative ports for sending i.e. 2525. You'd need to contact your web host to get clarification. If you can change Postfix MTA outbound mail from 25 to 2525, that would be one option.

    Usually, in such changes I use Amazon SES SMTP transactional email and setup Postfix with Amazon SES Postfix relay so that server outbound emails via Postfix go through Amazon SES. Amazon SES Postfix relay is via TLS port 587.

    If you're using Hetzner as indicated from your latest install time metrics you posted then see https://docs.hetzner.com/cloud/servers/faq/#why-can-i-not-send-any-mails-from-my-server

     
    Last edited: Apr 10, 2022
  5. cloud9

    cloud9 Premium Member Premium Member

    431
    117
    43
    Oct 6, 2015
    England
    Ratings:
    +217
    Local Time:
    1:36 AM
    1.25.3
    10.6.x
    Yes thanks - Hetzner

    I gave up with Vultr as they wouldn't not unblock 25 for 1 email a month for anything - total muppets

    With Hetzner - thought it was 3 invoices - so as its 1 invoice and I have just paid ill open a ticket with them and hope they are better than Vultr !

    Thanks
     
    Last edited: Apr 12, 2022
  6. cloud9

    cloud9 Premium Member Premium Member

    431
    117
    43
    Oct 6, 2015
    England
    Ratings:
    +217
    Local Time:
    1:36 AM
    1.25.3
    10.6.x
    Well Hetzner unblocked port 25 and 465 for me today - was no trouble to get the block lifted

    So in a score +1 Hetzner & -1 Vultr
     
  7. eva2000

    eva2000 Administrator Staff Member

    54,384
    12,198
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,763
    Local Time:
    11:36 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Great to hear!