1

Topic: What and where should I change the entry if I change the hostname

Hello,

I have a problem with all mail I send from my server with iRedmail fresh installed : they fall, all, in spam box (I have test with Gmail only for this time).

I have read that for the hostname it's better to use a domain that exist. I have left the proposition made in installation, but it's an error I suppose because the domaine name (dedibox.fr) should be banned from the most server in the planet.

Now I want better use a domain I have.

Can I use for hostname : mail.myspecialdomainforallmyservice.com ?

When and what should I change for iRedmail works with my changes?

Thx.


==== Required information ====
- iRedMail version: iRedMail-0.8.7
- Store mail accounts in which backend : MySQL
- Linux/BSD distribution name and version: Ubuntu LTS 14.04 64 bits
- Related log if you're reporting an issue:
====

2

Re: What and where should I change the entry if I change the hostname

floown wrote:

Can I use for hostname : mail.myspecialdomainforallmyservice.com ?

Sure.

floown wrote:

When and what should I change for iRedmail works with my changes?

* Postfix parameter "myhostname" in /etc/postfix/main.cf.
* Amavisd parameter "@local_domains_maps" in /etc/amavis/conf.d/50-user.

3 (edited by floown 2014-06-16 19:59:40)

Re: What and where should I change the entry if I change the hostname

I have change in /etc/amavis/conf.d/50-user : chomp($mydomain = "mail.myspecialdomainforallmyservice.com");
I have change too the line : $myhostname = "oldentry"

This parametrer is at 1, so I didn't change it !  @local_domains_maps = 1;

I have change the line in /etc/hosts too, and made an : echo mail.myspecialdomainforallmyservice.com > /etc/hostname

And in /etc/postfix/main.cf I have change the lines : myorigin and myhostname

I have made all the changes ? Thx for your help.

//EDIT : Ok I have done : grep -r myoldmachine /etc
This is the only path in which to look? In /var/log I have a lot of entry, so I wanted to exclude this path.