DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 2nd July 2008
sheriff26 sheriff26 is offline
New User
 
Join Date: Jun 2008
Posts: 6
Default root mail

hi all

Question!
How can i forward mails from root to a gmail account ?

Thanks
Reply With Quote
  #2   (View Single Post)  
Old 2nd July 2008
sheriff26 sheriff26 is offline
New User
 
Join Date: Jun 2008
Posts: 6
Default

OK. Solved. Thanks
Reply With Quote
  #3   (View Single Post)  
Old 2nd July 2008
saritor saritor is offline
New User
 
Join Date: Jun 2008
Posts: 2
Default

sheriff26, I have been looking for a simple way to do this, could you tell me how you did it?
Reply With Quote
  #4   (View Single Post)  
Old 2nd July 2008
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin Tournoij
Tcpdump Spy
 
Join Date: Apr 2008
Location: Ireland
Posts: 2,245
Default

Use aliases(5).

Quick instructions:
At the top of /etc/aliases add/change this:
Code:
root:   carpetsmoker
carpetsmoker: carpetsmoker@rwxrwxrwx.net
The "root: " should already be there, you can use an email address or forward it to another user.

When you're done editing the file, you must run newaliases(1) for the changes to be effective.
Reply With Quote
  #5   (View Single Post)  
Old 2nd July 2008
anomie's Avatar
anomie anomie is offline
Local
 
Join Date: Apr 2008
Location: Texas
Posts: 445
Default

Note also: from the aliases(5) manpages...
Quote:
After aliasing has been done, local and valid recipients who have a
``.forward'' file in their home directory have messages forwarded to
the list of users defined in that file.
__________________
Kill your t.v.
Reply With Quote
  #6   (View Single Post)  
Old 2nd July 2008
saritor saritor is offline
New User
 
Join Date: Jun 2008
Posts: 2
Default

Got this working. Silly errors in configuration files ruin your day sometimes...

Thanks for the help!

Last edited by saritor; 2nd July 2008 at 06:45 PM.
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
e-mail notification status? jggimi Feedback and Suggestions 3 17th September 2009 04:49 AM
ssh root Nk2Network OpenBSD Security 22 8th April 2009 06:59 PM
Mail scenario mtx General software and network 1 12th December 2008 06:37 PM
pf blocking php mail ijk FreeBSD Security 7 30th October 2008 08:33 PM
Replacement for Mail? Bruco FreeBSD Ports and Packages 9 14th June 2008 05:15 PM


All times are GMT. The time now is 03:23 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick