|
@@ -10,7 +10,8 @@ sed -e "s/MAIL_DOMAIN/${MAIL_DOMAIN}/" -i /etc/opendkim/KeyTable
|
10
|
10
|
if [ ! -e /etc/opendkim/keys/dkim.private ]
|
11
|
11
|
then
|
12
|
12
|
cd /etc/opendkim/keys &&
|
13
|
|
- opendkim-genkey -s dkim -d "${MAIL_DOMAIN}"
|
|
13
|
+ opendkim-genkey -s dkim -d "${MAIL_DOMAIN}" &&
|
|
14
|
+ chown opendkim:opendkim dkim.private dkim.txt
|
14
|
15
|
cd --
|
15
|
16
|
fi
|
16
|
17
|
|
|
@@ -19,6 +20,5 @@ sleep 5
|
19
|
20
|
rm -f /var/run/rsyslogd.pid
|
20
|
21
|
rm -f /var/run/opendkim/opendkim.pid
|
21
|
22
|
service rsyslog start
|
22
|
|
-service opendkim start
|
23
|
|
-#/usr/sbin/opendkim -f -v -x /etc/opendkim.conf
|
|
23
|
+service opendkim start &&
|
24
|
24
|
cat /var/log/syslog
|