The Root user forwards emails to his inbox.

Source: Internet
Author: User
Article Title: the Root user forwards emails to his inbox. Linux is a technology channel of the IT lab in China. Including desktop applications, Linux system management, kernel research, embedded Systems, open-source systems, and other basic classification systems in Linux often send "emails" to remind users of problems in the system. However, these emails are sent to the root user.
 
For the sake of system security, we do not recommend that you directly use the root account for routine operations. Therefore, you do not need to log on to the root name frequently to check emails.
 
Comparison of the last section of the original text ?? Close? Dream Axel ?? Forgive me? BR>
If you are familiar with mutt, you can usually use the sudo mutt-f/var/mail/root command to read system messages. However, there is also a simpler way to forward these emails to your local user inbox and use your favorite email client to read them.
 
Note! Replace username with your username.
 
First, you need an email address. It is better to have an old email in the root account.
 
Cd/var/mail
 
Sudo cp root username
 
Sudo chown username
 
Sudo chgrp username mail
 
The above command creates a mailbox and gives the user appropriate permissions. The current mailbox content is a copy of the root mailbox.
 
Now you need to forward all new emails sent to the root user to your inbox.
 
Sudo gedit/root/. forward
 
Write the following line in and save the disk and exit.
 
Username @ localhost
 
From now on, you can receive all emails sent to root. To make it easier, configure the mail client to read the mail now.
 
If you encounter permission problems when configuring clients such as Thunderbird or Evolution, modify the permissions of the/var/mail folder.
 
Sudo chmod 777/var/mail
 
When configuring an account in Evolution or Thunderbird. Select "Standard Unix mbox spool or directory" for the server type ."
 
Path:/var/mail/username
 
The Mail sending method is Sendmail. You can set a name for your account, such as username @ localhost, Local Mail, or something similar. OK! Done!
 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.