Replication for all users in Dovecot ISPConfig database

Otto Saayman otto at igotafrica.com
Mon Feb 22 10:26:48 UTC 2016


Hello

I have set up two servers, one master and one slave, using ISPConfig. I 
have been using rsync to synchronise mails between the two machines, but 
this has some unstable results.

I had a look at setting up replication: http://wiki.dovecot.org/Replication

When I run the command, doveadm user '*', only two users are returned. 
So when I run this command: doveadm replicator replicate \* I get: 2 
users updated

I run this command:
     doveadm sync -u [e-mail address] tcp:[2nd/ slave dovecot server IP 
address]

Here I can input any valid e-mail address in the ISPConfig MySQL 
database and it works.

How do I tell the dovecote server to replicate all the users configured 
in the MySQL database it uses when it handles logins via POP/ IMAP, all 
of which is working fine?

Is there a command I need to run at a set interval via cron to 
synchronise the two machines' mailboxes, which are identical in every 
way except the mails the users' mailboxes contain?

OR

Is there a way that I can instruct the two machines to keep each other's 
user mailbox contents "up to date"?

The main idea is to have a hot backup of my "main" dovecot server and 
also to enable a lower mail priority for the second server so that mails 
are still received when the main server becomes busy, or is taken 
offline for some reason.

Any help, or link to a HOWTO would be appreciated.

-- 

Best Regards

*Otto Saayman*
/IT Guru and/ /Owner/

*Mobile:
E-mail:
Skype:
Web:*

	

+27 82 821 9119
otto at igotafrica.com
ozzmaster80
www.igotafrica.com <http://www.igotafrica.com/>

	

“/We can do anything, but we can't do everything./”
- John Maxwell



Confidentiality notice and disclaimer:
This message and the attached files and links contain information 
intended for the exclusive perusal and/or use, of the addressee only. 
The information may be confidential and legally privileged and protected 
by law. Access is authorised only by the intended recipient. If you are 
not an intended recipient, do not peruse, use, disseminate, distribute, 
copy or in any manner rely upon the information contained in this 
message or the attached files (directly or indirectly). The sender 
and/or IgotAfrica CCshall not be held liable for any loss damage, 
injury, or expense however caused, whether direct, indirect or 
consequential in the event that this prohibition is disregarded. If you 
receive this message and/or the attached files in error, please notify 
the sender immediately by email, fax or telephone and destroy the 
original message. The views or representations contained in this 
communication, whether expressed or implied, are those of the sender 
only. IgotAfrica CCand the sender do not warrant the truth, integrity, 
accuracy or completeness of the information provided, or that the 
message and attached files are free of errors, virus, interception or 
interference.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Image1
Type: image/jpeg
Size: 6078 bytes
Desc: not available
URL: <http://dovecot.org/pipermail/dovecot/attachments/20160222/a2cbb626/attachment-0001.jpe>


More information about the dovecot mailing list