软件:email

差别

这里会显示出您选择的修订版和当前版本之间的差别。

到此差别页面的链接

两侧同时换到之前的修订记录 前一修订版
后一修订版
前一修订版
软件:email [2025/12/03 15:00] admin软件:email [2025/12/03 15:04] (当前版本) admin
行 16: 行 16:
 sudo apt-get update sudo apt-get update
 sudo apt-get install postfix sudo apt-get install postfix
-sudo vi /etc/postfix/main.cf +sudo dpkg-reconfigure postfix 
-我的主机名 = mail.example.com +General type of mail configuration: Internet Site 
-我的域名 = example.com +NONE doesn't appear to be requested in current config 
-我的原产地 = $mydomain +System mail name: example.com 
-inet_interfaces = 全部 +Root and postmaster mail recipient: <admin_user_name> 
-mydestination = $myhostname、localhost.$mydomain、localhost、$mydomain +Other destinations for mail: server1.example.comexample.comlocalhost.example.com, localhost 
-mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 +Force synchronous updates on mail queue?No 
-home_mailbox = Maildir/ +Local networks: 127.0.0.0/8 
-为确保配置安全,应激活 SMTP 身份验证。为此,请在您的 main.cf 中: +Yes doesn't appear to be requested in current config 
- +Mailbox size limit (bytes): 0 
-smtpd_sasl_type = dovecot +Local address extension character+ 
-smtpd_sasl_path = private/auth +Internet protocols to useall
-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 = /etc/ssl/certs/ssl-cert-snakeoil.pem +
-smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key +
-smtpd_use_tls = yes +
-smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache +
-smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache +
 </code> </code>
  
  
  • 软件/email.1764745230.txt.gz
  • 最后更改: 2025/12/03 15:00
  • admin