|
Installation_on_Ubuntu
Install iRedMail on Ubuntu (Hardy, Jaunty).
Have trouble in iRedMail installation? Ask in our forum or get support from iRedMail developers.
Requirement***************************** WARNING ******************************** * iRedMail is designed to deploy on a FRESH server system, otherwise * * it may override your existing files/configurations althought it * * will backup files before modify. * ***************************** WARNING ********************************
At least 512MB of memory is required for product use. Downloading Ubuntu CD/DVD images via HTTP/FTP PreparationTip: You can use exist MySQL database server to store virtual domains/users. System HostnameNo matter your server is external or internal, strongly recommended that you set up a fully qualified domain name (FQDN) hostname. Enter 'hostname' command to view the current hostname: $ hostname -f mail.iredmail.org In Ubuntu (Hardy), hostname is set in these two files:
# File: /etc/hostname mail
# File: /etc/hosts 127.0.0.1 mail.iredmail.org mail localhost localhost.localdomain
# hostname -f mail.iredmail.org
deb http://mirrors.163.com/ubuntu hardy main universe deb http://mirrors.163.com/ubuntu hardy-updates main universe deb http://ppa.launchpad.net/iredmail/8.04/ubuntu hardy main #deb-src http://ppa.launchpad.net/iredmail/8.04/ubuntu hardy main You also need import gpg key of PPA repository to your system:# apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xd9226c1a29511386b3b9f8bc8dc2c190ddf700d3 deb http://mirrors.163.com/ubuntu jaunty main universe deb http://mirrors.163.com/ubuntu jaunty-updates main universe
# sudo apt-get update Start iRedMail Installation
# sudo su -
# cd /path/to/iRedMail-x.y.z/pkgs/ # bash get_all.sh
# cd /path/to/iRedMail-x.y.z/ # bash iRedMail.sh # ------------------------------------------------------- # --------------------- Generic ------------------------- # -------------------------------------------------------
Welcome page.
All emails should be stored in which directory.
iRedMail supports both OpenLDAP and MySQL as backend to store virtual domains and users. MySQL is recommended. # ------------------------------------------------------- # ---------------- OpenLDAP Backend --------------------- # -------------------------------------------------------
LDAP suffix, normally it's your domain name, such as: dc=iredmail,dc=org iRedMail will put all virtual domains/users in 'o=domains,dc=iredmail,dc=org', it's called 'LDAP base dn': o=domains,dc=iredmail,dc=org
Set password for LDAP server admin. Admin account is defined in /etc/openldap/slapd.conf (RHEL/CentOS) or /etc/ldap/slapd.conf (Debian), normaily it's: cn=Manager,dc=iredmail,dc=org # -------------------------------------------------------- # ------------------- MySQL Backend ---------------------- # -------------------------------------------------------- Tip: You can use exist MySQL database server to store virtual domains/users.
Password for MySQL root user. # -------------------------------------------------------- # ----- Generic. Creae first virtual domain and user. ---- # --------------------------------------------------------
Add your first virtual domain, e.g.:
iRedMail will create a domain admin, default is 'postmaster@YOUR_DOMAIN', and you have to set password for it now. Note:
iRedMail will create a normal mail account, default is 'www@YOUR_DOMAIN', and you have to set password for it now. Note:
Enable SPF verify and DKIM virify/sign feature? # -------------------------------------------------------- # -------- Optional Components for LDAP Backend ---------- # --------------------------------------------------------
# -------------------------------------------------------- # --------- Optional Components for MySQL backend -------- # --------------------------------------------------------
# -------------------------------------------------------- # -------------------- Generic Options ------------------- # --------------------------------------------------------
Set alias mail address for root user. After you complete the configure wizard, it's time to setup mail server now: Configuration completed. ************************************************************************* **************************** WARNNING *********************************** ************************************************************************* * * * Please do remember to *REMOVE* configuration file after installation * * completed successfully. * * * * * /root/iRedMail-x.y.z/config * * ************************************************************************* <<< iRedMail >>> Continue? [Y|n] # <- Type 'Y' or 'y' here, and press 'Enter' to continue After installation completed, please refer 'iRedMail-x.y.z/iRedMail.tips' file for some important information about the components you used, and you need to setup DNS record for SPF and DKIM if you choosed them. Important Things You Should Know After Installation
Access webmail and other web-based programsAfter installation complete, you can access web-based programs if you choose to install them: Note: Replace your_server by your server hostname or ip address.
Trouble ShootingPlease report any issue to our Issue Tracker or Forum. |