--- /dev/null
+#-------------------------------------------------------
+#Dovecot configuration to work with mailleur
+#You will definitely want to read the official documentation
+#at http://wiki2.dovecot.org/ if you plan to use Dovecot in
+#full production environment
+#-------------------------------------------------------
+#user lower limit (at least user email)
+first_valid_uid=5
+first_valid_gid=12
+
+#--------------------------------------------------------------------------
+#debug level
+mail_debug=no
+auth_debug=no
+auth_verbose=yes
+auth_debug_passwords=yes
+log_path=/var/log/dovecot.log
+
+#--------------------------------------------------------------------------
+#service setting
+#available services
+protocols=imap pop3
+#SSL parameters
+ssl=yes
+disable_plaintext_auth=yes
+ssl_cert=</etc/ssl/private/local_cert
+ssl_key=</etc/ssl/private/local_cert
+ssl_dh = </etc/ssl/private/local_dh
+
+# The next line is only needed if you have no IPv6 network interfaces
+listen=*
+
+service imap-login {
+ process_min_avail = 3
+ service_count = 1
+ }
+
+service pop3-login {
+ process_min_avail = 3
+ service_count = 1
+ }
+
+#--------------------------------------------------------------------------
+#email repository
+mail_location=maildir:/var/spool/mailleur/mails/%d/%n
+
+auth_debug = yes
+auth_debug_passwords = yes
+auth_mechanisms = plain login
+auth_verbose = yes
+auth_verbose_passwords = plain
+mail_uid = mailleur
+mail_debug = yes
+#--------------------------------------------------------------------------
+#email authentication
+#
+#to delay scanner site
+auth_failure_delay=4s
+
+userdb {
+ driver=passwd-file
+ args = username_format=%u /etc/mailleur/dovecot/passfile
+ default_fields = uid=mailleur gid=mail
+ }
+
+passdb {
+ driver= passwd-file
+ args = username_format=%u /etc/mailleur/dovecot/passfile
+ }
+#--------------------------------------------------------------------------
#This file is an EXAMPLE to be use with dovecot to access email
-user1:$6$qP9m5SFKn/ao8T4i$7mh4DGmfOnttbJjKnRQhFj550aPGlTDKoPUbKMzFB1KVqkjJvKaV2hu1I1Q7JdUhvR3/W530DmKUuMYsPWMWl.:
-user2:!:
+#encrypted passwd is 'mailleur'
+user1@mailleur.example.com:VcKy8qUxNUKs5TAnm8j4t1:::
+user2@mailleur.example.com:VcKy8qUxNUKs5TAnm8j4t1:::