## 鏡像組成
鏡像采用的是iRedMail開源電子郵件解決方案,這個方案中有多個與電子郵件相關的開源組件,主要包括:
### 版本說明
|軟件名稱|軟件版本|軟件簡介|
|---|---|---|
|Postfix|2.10.1|Postfix 是一種電子郵件服務器|
|Dovecot|2.2.32|Dovecot 是一個開源的 IMAP 和 POP3|
|Nginx |1.12.2|Nginx是一個高性能的HTTP和反向代理服務,也是一個IMAP/POP3/SMTP服務|
|MariaDB|15.1|MariaDB數據庫管理系統|
|mlmmj |1.1|MLMMJ是一個簡單而簡明的郵件列表管理器|
|Amavisd-new|2.11.1|Amamisd-new是開源中最流行的反垃圾和反病毒軟件|
|SpamAssassin|3.4.0|SpamAssassin是一種安裝在郵件服務器上的郵件過濾器,用來辨識垃圾信|
|ClamAV |0.100.2/25113|ClamAV是一種用于檢測木馬、病毒、惡意軟件和其他惡意威脅的開源反病毒引擎。|
|Roundcube |1.3.6|RoundCube Webmail是一個基于瀏覽器,支持多國語言的IMAP客戶端|
|SOGo Groupware |4.0.4|群件服務器|
|Fail2ban |0.9.7|lLinux系統防暴力破解工具|
|iRedAPD|2.2|iRedAPD是一個簡單的Postfix策略服務器|
|netdata|1.10.0|Linux系統性能實時監控平臺|
|iRedAdmin|0.9.1|iRedAdmin是一個郵件用戶管理面版|
## 網絡和端口
本郵件服務器需要用到的端口包括:
|服務名|端口|
|---|---|
|Postfix|25,587|
|Dovecot|993,995,110,143|
|Nginx|80,443|
> 以上端口需要設置好安全組,并且向云產商申請解封25端口
## 目錄路徑
郵箱配置完成之后,請使用SFTP到服務器,下載 `/root/iRedMail/iRedMail.tips`文件,它包含了:
- 各個 web 程序的訪問地址(URL),用戶名和密碼。
- 各個組件的配置文件路徑
- 以及其它一些重要和敏感信息
下面摘錄一部分重要的配置信息:
* SSL cert keys:
- /etc/pki/tls/certs/iRedMail.crt
- /etc/pki/tls/private/iRedMail.key
* Mail Storage:
- Mailboxes: /var/vmail/vmail1
- Mailbox indexes:
- Global sieve filters: /var/vmail/sieve
- Backup scripts and backup copies: /var/vmail/backup
* Nginx:
* Configuration files:
- /etc/nginx/nginx.conf
- /etc/nginx/sites-available/00-default.conf
- /etc/nginx/sites-available/00-default-ssl.conf
* Directories:
- /etc/nginx
- /var/www/html
* See also:
- /var/www/html/index.html
* MySQL:
* Config file: /etc/my.cnf
* RC script: /etc/init.d/mariadb
* Backup MySQL database:
* Script: /var/vmail/backup/backup_mysql.sh
* Postfix:
* Configuration files:
- /etc/postfix
- /etc/postfix/aliases
- /etc/postfix/main.cf
- /etc/postfix/master.cf
* SQL/LDAP lookup config files:
- /etc/postfix/mysql
* Dovecot:
* Configuration files:
- /etc/dovecot/dovecot.conf
- /etc/dovecot/dovecot-ldap.conf (For OpenLDAP backend)
- /etc/dovecot/dovecot-mysql.conf (For MySQL backend)
- /etc/dovecot/dovecot-pgsql.conf (For PostgreSQL backend)
- /etc/dovecot/dovecot-used-quota.conf (For real-time quota usage)
- /etc/dovecot/dovecot-share-folder.conf (For IMAP sharing folder)
* Syslog config file:
- /etc/rsyslog.d/1-iredmail-dovecot.conf (present if rsyslog >= 8.x)
* RC script: /etc/init.d/dovecot
* Log files:
- /var/log/dovecot/dovecot.log
- /var/log/dovecot/sieve.log
- /var/log/dovecot/lmtp.log
- /var/log/dovecot/lda.log (present if rsyslog >= 8.x)
- /var/log/dovecot/imap.log (present if rsyslog >= 8.x)
- /var/log/dovecot/pop3.log (present if rsyslog >= 8.x)
- /var/log/dovecot/sieve.log (present if rsyslog >= 8.x)
* See also:
- /var/vmail/sieve/dovecot.sieve
- Logrotate config file: /etc/logrotate.d/dovecot
* ClamAV:
* Configuration files:
- /etc/clamd.d/amavisd.conf
- /etc/freshclam.conf
- /etc/logrotate.d/clamav
* RC scripts:
+ /etc/init.d/clamd@amavisd
+ /etc/init.d/freshclamd
* Amavisd-new:
* Configuration files:
- /etc/amavisd/amavisd.conf
- /etc/postfix/master.cf
- /etc/postfix/main.cf
* RC script:
- /etc/init.d/amavisd
* iRedAPD - Postfix Policy Server:
* Version: 2.2
* Listen address: 127.0.0.1, port: 7777
* Configuration file:
- /opt/iredapd/settings.py
* Related files:
- /opt/iRedAPD-2.2
- /opt/iredapd (symbol link to /opt/iRedAPD-2.2
* iRedAdmin - official web-based admin panel:
* Version: 0.9.1
* Root directory: /var/www/iRedAdmin-0.9.1
* Config file: /var/www/iRedAdmin-0.9.1/settings.py
* Web access:
- URL: https://mail.websoft9.cn/iredadmin/
- Username: postmaster@websoft9.cn
- Password: ***
* Roundcube webmail: /var/www/roundcubemail-1.3.6
* Config file: /var/www/roundcubemail-1.3.6/config
* Web access:
- URL: http://mail.websoft9.cn/mail/ (will be redirected to https:// site)
- URL: https://mail.websoft9.cn/mail/ (secure connection)
- Username: postmaster@websoft9.cn
- Password: ***
* Cron job:
- Command: "crontab -l -u root"
* SOGo Groupware:
* Web access: httpS://mail.websoft9.cn/SOGo/
* Main config file: /etc/sogo/sogo.conf
* Nginx template file: /etc/nginx/templates/sogo.tmpl
* See also:
- cron job of system user: sogo
* netdata (monitor):
- Config files:
- All config files: /opt/netdata/etc/netdata
- Main config file: /opt/netdata/etc/netdata/netdata.conf
- Modified modular config files:
- /opt/netdata/etc/netdata/python.d/mysql.conf
- /opt/netdata/etc/netdata/python.d/postgres.conf
- HTTP auth file (if you need a new account to access netdata, please
update this file with command like 'htpasswd' or edit manually):
- /etc/nginx/netdata.users
- Log directory: /opt/netdata/var/log/netdata