From: Jean-Marc Pigeon (Delson) Date: Thu, 26 Jun 2025 11:07:10 +0000 (-0400) Subject: Working to add dovecot database capability X-Git-Tag: tag-0.10~20 X-Git-Url: https://jmp-git.ovh.safe.ca/?a=commitdiff_plain;h=70d6948fd38f4ff2023f57886ce8a698e3be901a;p=jmp%2Fmailleur Working to add dovecot database capability --- diff --git a/conf/dovecot/dovecot-2.0-auth-ldap.conf b/conf/dovecot/dovecot-2.0-auth-ldap.conf new file mode 100644 index 0000000..ba70a42 --- /dev/null +++ b/conf/dovecot/dovecot-2.0-auth-ldap.conf @@ -0,0 +1,11 @@ +#LDAP Authentication + +passdb { + driver = ldap + args = /etc/clement/dovecot-ldap.conf +} + +userdb { + driver = ldap + args = /etc/clement/dovecot-ldap.conf +} diff --git a/conf/dovecot/dovecot-2.0-auth-sql.conf b/conf/dovecot/dovecot-2.0-auth-sql.conf new file mode 100644 index 0000000..5d7a762 --- /dev/null +++ b/conf/dovecot/dovecot-2.0-auth-sql.conf @@ -0,0 +1,11 @@ +#SQL Authentication + +passdb { + driver = sql + args = /etc/mailleur/dovecot/dovecot-sql.conf +} + +userdb { + driver = sql + args = /etc/mailleur/dovecot/dovecot-sql.conf + } diff --git a/conf/dovecot/dovecot-2.0.conf b/conf/dovecot/dovecot-2.0.conf new file mode 100644 index 0000000..83b387e --- /dev/null +++ b/conf/dovecot/dovecot-2.0.conf @@ -0,0 +1,143 @@ +# JMP Jul 25 2011 for dovecot 2.0 +##################################################################### +#User lower limit (at least user email) +first_valid_uid=5 +first_valid_gid=12 + +#-------------------------------------------------------------------- +#Working user id +mail_uid=mailleur +mail_gid=mail + +#-------------------------------------------------------------------- +#debug level +mail_debug = no +auth_debug = no +auth_verbose = no +auth_debug_passwords = no +log_path = /var/log/dovecot.log + +#-------------------------------------------------------------------- +#Certificate localisation +ssl_cert=> $DOVCONF + fi +} + #---------------------------------------------------------------------- #procedure to check if the config is properly done #---------------------------------------------------------------------- @@ -122,7 +145,7 @@ case "$DB_TYPE" in fi ;; "TO_BE_DEFINED" ) - echo "You must install $APPNAME with a DB flavor (ex: $APPNAME-pgsql, $APPNAME-mysql)" + echo "You must install $APPNAME with a DB flavor (ex: $APPNAME-postgresql" echo "Exiting now" exit -2; ;; @@ -158,6 +181,7 @@ do_mkconf() if [ ! -f /etc/$APPNAME/config.done ] ; then /usr/lib/$APPNAME/support/addconfig.sh do_mkdb ; + do_doveconf ; case "$OS" in osukiss ) ;;