Hi, how i can write all users to my db (mysql example) if it is possible that get "unknown user", "auth failed" e.g.?

dovecot 2.2.13

root@dev0:/home/fov# dovecot -n
# 2.2.13: /etc/dovecot/dovecot.conf
# OS: Linux 3.16.0-4-amd64 x86_64 Debian 8.0 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
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_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-sql.conf
  driver = sql
}
plugin {
  autocreate = Trash
  autocreate2 = Sent
  autocreate3 = Drafts
  autocreate4 = Junk
  autosubscribe = Trash
  autosubscribe2 = Sent
  autosubscribe3 = Drafts
  autosubscribe4 = Junk
  sieve = /var/vmail/%d/%n/currently-active-script.sieve
  sieve_dir = /var/vmail/%d/%n/sieve
}
protocols = imap sieve
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 imap-login {
  inet_listener imap {
    port = 143
  }
}
service managesieve-login {
  executable = /usr/lib/dovecot/managesieve-login
  inet_listener sieve {
    port = 2074
  }
  process_min_avail = 1
  service_count = 1
  vsz_limit = 64 M
}
service managesieve {
  executable = /usr/lib/dovecot/managesieve
  process_limit = 10
}
ssl = no
userdb {
  args = /etc/dovecot/dovecot-sql.conf
  driver = sql
}
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 = [email protected]
  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
}

Reply via email to