title: opendkim Permission Denied when loading the key
body: <p>I have installed opendkim to my Ubuntu server 14.04.4 LTS. I have set into the postfix config to be used the opendkim previous created mail.private key.</p>
  
  <p>When I try to send a mail I see the following messages into the /var/log/mai.log file</p>
  
  <pre><code>Jan 29 09:19:47 test postfix/smtpd[2427]: connect from ip6localhost[127.0.0.1]
  Jan 29 09:19:47 test postfix/smtpd[2427]: 625E3E0FE7: client=ip6-localhost[127.0.0.1]
  Jan 29 09:19:47 test postfix/cleanup[2431]: 625E3E0FE7: message-id=&lt;890ba29cd6ef289c50581335723ccdb9[edited domain]&gt;
  Jan 29 09:19:47 test opendkim[1370]: can't load key from /etc/opendkim/keys/mail.private: Permission denied
  Jan 29 09:19:47 test opendkim[1370]: 625E3E0FE7: error loading key 'mail._[edited domain]'
  </code></pre>
  
  <p>The key was stored into the folder /etc/opendkim/keys</p>
  
  <pre><code>root@test:/home/crewlog.com# ls -l /etc/opendkim
  total 16
  drw------- 2 opendkim opendkim 4096 Jan 29 07:49 keys
  -rw-r----- 1 opendkim opendkim  891 Jan 29 07:48 mail.private
  -rw------- 1 opendkim opendkim   67 Jan 29 08:01 KeyTable
  -rw------- 1 opendkim opendkim   32 Jan 29 07:47 SigningTable
  -rw------- 1 opendkim opendkim   81 Jan 29 07:19 TrustedHosts
  </code></pre>
  
  <p>I used the opendkim:opendkim user. Here is my /etc/opendkim.config file </p>
  
  <pre><code>AutoRestart             Yes
  AutoRestartRate         10/1h
  Syslog                  yes
  UMask                   002
  SyslogSuccess           Yes
  LogWhy                  Yes
  Canonicalization        relaxed/simple
  PidFile                 /var/run/opendkim/opendkim.pid
  SignatureAlgorithm      rsa-sha256
  ExternalIgnoreList      refile:/etc/opendkim/TrustedHosts
  InternalHosts           refile:/etc/opendkim/TrustedHosts
  KeyTable                refile:/etc/opendkim/KeyTable
  SigningTable            refile:/etc/opendkim/SigningTable
  UserID opendkim:opendkim
  Mode                    sv
  OversignHeaders         From
  Domain                  [edited domain]
  KeyFile                 /etc/opendkim/keys/mail.private
  Selector                mail
  SOCKET                  inet:8891@127.0.0.1
  </code></pre>
  
  <p>Any help will be welcomed as I don't know what I am doing wrong </p>