软件:email

差别

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

到此差别页面的链接

两侧同时换到之前的修订记录 前一修订版
后一修订版
前一修订版
软件:email [2025/12/03 15:03] admin软件:email [2026/01/02 00:57] (当前版本) – 外部编辑 127.0.0.1
行 1: 行 1:
 +====== EMail ======
 +
 电子邮件(E-mail) 电子邮件(E-mail)
 +
 +SMTP服务器: smtp.qq.com  端口: 465(SSL加密)
 +
 +IMAP服务器: imap.qq.com 端口: 993(SSL加密)
 +
 +POP3服务器: pop.qq.com 端口: 995(SSL加密)
  
 SMTP SMTP
行 12: 行 20:
  
 浏览器访问[[http://localhost/webmail/installer.php]] 浏览器访问[[http://localhost/webmail/installer.php]]
 +
 +====== postfix ======
  
 <code -> <code ->
-sudo apt-get update +sudo apt update 
-sudo apt-get install postfix+sudo apt install postfix
 sudo dpkg-reconfigure postfix sudo dpkg-reconfigure postfix
 +General type of mail configuration: Internet Site
 +NONE doesn't appear to be requested in current config
 +System mail name: example.com
 +Root and postmaster mail recipient: <admin_user_name>
 +Other destinations for mail: server1.example.com, example.com, localhost.example.com, localhost
 +Force synchronous updates on mail queue?: No
 +Local networks: 127.0.0.0/8
 +Yes doesn't appear to be requested in current config
 +Mailbox size limit (bytes): 0
 +Local address extension character: +
 +Internet protocols to use: all
  
-我的主机名 = mail.example.com +#方法二 
-我的域名 = example.com +sudo vi /etc/postfix/main.cf 
-我的原产地 $mydomain +myhostname = example.com 
-inet_interfaces = 全部 +alias_maps hash:/etc/postfix/virtual 
-mydestination = $myhostname、localhost.$mydomain、localhost、$mydomain +</code>
-mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 +
-home_mailbox = Maildir/ +
-为确保配置安全,应激活 SMTP 身份验证。为此,请在您的 main.cf 中:+
  
-smtpd_sasl_type = dovecot +====== dovecot ====== 
-smtpd_sasl_path private/auth + 
-smtpd_sasl_auth_enable yes +<code -> 
-smtpd_sasl_security_options noanonymous +sudo apt install dovecot-core dovecot-imapd dovecot-pop3d  
-smtpd_sasl_local_domain = $myhostname + 
-smtpd_recipient_restrictions permit_mynetworks,permit_sasl_authenticated,reject_unauth_destination +sudo vi /etc/dovecot/dovecot.conf 
-激活 TLS 加密 +protocols imap pop3 
-为确保连接安全,应为 Postfix 激活 TLS 加密。在您的 main.cf 中+sudo vi /etc/dovecot/conf.d/10-mail.conf 
 +mail_location = maildir:~/Maildir 
 +sudo vi /etc/dovecot/conf.d/10-auth.conf 
 +disable_plaintext_auth no 
 +auth_mechanisms plain login 
 +!include auth-system.conf.ext 
 +sudo systemctl restart dovecot 
 +</code> 
 + 
 +====== Roundcube ====== 
 + 
 +===== 依赖 ===== 
 + 
 +<code -> 
 +sudo apt install mariadb-server unzip 
 +sudo apt install php php-mysql php-gd php-mbstring php-xml php-intl php-curl 
 +</code> 
 + 
 +===== sql ===== 
 + 
 +<code -> 
 +sudo mysql -u root -p 
 +CREATE DATABASE roundcubemail DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci; 
 +GRANT ALL PRIVILEGES ON roundcubemail.* TO 'roundcube'@'localhost' IDENTIFIED BY 'your_strong_password'; 
 +FLUSH PRIVILEGES; 
 +EXIT; 
 +</code> 
 + 
 +===== nginx ===== 
 + 
 +<code -> 
 +server { 
 +    listen 80; 
 +    server_name mail.example.com; 
 + 
 +    root /var/www/roundcube; 
 +    index index.php; 
 + 
 +    location ~ \.php
 +        include snippets/fastcgi-php.conf; 
 +        fastcgi_pass unix:/run/php/php8.2-fpm.sock; 
 +        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; 
 +        include fastcgi_params; 
 +    } 
 + 
 +    location ~ /\.ht { 
 +        deny all; 
 +    } 
 + 
 +    location ~ ^/(config|temp|logs)/
 +        deny all; 
 +    } 
 +
 +</code> 
 + 
 +===== 部署 ===== 
 + 
 +<code -> 
 +cd /var/www/ 
 +wget https://github.com/roundcube/roundcubemail/releases/download/1.6.9/roundcubemail-1.6.9-complete.tar.gz 
 +tar -xzf roundcubemail-1.6.9-complete.tar.gz 
 +mv roundcubemail-1.6.9 roundcube 
 +chown -R www-data:www-data /var/www/roundcube 
 +访问 http://mail.example.com/installer,按向导操作
  
-smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem +Database setup: 填入之前创建的 roundcubemail 数据库信息 
-smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key +IMAP Settings: 
-smtpd_use_tls = yes +IMAP Host: ssl://localhost 或 tls://localhost 
-smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache +Port: 993 
-smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache+SMTP Settings: 
 +SMTP Host: tls://localhost 
 +Port: 587 
 +Use SMTP authentication:  
 +Username%u,Password: %p
 </code> </code>
  
  
  • 软件/email.1764745437.txt.gz
  • 最后更改: 2026/01/02 02:07
  • (外部编辑)