LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   How can I forward root mails to multiple recipients? (https://www.linuxquestions.org/questions/linux-server-73/how-can-i-forward-root-mails-to-multiple-recipients-735196/)

[KIA]aze 06-24-2009 03:02 AM

How can I forward root mails to multiple recipients?
 
Hi,

I'd like to forward root mails (like cron job results) to multiple recipients.
How can I do that?

Putting 2 addresses in /root/.forward doesn't seem to work. :(

edit: Solved: Just put the recipients in /etc/aliases as follows:
Code:

# This is the aliases file - it says who gets mail for whom.
#
# >>>>>>>>>>      The program "newaliases" will need to be run
# >> NOTE >>      after this file is updated for any changes
# >>>>>>>>>>      to show through to sendmail.
#
# It is probably best to not work as user root and redirect all
# email to "root" to the address of a HUMAN who deals with this
# system's problems. Then you don't have to check for important
# email too often on the root account.
# The "\root" will make sure that email is also delivered to the
# root-account, but also forwared to the user "joe".

root:  user1, user2
...


unSpawn 06-24-2009 04:50 AM

Thanks for updating the OP with your solution.


All times are GMT -5. The time now is 12:15 AM.