Results 1 to 3 of 3

Thread: How does root get mail?

  1. #1
    Join Date
    Jun 2008
    Location
    UK; deep south, far below Watford.
    Posts
    275

    Default How does root get mail?

    I'm installing Apache (it's winning the contest, so far); I notice that mail (I assume these are alerts of some sort) are sent from Apache to root. But how/when does root see that mail? Surely I don't have to set up some sort of email account, do I?
    They said I wasn't fit to live with a pig; my brother stood up for me and said I was.

  2. #2
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,686
    Blog Entries
    4

    Default Re: How does root get mail?

    Usually you forward root's mail to the sysadmin's normal mailbox. Edit /etc/aliases and edit the alias for root to:

    root: somebody@somewhere.else

    or it could also be a local mailbox

    root: somebody

    Then restart postfix and it will rehash /etc/aliases to /etc/aliases.db for postfix's use.

  3. #3
    Join Date
    Nov 2008
    Location
    N. Wales
    Posts
    1,028

    Default Re: How does root get mail?

    ken yap adjusted his/her AFDB on Saturday 08 Aug 2009 12:06 to write:

    >
    > Usually you forward root's mail to the sysadmin's normal mailbox. Edit
    > /etc/aliases and edit the alias for root to:
    >
    > root: somebody@somewhere.else
    >
    > or it could also be a local mailbox
    >
    > root: somebody
    >
    > Then restart postfix and it will rehash /etc/aliases to /etc/aliases.db
    > for postfix's use.
    >
    >


    What ken said,

    but if you do not have it redirected you can open a console su to root and
    run:

    mail

    you will be able to read the mail in the console.

    HTH

    --
    Mark
    Caveat emptor
    Nullus in verba
    Nil illegitimi carborundum

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •