Generate dh.pem for dovecot

This commit is contained in:
juvilius 2023-04-07 17:29:45 +02:00
parent 7044cbcc5f
commit 98d45df08e
Signed by untrusted user who does not match committer: julius
GPG Key ID: 3EAC91A848E1D685

View File

@ -150,6 +150,8 @@ mv /etc/dovecot/dovecot.conf /etc/dovecot/dovecot.backup.conf
echo "Creating Dovecot config..."
openssl dhparam -out /etc/dovecot/dh.pem 4096
echo "# Dovecot config
# Note that in the dovecot conf, you can use:
# %u for username
@ -293,7 +295,7 @@ sed -i '/Socket/s/^#*/#/' /etc/opendkim.conf
grep -q '^Socket\s*inet:12301@localhost' /etc/opendkim.conf || echo 'Socket inet:12301@localhost' >> /etc/opendkim.conf
# OpenDKIM daemon settings, removing previously activated socket.
sed -i '/^SOCKET/d' /etc/opendkim && echo "SOCKET=\"inet:12301@localhost\"" >> /etc/opendkim
sed -i '/^SOCKET/d' /etc/default/opendkim && echo "SOCKET=\"inet:12301@localhost\"" >> /etc/default/opendkim
# Here we add to postconf the needed settings for working with OpenDKIM
echo 'Configuring Postfix with OpenDKIM settings...'