Howto Forward root’s mail to your inbox
Sponsored Link
Note:- Replace username with your account name.
First, you need a mailbox, preferably with all of root's old mail already in it.
cd /var/mail
sudo cp root username
sudo chown username username
sudo chgrp username mail
That creates a mailbox for your username with the appropriate user and group permissions. The contents of the mailbox are a copy of root's mailbox.
Now you need to forward all of root's incoming mail to your inbox.
sudo gedit /root/.forward
Enter the following line save and exit the file
username@localhost
Now, you will receive any mail sent to root. To make things more convenient, let's set up Evolution to read the mail.
Change the permissions of /var/mail directory if you get any permission errors in Thunderbird or Evolution mail client
sudo chmod 777 /var/mail
Open up Evolution. In Tools -> Settings -> Mail Accounts, click Add. Enter your Full Name if you wish, and your local mail address username@localhost, then click Forward.
For server type, select "Standard Unix mbox spool or directory." For Path, enter /var/mail/username , then click Forward.
The options on the next screen are optional.
On the next screen, select Sendmail for the Server Type, then click Forward. Name the account however you wish. Use username@localhost, Local Mail, or something similar. Now you're finished.
To test, compose a mail to root@localhost and send it. Then click Send/Receive. You should see the new mail pop up in your inbox.
Hell, would you not just edit /etc/aliases and set?:
root: myUser
hey thanks for the brilliant post! The resource will hlp me that for sure. Will there be any update on this post BTW? I have added you and have subscribed.
an even easier way would just be to remove the alias and read the mail as root in the first place…
i think this is wrong
sudo chgrp username mail
the right one is ?
sudo chgrp mail username