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