差别
这里会显示出您选择的修订版和当前版本之间的差别。
| 两侧同时换到之前的修订记录 前一修订版 | |||
| 软件:email [2025/12/03 15:03] – admin | 软件:email [2025/12/03 15:04] (当前版本) – admin | ||
|---|---|---|---|
| 行 17: | 行 17: | ||
| sudo apt-get install postfix | sudo apt-get install postfix | ||
| sudo dpkg-reconfigure postfix | sudo dpkg-reconfigure postfix | ||
| - | + | General type of mail configuration: | |
| - | 我的主机名 = mail.example.com | + | NONE doesn' |
| - | 我的域名 = example.com | + | System |
| - | 我的原产地 = $mydomain | + | Root and postmaster mail recipient: < |
| - | inet_interfaces = 全部 | + | Other destinations for mail: server1.example.com, example.com, |
| - | mydestination = $myhostname、localhost.$mydomain、localhost、$mydomain | + | Force synchronous updates on mail queue?: No |
| - | mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 | + | Local networks: 127.0.0.0/8 |
| - | home_mailbox = Maildir/ | + | Yes doesn' |
| - | 为确保配置安全,应激活 SMTP 身份验证。为此,请在您的 main.cf 中: | + | Mailbox size limit (bytes): 0 |
| - | + | Local address extension character: + | |
| - | smtpd_sasl_type = dovecot | + | Internet protocols to use: all |
| - | smtpd_sasl_path = private/ | + | |
| - | smtpd_sasl_auth_enable = yes | + | |
| - | smtpd_sasl_security_options = noanonymous | + | |
| - | smtpd_sasl_local_domain = $myhostname | + | |
| - | smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated,reject_unauth_destination | + | |
| - | 激活 TLS 加密 | + | |
| - | 为确保连接安全,应为 Postfix 激活 TLS 加密。在您的 main.cf 中: | + | |
| - | + | ||
| - | smtpd_tls_cert_file = / | + | |
| - | smtpd_tls_key_file = / | + | |
| - | smtpd_use_tls = yes | + | |
| - | smtpd_tls_session_cache_database = btree:${data_directory}/ | + | |
| - | smtp_tls_session_cache_database = btree:${data_directory}/ | + | |
| </ | </ | ||