Hi all,
Preparing for a replication setup, I read (at the bottom of
<http://wiki2.dovecot.org/Replication>) that dovecot --hostdomain
should
give a different output on the two servers. This is not the case for me: both
give "localhost". I'm trying to change my configuration to set the hostdomain
to another value, but I can't find how to do this.
I tried:
• setting the environment variable DOVECOT_HOSTDOMAIN=mydomain in /etc/default/dovecot (which is read by the init script);
• adding the line import_environment = TZ DOVECOT_HOSTDOMAIN=mydomain to dovecot.conf;
• the combination of both of the above.
However, after restarting dovecot none of these changes seem to have any
effect: dovecot --hostdomain
still returns "localhost".
This is with dovecot version 2.2.13.
How should one change this setting?
Thanks,
Arie
On 2016-09-25 20:34, Arie Peterson wrote:
Hi all,
Preparing for a replication setup, I read (at the bottom of <http://wiki2.dovecot.org/Replication>) that
dovecot --hostdomain
should give a different output on the two servers. This is not the case for me: both give "localhost". I'm trying to change my configuration to set the hostdomain to another value, but I can't find how to do this.I tried:
• setting the environment variable DOVECOT_HOSTDOMAIN=mydomain in /etc/default/dovecot (which is read by the init script);
• adding the line import_environment = TZ DOVECOT_HOSTDOMAIN=mydomain to dovecot.conf;
• the combination of both of the above.
However, after restarting dovecot none of these changes seem to have any effect:
dovecot --hostdomain
still returns "localhost".
whats the output of 'hostname -f'
whats in your /etc/hostname and /etc/hosts?
there was a thead a few weeks ago on how to have dovecot use a different hostname than the system hostname see http://www.dovecot.org/list/dovecot/2016-August/105284.html
This is with dovecot version 2.2.13.
How should one change this setting?
Thanks,
Arie
-- Christian Kivalo
Christian Kivalo wrote:
whats the output of 'hostname -f'
whats in your /etc/hostname and /etc/hosts?
That was indeed the problem. The output of hostname -f
was "localhost",
indicating how dovecot gets that result as well for its "hostdomain".
Changing the first line of /etc/hosts to 127.0.0.1 full.domain.name nameofthisparticularcomputer localhost
, dovecot --hostdomain
now returns "full.domain.name", as I wanted.
Thanks a lot for your quick responses Christian!
Kind regards,
Arie
participants (2)
-
Arie Peterson
-
Christian Kivalo