Discover Centmin Mod today
Register Now

Sysadmin STOP... you've got mail!

Discussion in 'System Administration' started by Jimmy, Feb 17, 2017.

  1. Jimmy

    Jimmy Premium Member Premium Member

    1,114
    247
    63
    Oct 24, 2015
    East Coast USA
    Ratings:
    +596
    Local Time:
    7:31 PM
    1.13.x
    MariaDB 10.1.x
    How to change default root@ email address linux / postfix / centos?

    Change Root Email
    Stop getting "You have new mail in /var/spool/mail/root"

    Code:
    # nano /etc/aliases
    Enter at bottom (you'll see another root entry there with a #):
    Code:
    root:  email@domain.com
    Remove existing file:
    Code:
    # rm /var/spool/mail/root
    Wa La, no more notices.

    @eva2000 maybe this could be populated when the person enters their email during the setup process - since you're asking for an email there too and the user is root.
     
    Last edited: Feb 17, 2017
    • Informative Informative x 3
  2. eva2000

    eva2000 Administrator Staff Member

    30,161
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    9:31 AM
    Nginx 1.13.x
    MariaDB 5.5
    Getting Started Guide step 18 ;)

    But yes the intended purpose is eventually take those prompted primary and secondary email address questions on first centmin.sh run and use them for email related stuff.
     
    • Informative Informative x 1
  3. Jimmy

    Jimmy Premium Member Premium Member

    1,114
    247
    63
    Oct 24, 2015
    East Coast USA
    Ratings:
    +596
    Local Time:
    7:31 PM
    1.13.x
    MariaDB 10.1.x
    Must have missed that in the setup guide.

    Thought I remembered a few people posting about the notice, so I figured I'd post it.
     
    • Like Like x 1
  4. eva2000

    eva2000 Administrator Staff Member

    30,161
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,136
    Local Time:
    9:31 AM
    Nginx 1.13.x
    MariaDB 5.5
    • Like Like x 1
    • Agree Agree x 1
  5. RB1

    RB1 Active Member

    281
    72
    28
    Nov 11, 2016
    California
    Ratings:
    +119
    Local Time:
    4:31 PM
    Nginx 1.13.x
    MariaDB 10.1.x
    Cool...I was wondering why I was getting these new mail messages even though I have a primary and secondary mail setup.