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 at 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 = 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 }
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tue, 16 Jun 2015, My Work wrote:> Hi, how i can write all users to my db (mysql example) if it is possible that > get "unknown user", "auth failed" e.g.?maybe I don't understand your question wrong, but "unknown user", "auth failed" etc. are logged to Dovecot's log, so parse the file. - -- Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEVAwUBVYJpr3z1H7kL/d9rAQJThggArVJC74oZH4lGx7uuKS4vXNGTdlSzOrJ/ Njf1GQBMEkjjDUhQssgv7gA7SGBDx3VcuYeR6/Ph9yl1eJvJwXNuAEJJ/Ux1bks5 gYTxragNMW9zIobVGJZ6f/XkXgIPj6HRVeKn1soxIhBqoXUB9HAjv4y1CXdmEAeF enDRKv8nQ+uYJyKUr1k8HFYZjzSRbUnsi+dCVyRyn9usZcydBKafc/wsuj+LBtIf NfETteATxQAxym0jRVhopv7yH0ldpX/ZuhmK33/S1V2C0UYxXeY67Gv9L4RLjpPr HQYrPkM4UAxNfw1DiEZe38WzZC2uLVt2r1TuW1YBmr2Mi1wuwX6bGA==O6Ml -----END PGP SIGNATURE-----