Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

# some edits for 02-basic-email-system.md #1404

Merged
merged 1 commit into from
Aug 9, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions docs/guides/email/02-basic-email-system.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ contributors:

# Overview

The purpose of this document is to provide the reader with a detailed understanding of the various components of an email system, including installation, basic configuration, and association. In a production environment, the recommendation is that you use an open-source email server(s).
This document aims to provide the reader with a detailed understanding of the various components of an email system, including installation, basic configuration, and association. The recommendation is that you use an open source email server(s) in a production environment.

All commands in this document are executed using **root(uid=0)**.

Expand Down Expand Up @@ -169,7 +169,7 @@ Mysql > grant all privileges on *.* to 'mailrl'@'%' with grant option;

!!! info

You don't have to use the same method as the author. it is also possible to install Mysql from a repository or docker.
You don't have to use the same method as the author. Installing Mysql from a repository or docker is also possible.

#### Create tables and insert data

Expand Down Expand Up @@ -242,7 +242,7 @@ $6$8jpmvCw8RqNfHYW4$pOlsEZG066eJuTmNHoidtvfWHe/6HORrKkQPwv4eyFxqGXKEXhep6aIRxAtv
Use the $ sign to separate the output text information.

* 6: It means id. For the SHA-512 encryption algorithm, it is fixed at 6.
* 8jpmvCw8RqNfHYW4: Also known as "salt". Its main function is to increase the security and improve the difficulty of cracking. It can be randomly generated by the system, or it can be specified manually.
* 8jpmvCw8RqNfHYW4: Also known as "salt". Its main function is to increase the security and improve the difficulty of cracking. The system can randomly generate it or it can be specified manually.
* pOlsEZG066eJuTmNHoidtvfWHe/6HORrKkQPwv4eyFxqGXKEXhep6aIRxAtv7FDDIq/ojIY1SfWAQkk7XACeZ0: 86 fixed number of characters. Refers to ciphertext passwords generated by using encryption algorithms.

### Install and configure `postfix`
Expand Down Expand Up @@ -273,7 +273,7 @@ You need to know these binary executable files:

!!! tip

If you have more than one MTA on your server, you can specify the default MTA using the `alternatives --config mta` command.
You can specify the default MTA using the `alternatives -config mta` command if you have more than one MTA on your server.

#### Explanation of the /etc/postfix/main.cf file

Expand Down Expand Up @@ -313,14 +313,14 @@ meta_directory = /etc/postfix
shlib_directory = /usr/lib64/postfix
```

* **compatibility_level = 2**. A new mechanism introduced in postfix 3 is designed to be compatible with previous versions of postfix.
* **compatibility_level = 2**. A new mechanism introduced in Postfix 3 is designed to be compatible with previous versions.
* **data_directory = /var/lib/postfix**. The directory where the cached data is stored.
* **<font color="red">myhostname = host.domain.tld</font>**. Important parameters that have been commented out. You need to change it to the hostname under your domain name.
* **<font color="red">mydomain = domain.tld</font>**. Important parameters that have been commented out. You need to change it to your domain name.
* **<font color="red">myorigin = \$myhostname</font>** and **<font color="red">myorigin = $mydomain</font>**. Important parameters that have been commented out. The main function is to complement the sender's mail suffix. **\$** represents a reference parameter variable.
* **<font color="red">inet_interfaces = localhost</font>**. When receiving mails, this parameter indicates the address to be listened. The value is usually modified to "all".
* **inet_protocols = all**. Enable IPv4, and IPv6 if supported
* **<font color="red">mydestination = \$myhostname, localhost.\$mydomain, localhost</font>**. Indicates that I can receive mail from where.
* **<font color="red">mydestination = \$myhostname, localhost.\$mydomain, localhost</font>**. Indicates the reception of mail from the stated destination.
* **unknown_local_recipient_reject_code = 550**. The error code returned when sending to an account that does not exist local domain or rejecting an email.
* **mynetworks =**. Set which hosts' emails can be forwarded.
* **relay_domains = $mydestination**. Set which domains' emails can be forwarded.
Expand All @@ -336,7 +336,7 @@ Except for the parameter items mentioned or displayed above, some parameters are
* **mailbox_size_limit = 1073741824**. Set the capacity limit for a single mailbox user.
* **smtpd_sasl_type = cyrus**. The type of SASL (Simple Authentication and Security Layer) authentication. You can use `postconf -a` to view.
* **smtpd_sasl_auth_enable = no**. Whether to enable SASL authentication.
* **smtpd_sasl_security_options = noanonymous**. Security options for SASL. Anonymous authentication is disabled by default.
* **smtpd_sasl_security_options = noanonymous**. Security options for SASL. Anonymous authentication is off by default.
* **smtpd_sasl_local_domain =**. The name of the local domain.
* **smtpd_recipient_restrictions =**. Filtering of recipients. The default value is empty.

Expand Down Expand Up @@ -545,9 +545,9 @@ Shell(192.168.100.6) > tree /etc/dovecot/
└── dovecot.conf
```

Yes, both postfix and dovecot have very complex configurations, which is why it is recommended that the vast majority of GNU/Linux system administrators use open-source email servers.
Yes, both Postfix and Dovecot have very complex configurations, so it is recommended that most GNU/Linux system administrators use open source email servers.

As with postfix, to view the complete configuration information, enter the `doveconf` command.
As with postfix, enter the `doveconf` command to view the complete configuration.

The file description is as follows:

Expand All @@ -573,7 +573,7 @@ The file description is as follows:
* `auth_mechanisms = `. The type of authentication mechanism whose values can be multiple and separated by Spaces. Values: plain, login, digest-md5, cram-md5, ntlm, rpa, apop, anonymous, gssapi, otp, skey, gss-spnego.
* `login_trusted_networks= `. Which clients (MUA) are allowed to use Dovecot. It can be a separate IP address, it can be a network segment, or it can be mixed and separated by spaces. Like this-- `login_trusted_networks = 10.1.1.0/24 192.168.100.2`
* `mail_location = `. For an empty value, Dovecot attempts to find the mailboxes automatically (looking at ~/Maildir, /var/mail/username, ~/mail, and ~/Mail, in that order). However, auto-detection commonly fails for users whose mail directory hasn’t yet been created, so you should explicitly state the full location here, if possible.
* `mail_privileged_group = `. This group is enabled temporarily for privileged operations. Currently, this is used only with the INBOX when either its initial creation or dotlocking fails. Typically, this is set to "mail" to give access to /var/mail.
* `mail_privileged_group = `. This group is enabled temporarily for privileged operations. Currently, this is used only with the INBOX when either its initial creation or dotlocking fails. Typically, this is set to "mail" to access /var/mail.

#### Modify multiple files

Expand Down