Setting hostdomain
Christian Kivalo
ml+dovecot at valo.at
Sun Sep 25 19:07:00 UTC 2016
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
More information about the dovecot
mailing list