HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Technical (http://www.howtoforge.com/forums/forumdisplay.php?f=8)
-   -   Help forward root email to me (http://www.howtoforge.com/forums/showthread.php?t=316)

domino 18th August 2005 10:35

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?

till 18th August 2005 11:06

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?

domino 18th August 2005 11:12

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

till 18th August 2005 11:17

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 :D

domino 18th August 2005 11:26

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 :D. Now just wait to for the next email logs to get forwarded. :cool:

linuxfast 21st September 2005 12:50

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


domino 21st September 2005 16:04

Yea, I already set log watch to high. Now I get mail from logwatch I completely don't understand :eek:.

themachine 8th October 2005 23:31

/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.

transops.net 17th December 2005 11:56

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. :)

falko 17th December 2005 13:46

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! :)


All times are GMT +2. The time now is 17:44.

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