Quoting Rick Romero rick@havokmon.com:
Hi, I'm trying to sort out a replication error: It was working initially, but now it no longer works. Dovecot 2.2.25, Maildir format On the 'master' side I see : Aug 09 14:02:17 dsync-server(rick at havokmon.com[1]): Error: read(172.16.1.86) failed: EOF (version not received) Aug 09 14:02:17 dsync-local(rick at havokmon.com[1]): Error: read(172.16.1.86) failed: EOF (version not received) On the 'slave' side I see: Aug 09 14:02:10 doveadm(172.16.1.81,rick at havokmon.com[1]): Error: doveadm client: Unknown flag: V Aug 09 14:02:17 doveadm(172.16.1.81,rick at havokmon.com[1]): Error: doveadm client: Unknown flag: V
on FreeBSD 10.2. I changed my mailbox to be on the 'slave' server, and the error messages switched sides.
# 2.2.25 (7be1766): /usr/local/etc/dovecot/dovecot.conf # Pigeonhole version 0.4.15 (97b3da0) # OS: FreeBSD 10.2-RELEASE amd64 auth_master_user_separator = * auth_mechanisms = plain login auth_username_translation = %@ auth_verbose = yes debug_log_path = /var/log/dovecot-debug.log default_internal_user = vpopmail default_login_user = dovecot default_vsz_limit = 1536 M disable_plaintext_auth = no doveadm_password = # hidden, use -P to show it doveadm_port = 12345 first_valid_gid = 89 first_valid_uid = 89 last_valid_gid = 89 last_valid_uid = 89 log_path = /dev/stderr login_greeting = Dovecot ready. login_trusted_networks = 172.16.1.0/24 mail_fsync = never mail_plugins = " quota zlib stats notify replication" mail_privileged_group = mail mailbox_list_index = yes managesieve_notify_capability = mailto managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date index ihave duplicate mime foreverypart extracttext namespace compat { alias_for = hidden = yes inbox = no list = no location = prefix = INBOX. separator = . } namespace inbox { inbox = yes location = prefix = separator = . } passdb { args = /usr/local/etc/dovecot/dovecot-master-sql.conf driver = sql master = yes pass = yes } passdb { args = /usr/local/etc/dovecot/dovecot-sql.conf driver = sql } plugin { mail_replica = tcp:172.16.1.81 quota = maildir quota_rule = Trash:storage=+10%% stats_refresh = 30 secs stats_track_cmds = yes } replication_max_conns = 15 service aggregator { fifo_listener replication-notify-fifo { mode = 0666 user = vpopmail } unix_listener replication-notify { mode = 0666 user = vpopmail } } service anvil { client_limit = 4799 } service auth-worker { user = $default_internal_user } service auth { client_limit = 4996 unix_listener auth-master { mode = 0600 } } service config { unix_listener config { user = vpopmail } } service doveadm { inet_listener { port = 12345 } user = vpopmail } service imap-login { process_limit = 2548 process_min_avail = 25 service_count = 1 } service imap-postlogin { executable = script-login /usr/local/etc/dovecot/lastauth-imap.sh user = vpopmail } service imap { executable = /usr/local/libexec/dovecot/imap imap-postlogin process_limit = 2048 } service lmtp { executable = lmtp -L inet_listener lmtp { port = 24 } user = vpopmail } service pop-postlogin { executable = script-login /usr/local/etc/dovecot/lastauth-pop.sh user = vpopmail } service pop3-login { process_limit = 2048 process_min_avail = 15 service_count = 1 } service pop3 { executable = /usr/local/libexec/dovecot/pop3 pop-postlogin } service replicator { process_min_avail = 1 unix_listener replicator-doveadm { mode = 0666 } } service stats { fifo_listener stats-mail { mode = 0600 user = vpopmail } } shutdown_clients = no ssl_cert =
driver = mysql connect = host= user= password= dbname=vpopmail default_pass_scheme = CRYPT
password_query = SELECT CONCAT(pw_name, '@', pw_domain) AS user, pw_passwd AS password, IF(host IS NULL or host = '','172.16.1.86', host ) as host, 'Y' AS proxy_maybe, pw_dir as userdb_home, 89 as userdb_uid, 89 as userdb_gid FROM vpopmail WHERE pw_name = '%n' AND pw_domain = '%d' AND !(pw_gid & 8) AND !(pw_gid & 2) AND ('%r'!='172.16.1.93' or !(pw_gid & 4)) AND ('%r'!='172.16.1.92' or !(pw_gid & 4))
user_query = SELECT CONCAT(pw_name, '@', pw_domain) AS user, "89" as uid, "89" as gid, IF(host IS NULL or host = '','172.16.1.86', host ) as host, 'Y' AS proxy_maybe, pw_dir as home, pw_dir as mail_home, CONCAT('maildir:', pw_dir , '/Maildir/' ) as mail_location FROM vpopmail WHERE pw_name = '%n' AND pw_domain = '%d'
iterate_query = SELECT CONCAT(pw_name, '@', pw_domain) AS user from vpopmail