软件:email

差别

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

到此差别页面的链接

两侧同时换到之前的修订记录 前一修订版
后一修订版
前一修订版
软件:email [2025/12/07 14:19] admin软件:email [2026/01/02 00:57] (当前版本) – 外部编辑 127.0.0.1
行 24: 行 24:
  
 <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 General type of mail configuration: Internet Site
行 38: 行 38:
 Local address extension character: + Local address extension character: +
 Internet protocols to use: all Internet protocols to use: all
 +
 +#方法二
 +sudo vi /etc/postfix/main.cf
 +myhostname = example.com
 +alias_maps = hash:/etc/postfix/virtual
 </code> </code>
  
行 61: 行 66:
  
 <code -> <code ->
-sudo apt install apache2 mariadb-server php php-mysql php-gd php-mbstring php-xml php-intl php-curl unzip -y+sudo apt install mariadb-server unzip 
 +sudo apt install php php-mysql php-gd php-mbstring php-xml php-intl php-curl
 </code> </code>
  
行 77: 行 83:
  
 <code -> <code ->
-11+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>
  
行 83: 行 110:
  
 <code -> <code ->
-cd /tmp +cd /var/www/ 
-wget https://github.com/roundcube/roundcubemail/releases/latest/download/roundcubemail-latest-complete.tar.gz +wget https://github.com/roundcube/roundcubemail/releases/download/1.6.9/roundcubemail-1.6.9-complete.tar.gz 
-tar -xzf roundcubemail-latest-complete.tar.gz +tar -xzf roundcubemail-1.6.9-complete.tar.gz 
-sudo mv roundcubemail-* /var/www/html/roundcube +mv roundcubemail-1.6.9 roundcube 
-sudo chown -R www-data:www-data /var/www/html/roundcube+chown -R www-data:www-data /var/www/roundcube 
 +访问 http://mail.example.com/installer,按向导操作: 
 + 
 +Database setup: 填入之前创建的 roundcubemail 数据库信息 
 +IMAP Settings: 
 +IMAP Host: ssl://localhost 或 tls://localhost 
 +Port: 993 
 +SMTP Settings: 
 +SMTP Host: tls://localhost 
 +Port: 587 
 +Use SMTP authentication:  
 +Username: %u,Password: %p
 </code> </code>
  
  
  • 软件/email.1765088340.txt.gz
  • 最后更改: 2026/01/02 02:07
  • (外部编辑)