Some info on SPAM measures and OpenDKIM setup

This commit is contained in:
Val
2014-11-11 11:58:44 +00:00
parent 5716207821
commit 634b329dd9
2 changed files with 10 additions and 5 deletions

View File

@@ -1,6 +1,8 @@
# Copy OpenDKIM config
cp /mail_settings/opendkim.conf /etc/opendkim.conf
cp /mail_settings/mail.private /etc/postfix/dkim.key
cp /mail_settings/mail.private /etc/dkim.key
chown opendkim:opendkim /etc/dkim.key
chmod 600 /etc/dkim.key
if [ -f /mail_settings/myhostname ]; then
sed -i -e "s/myhostname = localhost/myhostname = $(sed 's:/:\\/:g' /mail_settings/myhostname)/" /etc/postfix/main.cf
@@ -30,4 +32,4 @@ chown -R vmail:vmail /vmail
chmod u+w /vmail
# Add password file
cp /mail_settings/passwords /etc/dovecot/passwd
cp /mail_settings/passwords /etc/dovecot/passwd