Compare commits

..

No commits in common. "98d45df08e166027342bc505ac46a8cec6db46a2" and "39d9b9adb268addd3520297e0f59cac40fc32670" have entirely different histories.

View File

@ -26,10 +26,6 @@ cp -r /usr/share/doc/dovecot/example-config/conf.d /etc/dovecot
mkdir -p /var/lib/dovecot/sieve mkdir -p /var/lib/dovecot/sieve
mkdir -p /etc/mail/spamassassin/sa-update-keys
chown spamd:spamd /etc/mail/spamassassin/sa-update-keys
chmod 700 /etc/mail/spamassassin/sa-update-keys
#A domain="$(cat /etc/mailname)" #A domain="$(cat /etc/mailname)"
domain="0124816.xyz" domain="0124816.xyz"
subdom="mail" subdom="mail"
@ -150,8 +146,6 @@ mv /etc/dovecot/dovecot.conf /etc/dovecot/dovecot.backup.conf
echo "Creating Dovecot config..." echo "Creating Dovecot config..."
openssl dhparam -out /etc/dovecot/dh.pem 4096
echo "# Dovecot config echo "# Dovecot config
# Note that in the dovecot conf, you can use: # Note that in the dovecot conf, you can use:
# %u for username # %u for username
@ -295,7 +289,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 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. # OpenDKIM daemon settings, removing previously activated socket.
sed -i '/^SOCKET/d' /etc/default/opendkim && echo "SOCKET=\"inet:12301@localhost\"" >> /etc/default/opendkim sed -i '/^SOCKET/d' /etc/opendkim && echo "SOCKET=\"inet:12301@localhost\"" >> /etc/opendkim
# Here we add to postconf the needed settings for working with OpenDKIM # Here we add to postconf the needed settings for working with OpenDKIM
echo 'Configuring Postfix with OpenDKIM settings...' echo 'Configuring Postfix with OpenDKIM settings...'