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:
- adduser test
- 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:
- wdm@company.com
- wangdm@company.com
- 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.