On 03.01.2016 20:53, Petter Gunnerud wrote:
> I have postfix/dovecot setup on a virtual gentoo server. It's been in service 
> for almost two years without any issues.
> Now I want to set up a spare server to replicate mails from the one running. 
> I copied the vm files to the second host server, changed the ip, hostname and 
> hosts file for the copy and followed the dovecot replication doc.
> The last point in the doc tells to rundovecot --hostdomainto make sure the 
> hostnames differ... To my surprise the command returned "localhost" on both 
> servers.
> How do I set the hostname for dovecot service?(The hostname command returns 
> the servers hostnames.)
You can define what hostname dovecot uses, by setting the environment variable 
DOVECOT_HOSTDOMAIN.

It would also be interesting to see what "getent hosts" returns on your 
servers. Using the "hostname" command is not quite the same thing.

> Will a change in dovecot hostname make all clients redownload all their mail?
I can not speak for any/all clients, but I do not see how a change in the imap 
server name would make clients redownload email.


> A second question. When configuring dovecot replication. Should the settings 
> be done on the master server or the stand by server, or both? (Doc doesn't 
> say anything regarding this)
> PG
This depends on how you want the syncding to be done. If it is two way 
master-master, then you need to configure it on both. I think this might 
probably be what you want anyway.

br,
Teemu Huovila

Reply via email to