LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-24-2009, 03:02 AM   #1
[KIA]aze
Member
 
Registered: Jun 2006
Distribution: Debian, Ubuntu, Windows XP
Posts: 146

Rep: Reputation: 16
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
...

Last edited by [KIA]aze; 06-24-2009 at 03:07 AM.
 
Old 06-24-2009, 04:50 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,406
Blog Entries: 55

Rep: Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578
Thanks for updating the OP with your solution.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
virtusertable vs. aliases and multiple recipients Skip-DMP Linux - Software 7 10-04-2009 06:14 AM
Linux ICQ client with a multiple recipients support linderox Linux - Software 1 03-01-2008 02:20 PM
multiple recipients Procmail - fetchmail Problem lucastic Linux - Software 2 03-27-2006 02:17 AM
Procmail recipe-multiple recipients at same domain LocoMojo Linux - Software 0 01-19-2006 11:13 PM
exim 4 - multiple recipients for one alias Yoss Linux - Software 2 02-10-2004 01:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration