1 (edited by astley 2016-08-13 06:54:02)

Topic: hostname help

==== Required information ====
- iRedMail version : 0.9.5-1
- Linux/BSD distribution name and version: Ubuntu 16.04 server
- Store mail accounts in which backend : MySQL
- Web server : Apache
- Manage mail accounts with iRedAdmin-Pro? no
- Related log if you're reporting an issue:
====

Could somebody help me with setting hostname please

this is how it looks now

127.0.0.1       localhost
127.0.1.1       RoundishKungfu.us       RoundishKungfu

I am just unclear on how its suppost to end up looking

if i'm right in thinking I need to put what I put in for first domain name that would be mail.roundishkungfu.us is that right?

----

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

2

Re: hostname help

Put the server hostname in /etc/hosts.

For example, IF your server hostname is 'mail.mydomain.com', you should update the '127.0.0.1' line in /etc/hosts like below:

127.0.0.1 mail.mydomain.com mail localhost localhost.localdomain

warning: do NOT list your virtual mail domain name in /etc/hosts.

3

Re: hostname help

so if I paste this into /etc/hosts that is all I need?


127.0.0.1 roundishkungfu.us mail localhost localhost.localdomain

4

Re: hostname help

also do I need this localhost.localdomain because it was not on there to begin with?

5

Re: hostname help

astley wrote:

so if I paste this into /etc/hosts that is all I need?


127.0.0.1 roundishkungfu.us mail localhost localhost.localdomain

Yes.

astley wrote:

also do I need this localhost.localdomain because it was not on there to begin with?

localhost.localdomain is optional.