1

Topic: Correct installation procedure Centos 7 64 bit with Apache/MYSQL

==== Required information ====
- iRedMail version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Web server (Apache or Nginx):
- Linux/BSD distribution name and version:
- Related log if you're reporting an issue:
======== Required information ====
- iRedMail version: iRedMail-0.9.0
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx):Apache
- Linux/BSD distribution name and version: Amazon, EC2, Centos 7 64 bit
- Related log if you're reporting an issue:
====

Hi, 

I have read plenty of forum post about issues with iRedMail installation. It made me to create this thread so that I can avoid some of those errors.

MY GOAL:

My domain            : www.adiss.com.my
Expected email ID's  : postmaster@adiss.com.my or user@adiss.com.my
My server public IP  : 52.74.93.18X


What is correct MX Record ?     
mail.adiss.com.my  or mx.adiss.com.my


Quote from another post:

"Your server FQDN should be servername.domainname.com" 
What is the server name refers here ? if my domain is adiss.com.my then server name comes from where ? where do I set this ?


Is below setup is correct ?
/etc/hosts
127.0.0.1   mx.example.com mx localhost localhost.localdomain


mail.adiss.com.my  or mx.adiss.com.my  -- to be created as subdomain ? must have A record with public IP ? any CNAME required ?

How do I create pop.adiss.com.my or imap.adiss.com.my or smtp.adiss.com.my ? to use with other email client (Andriod)


Do I need to create VirtualHost in "Apache, Sites-Available" for any of these mail server related domain ?

<VirtualHost *:80>
ServerName mail.adiss.com.my
DocumentRoot /var/www/html/iredimail
DirectoryIndex index.php
<Directory /var/www/html/iredimail>
AllowOverride All
Order Deny,Allow
Allow from all
</Directory>
</VirtualHost>

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Correct installation procedure Centos 7 64 bit with Apache/MYSQL

dwijadas wrote:

Expected email ID's  : postmaster@adiss.com.my or user@adiss.com.my
My server public IP  : 52.74.93.18X

If the mail domain name part of your email address is '@adiss.com.my', you should add MX record for domain name 'adiss.com.my'.
Server hostname can be any FQDN hostname, but NOT 'adiss.com.my'.

3

Re: Correct installation procedure Centos 7 64 bit with Apache/MYSQL

used : hostnamectl set-hostname mail.adiss.com.my

[centos@ip-172-31-18-12 iRedMail-0.9.0]$ hostname
mail.adiss.com.my
[centos@ip-172-31-18-12 iRedMail-0.9.0]$ sudo hostnamectl
   Static hostname: mail.adiss.com.my
         Icon name: computer-vm
           Chassis: vm
        Machine ID: f9afeb75a5a382dce8269887a67fbf58
           Boot ID: 54289d2612504c29a89bc6ad3b47b898
    Virtualization: xen
  Operating System: CentOS Linux 7 (Core)
       CPE OS Name: cpe:/o:centos:centos:7
            Kernel: Linux 3.10.0-229.1.2.el7.x86_64
      Architecture: x86_64
[centos@ip-172-31-18-12 iRedMail-0.9.0]$

After installing iRedMail-0.9.0. I get prompt as.


* URLs of installed web applications:
*
* - Webmail:
*   o Roundcube webmail://mail.adiss.com.my/mail/
*
* - Web admin panel (iRedAdmin): httpS://mail.adiss.com.my/iredadmin/
*
* You can login to above links with same credential:
*
*   o Username: postmaster@adiss.com.my
*   o Password: xxxxxxxxx


Is this 2 URL correct ?

*   o Roundcube webmail://mail.adiss.com.my/mail/
*
* - Web admin panel (iRedAdmin): httpS://mail.adiss.com.my/iredadmin/

What now ? I cant access these sub domains.

4

Re: Correct installation procedure Centos 7 64 bit with Apache/MYSQL

dwijadas wrote:

*   o Roundcube webmail://mail.adiss.com.my/mail/

This URL should be https://mail.adiss.com.my/mail/ It's a typo in iRedMail.

To access http://mail.adiss.com.my/, you must have a valid A record for mail.adiss.com.my in DNS.
Check our tutorial here: http://www.iredmail.org/docs/setup.dns.html

5 (edited by dwijadas 2015-04-28 13:18:42)

Re: Correct installation procedure Centos 7 64 bit with Apache/MYSQL

Thanks for your reply Mr...

What should be my hostname if I want the iRedMail to accessed as https://adiss.com.my/mail/

Current Static hostname: mail.adiss.com.my

Can I change to adiss.com.my and install ?

Is that wrong installation procedure for iRedMail ?

thanks,
DwiSha

6

Re: Correct installation procedure Centos 7 64 bit with Apache/MYSQL

If you do that then you won't be able to have user@adiss.com.my
You can change the Web Server settings later to get the webmail as you like it. But keep mail.adiss.com.my as your Hostname for installation.