这是本文档旧的修订版!
电子邮件(E-mail)
SMTP服务器: smtp.qq.com 端口: 465(SSL加密)
IMAP服务器: imap.qq.com 端口: 993(SSL加密)
POP3服务器: pop.qq.com 端口: 995(SSL加密)
SMTP
POP
IMAP
Webmail
下载Roundcube https://roundcube.net/download/
postfix
sudo apt-get update sudo apt-get install 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
dovecot
sudo apt install dovecot-core dovecot-imapd dovecot-pop3d sudo vi /etc/dovecot/dovecot.conf protocols = imap pop3 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
Roundcube
依赖
sudo apt install apache2 mariadb-server php php-mysql php-gd php-mbstring php-xml php-intl php-curl unzip -y
sql
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;
nginx
11
部署
cd /tmp wget https://github.com/roundcube/roundcubemail/releases/latest/download/roundcubemail-latest-complete.tar.gz tar -xzf roundcubemail-latest-complete.tar.gz sudo mv roundcubemail-* /var/www/html/roundcube sudo chown -R www-data:www-data /var/www/html/roundcube