Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Technical

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 18th August 2005, 10:35
domino domino is offline
Senior Member
 
Join Date: Aug 2005
Posts: 364
Thanks: 0
Thanked 9 Times in 8 Posts
Default Help forward root email to me

Root receives mail every now an again. Seeing that I have not found a way to fetch root email, I want to forward all email from root to my main email account on the same server. Please help?
Reply With Quote
Sponsored Links
  #2  
Old 18th August 2005, 11:06
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,717
Thanks: 820
Thanked 5,322 Times in 4,175 Posts
Default

Quote:
Originally Posted by domino
Root receives mail every now an again. Seeing that I have not found a way to fetch root email, I want to forward all email from root to my main email account on the same server. Please help?
Have you tried to make a file

/root/.forward

that contains only the email address where the mail shall be forwarded to?
Reply With Quote
  #3  
Old 18th August 2005, 11:12
domino domino is offline
Senior Member
 
Join Date: Aug 2005
Posts: 364
Thanks: 0
Thanked 9 Times in 8 Posts
Default

Man, it's hard finding the simplist answers on google. Is it possible to forward existing mail? I have maybe 300kb of logs stuck in root mailbox.

Thank you
Reply With Quote
  #4  
Old 18th August 2005, 11:17
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,717
Thanks: 820
Thanked 5,322 Times in 4,175 Posts
Default

Quote:
Originally Posted by domino
Man, it's hard finding the simplist answers on google. Is it possible to forward existing mail? I have maybe 300kb of logs stuck in root mailbox.

Thank you
If you have a maildir system, you can copy the mails simply in the maildir of another account, maybe you have to change tho owner too.

If you have mbox files, make shure thet the account that shall receive the mail has no mails inside, then copy the mbox file from the root user over the (empty) mbox file of the other user. It is a good idea to stop postfix while you are doing this
Reply With Quote
  #5  
Old 18th August 2005, 11:26
domino domino is offline
Senior Member
 
Join Date: Aug 2005
Posts: 364
Thanks: 0
Thanked 9 Times in 8 Posts
Default

Great! Will do that. Or if you're too lazy or have no idea what maildir or mbox is, just log into webmin and read the email then delete them . Now just wait to for the next email logs to get forwarded.
Reply With Quote
  #6  
Old 21st September 2005, 12:50
linuxfast linuxfast is offline
Member
 
Join Date: Sep 2005
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
Default

If you are running logwatch, you can also edit the line in your logwatch.conf which is:

Code:
MailTo = root
to make sure that the logwatch files come to you directly.

Personally, I also like to change the detail to high

Code:
# The default detail level for the report.
# This can either be Low, Med, High or a number.
# Low = 0
# Med = 5
# High = 10
Detail = High
Reply With Quote
  #7  
Old 21st September 2005, 16:04
domino domino is offline
Senior Member
 
Join Date: Aug 2005
Posts: 364
Thanks: 0
Thanked 9 Times in 8 Posts
Default

Yea, I already set log watch to high. Now I get mail from logwatch I completely don't understand .
Reply With Quote
  #8  
Old 8th October 2005, 23:31
themachine themachine is offline
Senior Member
 
Join Date: Oct 2005
Location: Texas, USA
Posts: 109
Thanks: 0
Thanked 0 Times in 0 Posts
Default /etc/aliases???

I've always found that adding a "root: username_to_forward_to" line to your '/etc/aliases' file is the best option for forwarding root's email.
Reply With Quote
  #9  
Old 17th December 2005, 11:56
transops.net transops.net is offline
Junior Member
 
Join Date: Dec 2005
Location: Atlanta, GA, USA
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Converting MBOXes.

Quote:
Originally Posted by domino
Man, it's hard finding the simplist answers on google. Is it possible to forward existing mail? I have maybe 300kb of logs stuck in root mailbox.

Thank you
If you need to convert an MBOX style email repository to MAILDIR format, you can try this handy little script: http://batleth.sapienti-sat.org/projects/mb2md/

I used it on over 6 GB of mailboxes, and it was finished in about half an hour on my test rig.
Reply With Quote
  #10  
Old 17th December 2005, 13:46
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,739 Times in 2,574 Posts
 
Default

Quote:
Originally Posted by transops.net
If you need to convert an MBOX style email repository to MAILDIR format, you can try this handy little script: http://batleth.sapienti-sat.org/projects/mb2md/

I used it on over 6 GB of mailboxes, and it was finished in about half an hour on my test rig.
I've also used this once, and it is really good!
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

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
Hiding email addresses myles Programming/Scripts 5 1st December 2008 12:09
root password for Knoppix? kermit Technical 3 8th May 2007 00:06
Forgot root password leno Technical 3 8th October 2005 23:40
email client configuration davidg General 3 22nd August 2005 16:40
webmail is using the 'wrong' email .. :( hagel General 3 16th August 2005 20:16


All times are GMT +2. The time now is 03:37.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.