]> SAFE projects GIT repository - jmp/mailleur/commitdiff
Adding dovecot configuration
authorJean-Marc Pigeon (Delson) <jmp@safe.ca>
Mon, 23 Jun 2025 12:05:47 +0000 (08:05 -0400)
committerJean-Marc Pigeon (Delson) <jmp@safe.ca>
Mon, 23 Jun 2025 12:05:47 +0000 (08:05 -0400)
conf/dovecot/dovecot.conf [new file with mode: 0644]
conf/dovecot/passfile

diff --git a/conf/dovecot/dovecot.conf b/conf/dovecot/dovecot.conf
new file mode 100644 (file)
index 0000000..974cc18
--- /dev/null
@@ -0,0 +1,70 @@
+#-------------------------------------------------------
+#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
+       }
+#--------------------------------------------------------------------------
index 8c25b06d31d9d6e94261f316642cd4ec70118104..248e63a3b1e9f66e360c5058b3c8951c727bad1f 100644 (file)
@@ -1,3 +1,4 @@
 #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:::