Find the answer to your Linux question:
Results 1 to 6 of 6
If I want to have all mail for root forwarded to anyaddress@mydomain.com , what is the simplest way of doing so?...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Apr 2007
    Posts
    12

    root email


    If I want to have all mail for root forwarded to anyaddress@mydomain.com, what is the simplest way of doing so?

  2. #2
    Super Moderator Roxoff's Avatar
    Join Date
    Aug 2005
    Location
    Nottingham, England
    Posts
    3,914
    Are you running sendmail? If so, edit /etc/mail/aliases and edit the entry that says who 'root' is, and point it at that address. Then run 'newaliases'.
    Linux user #126863 - see http://linuxcounter.net/

  3. #3
    Just Joined!
    Join Date
    Apr 2007
    Posts
    12
    I'm running postfix, with CentOS 4.4.

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined! s13884's Avatar
    Join Date
    Apr 2007
    Posts
    28

    Cool

    hello dude,

    just use the mail command
    then specify
    TO: Example@mydomain.com
    FROM : Example@mydomain.com

    But one thing u need to check your sendmail is properly installed or not
    use command "rpm -qa sendmail" otherwise use the GUI tools for sendmail configuration /usr/sbin/system-config-packages.

    If it's already installed then no problem check the service is running
    check by this command "service sendmail status/start/stop"
    otherwise u can do this easyest way like /etc/init.d/sendmail status/start/stop

    If u have problem about this let me know.....

    cheers,
    Linux is Rocking

  6. #5
    Super Moderator Roxoff's Avatar
    Join Date
    Aug 2005
    Location
    Nottingham, England
    Posts
    3,914
    Quote Originally Posted by s13884 View Post
    hello dude,

    just use the mail command
    then specify
    TO: Example@mydomain.com
    FROM : Example@mydomain.com

    But one thing u need to check your sendmail is properly installed or not
    use command "rpm -qa sendmail" otherwise use the GUI tools for sendmail configuration /usr/sbin/system-config-packages.

    If it's already installed then no problem check the service is running
    check by this command "service sendmail status/start/stop"
    otherwise u can do this easyest way like /etc/init.d/sendmail status/start/stop

    If u have problem about this let me know.....

    cheers,
    Linux is Rocking
    But he's using postfix, said so in the post above yours.
    Linux user #126863 - see http://linuxcounter.net/

  7. #6
    Super Moderator Roxoff's Avatar
    Join Date
    Aug 2005
    Location
    Nottingham, England
    Posts
    3,914
    There might be some information here at postfix.org that you might find useful. It tells you how alias files are declared. I cant try any of this out, of course, because I'm using sendmail.
    Linux user #126863 - see http://linuxcounter.net/

Posting Permissions

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