You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/guides/email/02-basic-email-system.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ contributors:
6
6
7
7
# Overview
8
8
9
-
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).
9
+
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 opensource email server(s) in a production environment.
10
10
11
11
All commands in this document are executed using **root(uid=0)**.
12
12
@@ -169,7 +169,7 @@ Mysql > grant all privileges on *.* to 'mailrl'@'%' with grant option;
169
169
170
170
!!! info
171
171
172
-
You don't have to use the same method as the author. it is also possible to install Mysql from a repository or docker.
172
+
You don't have to use the same method as the author. Installing Mysql from a repository or docker is also possible.
Use the $ sign to separate the output text information.
243
243
244
244
* 6: It means id. For the SHA-512 encryption algorithm, it is fixed at 6.
245
-
* 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.
245
+
* 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.
246
246
* pOlsEZG066eJuTmNHoidtvfWHe/6HORrKkQPwv4eyFxqGXKEXhep6aIRxAtv7FDDIq/ojIY1SfWAQkk7XACeZ0: 86 fixed number of characters. Refers to ciphertext passwords generated by using encryption algorithms.
247
247
248
248
### Install and configure `postfix`
@@ -273,7 +273,7 @@ You need to know these binary executable files:
273
273
274
274
!!! tip
275
275
276
-
If you have more than one MTA on your server, you can specify the default MTA using the `alternatives --config mta` command.
276
+
You can specify the default MTA using the `alternatives -config mta` command if you have more than one MTA on your server.
***compatibility_level = 2**. A new mechanism introduced in postfix 3 is designed to be compatible with previous versions of postfix.
316
+
***compatibility_level = 2**. A new mechanism introduced in Postfix 3 is designed to be compatible with previous versions.
317
317
***data_directory = /var/lib/postfix**. The directory where the cached data is stored.
318
318
***<fontcolor="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.
319
319
***<fontcolor="red">mydomain = domain.tld</font>**. Important parameters that have been commented out. You need to change it to your domain name.
320
320
***<fontcolor="red">myorigin = \$myhostname</font>** and **<fontcolor="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.
321
321
***<fontcolor="red">inet_interfaces = localhost</font>**. When receiving mails, this parameter indicates the address to be listened. The value is usually modified to "all".
322
322
***inet_protocols = all**. Enable IPv4, and IPv6 if supported
323
-
***<fontcolor="red">mydestination = \$myhostname, localhost.\$mydomain, localhost</font>**. Indicates that I can receive mail from where.
323
+
***<fontcolor="red">mydestination = \$myhostname, localhost.\$mydomain, localhost</font>**. Indicates the reception of mail from the stated destination.
324
324
***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.
325
325
***mynetworks =**. Set which hosts' emails can be forwarded.
326
326
***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
336
336
***mailbox_size_limit = 1073741824**. Set the capacity limit for a single mailbox user.
337
337
***smtpd_sasl_type = cyrus**. The type of SASL (Simple Authentication and Security Layer) authentication. You can use `postconf -a` to view.
338
338
***smtpd_sasl_auth_enable = no**. Whether to enable SASL authentication.
339
-
***smtpd_sasl_security_options = noanonymous**. Security options for SASL. Anonymous authentication is disabled by default.
339
+
***smtpd_sasl_security_options = noanonymous**. Security options for SASL. Anonymous authentication is off by default.
340
340
***smtpd_sasl_local_domain =**. The name of the local domain.
341
341
***smtpd_recipient_restrictions =**. Filtering of recipients. The default value is empty.
342
342
@@ -545,9 +545,9 @@ Shell(192.168.100.6) > tree /etc/dovecot/
545
545
└── dovecot.conf
546
546
```
547
547
548
-
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.
548
+
Yes, both Postfix and Dovecot have very complex configurations, so it is recommended that most GNU/Linux system administrators use opensource email servers.
549
549
550
-
As with postfix, to view the complete configuration information, enter the `doveconf` command.
550
+
As with postfix, enter the `doveconf` command to view the complete configuration.
551
551
552
552
The file description is as follows:
553
553
@@ -573,7 +573,7 @@ The file description is as follows:
573
573
*`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.
574
574
*`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`
575
575
*`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.
576
-
*`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.
576
+
*`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.
0 commit comments