[Dovecot] dovecot 2.2.9 replication

Костырев Александр Алексеевич a.kostyrev at serverc.ru
Wed Mar 12 13:00:52 UTC 2014


I didn't get it.
What's wrong ?
What's not working?

-----Original Message-----
From: dovecot [mailto:dovecot-bounces at dovecot.org] On Behalf Of Франчук Олег
Sent: Wednesday, March 12, 2014 10:37 PM
To: dovecot at dovecot.org
Subject: [Dovecot] dovecot 2.2.9 replication

Good afternoon, I have a problem with replication is configured in
Dovecot, I have two servers, they are version 2.2.9. Here is their
configuration
/root at mx1:/etc/dovecot# dovecot -n//
//# 2.2.9: /etc/dovecot/dovecot.conf//
//# OS: Linux 3.2.0-4-amd64 x86_64 Debian 7.4 ext4//
//auth_debug = yes//
//auth_debug_passwords = yes//
//auth_mechanisms = plain login//
//auth_socket_path = /var/run/dovecot/auth-master//
//base_dir = /var/run/dovecot///
//disable_plaintext_auth = no//
//dsync_remote_cmd = /usr/bin/ssh -l Debian-exim %{host}
/usr/bin/doveadm dsync-server -u//%u//-l%{lock_timeout} -n%{namespace}//
//first_valid_gid = 103//
//first_valid_uid = 101//
//listen = *//
//mail_access_groups = mail,Debian-exim,dovecot//
//mail_debug = yes//
//mail_full_filesystem_access = yes//
//mail_gid = 103//
//mail_location = maildir:/var/vmail/%d/%n//
//mail_plugins = " notify replication"//
//mail_uid = 101//
//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//
//namespace inbox {//
//  inbox = yes//
//  location
=                                                                                                                                                                                   
//
//  prefix
=                                                                                                                                                                                     
//
//}                                                                                                                                                                                              
//
//passdb
{                                                                                                                                                                                       
//
//  args =
/etc/dovecot/dovecot-ldap.conf                                                                                                                                                        
//
//  driver =
ldap                                                                                                                                                                                
//
//}                                                                                                                                                                                              
//
//plugin {//
//  autocreate = Trash//
//  autocreate2 = Sent//
//  autocreate3 = Drafts//
//  autocreate4 = Junk//
//  autosubscribe = Trash//
//  autosubscribe2 = Sent//
//  autosubscribe3 = Drafts//
//  autosubscribe4 = Junk//
//  mail_replica = remote:Debian-exim at 10.0.1.2//
//  sieve = /var/vmail/%d/%n/currently-active-script.sieve//
//  sieve_dir = /var/vmail/%d/%n/sieve//
//}//
//protocols = imap sieve pop3//
//service aggregator {//
//  fifo_listener replication-notify-fifo {//
//    mode = 0777//
//    user = Debian-exim//
//  }//
//  unix_listener replication-notify {//
//    mode = 0777//
//    user = Debian-exim//
//  }//
//}//
//service auth {//
//  unix_listener auth-client {//
//    group = Debian-exim//
//    mode = 0666//
//    user = Debian-exim//
//  }//
//  unix_listener auth-master {//
//    group = Debian-exim//
//    mode = 0666//
//    user = Debian-exim//
//  }//
//  user = root//
//}//
//service config {//
//  unix_listener config {//
//    mode = 0777//
//    user = Debian-exim//
//  }//
//}//
//service doveadm {//
//  user = Debian-exim//
//}//
//service imap-login {//
//  inet_listener imap {//
//    address = 127.0.0.1,209.51.169.117,10.0.1.1//
//    port = 143//
//  }//
//}//
//service managesieve-login {//
//  executable = /usr/lib/dovecot/managesieve-login//
//  inet_listener sieve {//
//    address = 127.0.0.1,209.51.169.117,10.0.1.1//
//    port = 2000//
//  }//
//  process_min_avail = 1//
//  service_count = 1//
//  vsz_limit = 64 M//
//}//
//service managesieve {//
//  executable = /usr/lib/dovecot/managesieve//
//  process_limit = 10//
//}//
//service pop3-login {//
//  inet_listener pop3 {//
//    address = 127.0.0.1,209.51.169.117,10.0.1.1//
//    port = 110//
//  }//
//}//
//service replicator {//
//  process_min_avail = 1//
//  unix_listener replicator-doveadm {//
//    mode = 0777//
//    user = Debian-exim//
//  }//
//  unix_listener replicator {//
//    mode = 0777//
//    user = Debian-exim//
//  }//
//}//
//ssl = no//
//userdb {//
//  args = /etc/dovecot/dovecot-ldap.conf//
//  driver = ldap//
//}//
//protocol lda {//
//  auth_socket_path = /var/run/dovecot/auth-master//
//  info_log_path = /tmp/dovecot-deliver.log//
//  log_path = /tmp/dovecot-deliver.log//
//  mail_plugins = sieve//
//  postmaster_address = postmaster at horsetele.com.ua//
//  sendmail_path = /usr/sbin/exim4//
//}//
//protocol imap {//
//  imap_client_workarounds = tb-extra-mailbox-sep//
//  mail_plugins = autocreate//
//}//
//protocol sieve {//
//  managesieve_implementation_string = dovecot//
//  managesieve_max_line_length = 65536//
//}//
//protocol pop3 {//
//  pop3_uidl_format = %08Xu%08Xv//
//}/

Replication is described in a separate config file, here it is

/mail_plugins = $mail_plugins notify replication

dsync_remote_cmd = /usr/bin/ssh -l Debian-exim %{host} /usr/bin/doveadm
dsync-server -u%u -l%{lock_timeout} -n%{namespace}

service aggregator {
  fifo_listener replication-notify-fifo {
    user = Debian-exim
    mode = 0777
  }
  unix_listener replication-notify {
    user = Debian-exim
    mode = 0777
  }
}

service replicator {
  process_min_avail = 1
  unix_listener replicator {
    mode = 0777
    user = Debian-exim
  }
}

service replicator {
  unix_listener replicator-doveadm {
    mode = 0777
    user = Debian-exim
  }
}
service doveadm {
    user = Debian-exim
}

service config {
    unix_listener config {
        user = Debian-exim
        mode = 0777
    }
}

replication_max_conns = 10

plugin {
  mail_replica = remote:Debian-exim at 10.0.1.2
}/

authorization by ssh user Debian-exim between servers configured
when sending notify plugin does not work. Could you help me set up the
best way?
-- 
Франчук Олег
Начальник ИТ отдела контакт-центра "ДатаКолл"
 
04050
Украина, г. Киев
ул. Глубочицкая, 40 корпус “Х”
datacall.com.ua <http://datacall.com.ua>
 
meл: +38 (098) 569-58-42
+38 (093) 348-98-78
+38 (044) 363-11-99
+7 (812) 612-00-18
e-mail: fov at datacall.com.ua <mailto:fov at datacall.com.ua>
 
"ДатаКолл"


More information about the dovecot mailing list