From fe8934094b9089ee734bc2882e33af09f498d78b Mon Sep 17 00:00:00 2001 From: sspencerwire Date: Wed, 9 Aug 2023 08:37:26 -0500 Subject: [PATCH] # some edits for `02-basic-email-system.md` * some sentence simplification --- docs/guides/email/02-basic-email-system.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/docs/guides/email/02-basic-email-system.md b/docs/guides/email/02-basic-email-system.md index 3c755aa19f..eeb19af49b 100644 --- a/docs/guides/email/02-basic-email-system.md +++ b/docs/guides/email/02-basic-email-system.md @@ -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)**. @@ -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 @@ -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` @@ -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 @@ -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. * **myhostname = host.domain.tld**. Important parameters that have been commented out. You need to change it to the hostname under your domain name. * **mydomain = domain.tld**. Important parameters that have been commented out. You need to change it to your domain name. * **myorigin = \$myhostname** and **myorigin = $mydomain**. Important parameters that have been commented out. The main function is to complement the sender's mail suffix. **\$** represents a reference parameter variable. * **inet_interfaces = localhost**. 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 -* **mydestination = \$myhostname, localhost.\$mydomain, localhost**. Indicates that I can receive mail from where. +* **mydestination = \$myhostname, localhost.\$mydomain, localhost**. 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. @@ -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. @@ -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: @@ -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