Configure the e-mail server in Sendmail for flexible use of e-mail

Source: Internet
Author: User
Tags email account mail account

In LINUX, it is very easy to configure the e-mail server for Sendmail to open an e-mail account for a new user. You only need to add a new user in LINUX. The user account and password are the account and password of e-mail. For example, I open an E-Mail account for a new user test. Run the following command:
 

 
 
  1. adduser test  
  2. passwd test  


In this way, the e-mail address of the new user is:
Test@company.com
The password is the account password.
Sendmail: configure the e-mail server to set an alias for the e-mail account


If some users want to use multiple email addresses, do they need to open multiple accounts for them? If so, it will increase the difficulty of account management. Therefore, LINUX provides a way to set aliases.
For example, a user named "Li Xiaodong" wants to have the following e-mail addresses:

 
 
  1. wdm@company.com  
  2. wangdm@company.com  
  3. daming@company.com  


To configure the e-mail server for Sendmail, follow these steps.
1) log on to the server as root;
2) add an account lxd;
3) edit the/etc/aliases file;
4) add two rows:
Xiaodong: lxd
Tigger: lxd
5) Save the disk and exit;
6) run the following command:
Newaliases

In this way, emails sent to Li Xiaodong can use three email addresses, while Li Xiaodong only needs one email account: the lxd@company.com can receive all emails sent to the preceding three email addresses.

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.