c9ace8
diff -up dovecot-2.2.10/doc/example-config/conf.d/10-mail.conf.default-settings dovecot-2.2.10/doc/example-config/conf.d/10-mail.conf
c9ace8
--- dovecot-2.2.10/doc/example-config/conf.d/10-mail.conf.default-settings	2013-04-23 12:33:55.000000000 +0200
c9ace8
+++ dovecot-2.2.10/doc/example-config/conf.d/10-mail.conf	2016-06-17 17:56:17.353210369 +0200
c9ace8
@@ -165,7 +165,7 @@ namespace inbox {
c9ace8
 # to make sure that users can't log in as daemons or other system users.
c9ace8
 # Note that denying root logins is hardcoded to dovecot binary and can't
c9ace8
 # be done even if first_valid_uid is set to 0.
c9ace8
-#first_valid_uid = 500
c9ace8
+first_valid_uid = 1000
c9ace8
 #last_valid_uid = 0
c9ace8
 
c9ace8
 # Valid GID range for users, defaults to non-root/wheel. Users having
c9ace8
@@ -286,6 +286,7 @@ namespace inbox {
c9ace8
 # them simultaneously.
c9ace8
 #mbox_read_locks = fcntl
c9ace8
 #mbox_write_locks = dotlock fcntl
c9ace8
+mbox_write_locks = fcntl
c9ace8
 
c9ace8
 # Maximum time to wait for lock (all of them) before aborting.
c9ace8
 #mbox_lock_timeout = 5 mins
c9ace8
diff -up dovecot-2.2.10/doc/example-config/conf.d/10-ssl.conf.default-settings dovecot-2.2.10/doc/example-config/conf.d/10-ssl.conf
c9ace8
--- dovecot-2.2.10/doc/example-config/conf.d/10-ssl.conf.default-settings	2013-11-19 21:36:30.000000000 +0100
c9ace8
+++ dovecot-2.2.10/doc/example-config/conf.d/10-ssl.conf	2016-06-17 17:54:18.749626750 +0200
c9ace8
@@ -3,7 +3,9 @@
c9ace8
 ##
c9ace8
 
c9ace8
 # SSL/TLS support: yes, no, required. <doc/wiki/SSL.txt>
c9ace8
-#ssl = yes
c9ace8
+# disable plain pop3 and imap, allowed are only pop3+TLS, pop3s, imap+TLS and imaps
c9ace8
+# plain imap and pop3 are still allowed for local connections
c9ace8
+ssl = required
c9ace8
 
c9ace8
 # PEM encoded X.509 SSL/TLS certificate and private key. They're opened before
c9ace8
 # dropping root privileges, so keep the key file unreadable by anyone but