Skip to content

BillionMail gives you open-source MailServer, NewsLetter, Email Marketing — fully self-hosted, dev-friendly, and free from monthly fees. Join the discord: https://discord.gg/asfXzBUhZr

Update dovecot.sh

aapanel.com1c94a1d5f6e4
diff --git a/Dockerfiles/dovecot/dovecot.sh b/Dockerfiles/dovecot/dovecot.sh
index b58c45c3..140400ab 100644
--- a/Dockerfiles/dovecot/dovecot.sh
+++ b/Dockerfiles/dovecot/dovecot.sh
@@ -3,7 +3,9 @@
useradd -r -u 150 -g mail -d /var/vmail -s /sbin/nologin -c "Virtual Mail User" vmail
chown -R vmail:mail /var/vmail
-
+if [ ! -f "/etc/ssl/mail/dh.pem" ] || [ ! -f "/etc/ssl/mail/cert.pem" ] || [ ! -f "/etc/ssl/mail/key.pem" ]; then
+ cp -d -n /etc/ssl/ssl-self-signed/* /etc/ssl/mail/
+fi
cat <<EOF > /etc/dovecot/conf.d/dovecot-sql.conf.ext
driver = pgsql