Installation notes for Tmail5.0.1 Based on CentOS 6.3 _ X64
System Information constraints:
Reference System Version: CentOS 6.3X64
Tmail version: Tmail 5.0.1 X64
Tmail is installed on/tmail by default.
Tmail mail storage directory/data/tmail/
Machine IP Address: 192.168.1.242
Resolved Domain Name: mail.fity.cn/fity.cn (MX)
Log File:/var/log/maillog
I. Prepare the basic system environment
System partition (1 TB of hard disk space ):
/80 GB
Swap 8G
/Boot 200 MB
/Usr 50 GB
/Data all remaining (used to store mail data)
Install CentOS 6.3 _ X64 minimum installation or software Workstation
After the system is installed, delete the built-in MySQL, Postfix, Httpd, and Sendmail.
Rpm-qa | grep mysql | xargs rpm-e -- nodeps
Rpm-qa | grep postfix | xargs rpm-e -- nodeps
Rpm-qa | grep mysql | xargs rpm-e -- nodeps
Ii. Download Tmail5.0.1
Download Tmail 5.0.1 X64 first:
Http://www.thismail.org/bbs/thread-4587-1-1.html
3. Install Tmail
Copy tmail_setup.tar.bz2 to the/opt directory.
[Root @ mail opt] # tar-jxf tmail_setup.tar.bz2
[Root @ mail opt] # cd tmail_setup
[Root @ mail opt] #./install. sh
+ ---------------------------------------------------------------------- +
+ ---------------------------------------------------------------------- +
Sure to install v5.0.1 Release? [Y]/n input y
See
Tmail System Installed Succesfully! ^_^"
The installation is successful. After the installation is complete, a tmail directory will be generated under the root directory.
Add a fail2ban installation package centosX64/rhel6_X64.
Rpm ivh -- force -- nodeps fail2ban-0.8.3-18FT.noarch.rpm
4. open ports 22, 25, 110, 88, and 443
(If you are using another port, open the corresponding port)
[Root @ mail opt] # yum install setuptool
[Root @ mail opt] # setup (the machine enters the GUI)
Or
Iptables-a input-p tcp -- dport 22-j ACCEPT
Iptables-a output-p udp -- sport 22-j ACCEPT
Iptables-a input-m state-state NEW-p tcp-dport 25-j ACCEPT
Iptables-a input-m state-state NEW-p tcp-dport 110-j ACCEPT
Iptables-a input-p tcp-m tcp -- sport 88-j ACCEPT
Iptables-a output-p tcp-m tcp -- dport 88-j ACCEPT
Iptables-a input-p tcp-m tcp -- sport 443-j ACCEPT
Iptables-a output-p tcp-m tcp -- dport 443-j ACCEPT
5. disable unnecessary services
[Root @ localhost tmp] # ntsysv
Services such as IP6 and sendmail (prevent sending and receiving exceptions due to port occupation)
6. restart the system
7. Status test:
Test whether the system has successfully listened on the following ports: 25, 110, 88, 443
[Root @ mail ~] # Lsof-I: 88
Command pid user fd type device size/OFF NODE NAME
Nginx 1151 root 6u IPv4 8501 0t0 TCP *: kerberos (LISTEN)
Nginx 1152 nobody 6u IPv4 8501 0t0 TCP *: kerberos (LISTEN)
[Root @ mail ~] # Lsof-I: 25
Command pid user fd type device size/OFF NODE NAME
Master 1358 root 12u IPv4 8951 0t0 TCP *: smtp (LISTEN)
Master 1358 root 13u IPv6 8953 0t0 TCP *: smtp (LISTEN)
Smtpd 32596 postfix 6u IPv4 8951 0t0 TCP *: smtp (LISTEN)
Smtpd 32596 postfix 7u IPv6 8953 0t0 TCP *: smtp (LISTEN)
[Root @ mail ~] # Lsof-I: 110
Command pid user fd type device size/OFF NODE NAME
Dovecot 1361 root 22u IPv4 8998 0t0 TCP *: pop3 (LISTEN)
Dovecot 1361 root 23u IPv6 8999 0t0 TCP *: pop3 (LISTEN)
Access the background
Https: // IP // select the Administrator when logging on. The default value is domain management.
User: admin
Password: hing123
User Login
Http: // IP: 88
Default Configuration modification: [root @ mail/] # vi/tmail/httpd/conf/nginx. conf
8. backend Configuration:
1. system settings:
System domain name: mail.fity.cn
Email storage directory:/data/tmail
2. Domain Name List:
Delete default domain name: postfix.cn (delete the user account in this domain first)
3. Domain Name addition:
Domain Name: fity.cn
Expiration date: Never Expires
4. Add users:
After the preceding settings are complete, add a user to the fity.cn domain for testing.
(You can disable dkim, clamav, spamd, and BackupMX for ease of testing)
Supplement: We recommend that you kill the spmad process on the server to occupy CPU resources.