Note: Because this chapter describes installation iRedMail-0.9.4, does not configure local DNS resolution, and does not do DNS resolution, all content is used in LAN environment
Article reference: http://www.iredmail.com/docs/install.iredmail.on.rhel.html
Os:
[Root@localhost ~]# Cat/etc/redhat-release
CentOS Release 6.7 (Final)
[Root@localhost ~]# Uname-r
2.6.32-573.el6.x86_64
[Root@localhost ~]#
1, Prepare for work:
Yum Source:
Wget-o/etc/yum.repos.d/centos-base.repo Http://mirrors.aliyun.com/repo/Centos-6.repo
Wget-o/etc/yum.repos.d/epel.repo Http://mirrors.aliyun.com/repo/epel-6.repo
Yum Makecache
The domain name is: linuxea.com
Host name is: ds.com
The host name will be the prefix of the webmail login, the domain name will be entered in the following interface, the domain name and host name can not be consistent
Modify Host Name:
[Root@localhost ~]# hostname ds.com
[Root@localhost ~]# vim/etc/hosts
Close SELinux iptables
# Setenforce 0
Selinux=disabled
/etc/init.d/iptables stop
2, download the installation package:
Http://www.iredmail.com/download.html
3, decompression
Tar XF iredmail-0.9.4.tar.bz2
CD iRedMail-0.9.4
3, execute the script
Bash
iredmail.sh
Then yes can be
The Post Office directory defaults to
Select the program that provides the web
Select a database to
Enter the domain name, not consistent with hostname
Enter Background login password
Leave the default Next
Make sure the information is correct and then enter Y
When you confirm Y, you will be able to download the selected software and dependent packages, including the following
Postfix mysql-server mysql perl-dbd-mysql php-common php-gd php-xml php-mysql php-ldap php-pgsql php-imap php-mbstring php -PECL-APC php-intl php-mcrypt nginx php-fpm dovecot dovecot-pigeonhole dovecot-managesieve amavisd-new SpamAssassin Altermime perl-ldap PERL-MAIL-SPF unrar clamd clamav-db php-pear-net-idna2 python-sqlalchemy python-setuptools Python-dns Mysql-python python-jinja2 python-webpy python-netifaces python-beautifulsoup4 python-lxml Uwsgi Uwsgi-plugin-python Fail2ban unzip bzip2 ACL patch Tmpwatch crontabs Dos2unix logwatch
If you run the installation error, then directly yum install above the installation package can be installed after the operation, in the run will prompt, input y can
Smooth installation, prompted whether to set Iptables, select the N,mysql configuration file storage location y can, see the figure below
Installation completed with information as follows:
Include Webmail login address, admin address, etc.
Open the browser to enter a password access can be explained here, you need to modify the Hosts file, or set up DNS to be resolved through the domain name
Basically the end of the installation, the following simple introduction to use the following:
1, create user
2, open Foxmail login, here need to note that the Windows Hosts file must specify IP and domain name, otherwise can not be used, if there is DNS resolution can also
2.1
3. Send mail Test
After installation, all passwords for username will be in the installation directory: Iredmail.tips files