
18th August 2005, 10:35
|
|
Senior Member
|
|
Join Date: Aug 2005
Posts: 364
Thanks: 0
Thanked 4 Times in 3 Posts
|
|
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?
|

18th August 2005, 11:06
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,903
Thanks: 693
Thanked 4,194 Times in 3,212 Posts
|
|
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?
|

18th August 2005, 11:12
|
|
Senior Member
|
|
Join Date: Aug 2005
Posts: 364
Thanks: 0
Thanked 4 Times in 3 Posts
|
|
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
|

18th August 2005, 11:17
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,903
Thanks: 693
Thanked 4,194 Times in 3,212 Posts
|
|
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
|

18th August 2005, 11:26
|
|
Senior Member
|
|
Join Date: Aug 2005
Posts: 364
Thanks: 0
Thanked 4 Times in 3 Posts
|
|
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.
|

21st September 2005, 12:50
|
|
Member
|
|
Join Date: Sep 2005
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
If you are running logwatch, you can also edit the line in your logwatch.conf which is:
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
|

21st September 2005, 16:04
|
|
Senior Member
|
|
Join Date: Aug 2005
Posts: 364
Thanks: 0
Thanked 4 Times in 3 Posts
|
|
Yea, I already set log watch to high. Now I get mail from logwatch I completely don't understand  .
|

8th October 2005, 23:31
|
|
Senior Member
|
|
Join Date: Oct 2005
Location: Texas, USA
Posts: 109
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
/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.
|

17th December 2005, 11:56
|
|
Junior Member
|
|
Join Date: Dec 2005
Location: Atlanta, GA, USA
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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.
|

17th December 2005, 13:46
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
|
|
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!
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 02:39.
|
|
Recent comments
20 hours 51 min ago
1 day 3 hours ago
1 day 7 hours ago
1 day 9 hours ago
1 day 17 hours ago
2 days 2 hours ago
2 days 3 hours ago
2 days 7 hours ago
2 days 11 hours ago
2 days 12 hours ago