Browse Source

fixed dkim private key owner

tags/v1.0.0
Robin Thoni 8 years ago
parent
commit
f92b221614
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      opendkim/run.sh

+ 3
- 3
opendkim/run.sh View File

10
 if [ ! -e /etc/opendkim/keys/dkim.private ]
10
 if [ ! -e /etc/opendkim/keys/dkim.private ]
11
 then
11
 then
12
   cd /etc/opendkim/keys &&
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
   cd --
15
   cd --
15
 fi
16
 fi
16
 
17
 
19
 rm -f /var/run/rsyslogd.pid
20
 rm -f /var/run/rsyslogd.pid
20
 rm -f /var/run/opendkim/opendkim.pid
21
 rm -f /var/run/opendkim/opendkim.pid
21
 service rsyslog start
22
 service rsyslog start
22
-service opendkim start
23
-#/usr/sbin/opendkim -f -v -x /etc/opendkim.conf
23
+service opendkim start &&
24
 cat /var/log/syslog
24
 cat /var/log/syslog

Loading…
Cancel
Save