1

Topic: mailserver + webserver on same machine. Correct "hosts" setup?

Hello,
Hope you are fine. I am a n00b. Please bear with me smile

I am trying to setup both Apache and iRedMail on the same server to have both a webserver and a mail server. I am not sure my hosts file and network file are correct.

Here is my hosts file:
127.0.0.1     mail.mydomain.com mail localhost localhost.localdomain
50.57.44.240     www.mydomain.com mydomain

and here is  /etc/sysconfig/network
NETWORKING=yes
HOSTNAME= mail.mydomain.com
GATEWAY=50.57.44.1

Does this look right? running "hostname -f" gives www.mydomain.com. Is this how it should be? should i continue with the installation?

I am running iRedMail 0.7.2
I am using Centos 5.6

Thank you very much for your help.


==== Provide basic information to help troubleshoot ====
- iRedMail version:
- Linux/BSD distribution name and version:
- Any related log? Log is helpful for troubleshooting.
======== Provide basic information to help troubleshoot ====
- iRedMail version:
- Linux/BSD distribution name and version:
- Any related log? Log is helpful for troubleshooting.
====

2

Re: mailserver + webserver on same machine. Correct "hosts" setup?

survivor wrote:

Does this look right? running "hostname -f" gives www.mydomain.com. Is this how it should be? should i continue with the installation?

It looks fine.

iRedMail will install Apache by default, so you don't need to install Apache manually.