Marius Cramer
2015-05-20 8d3466b091af302eaf6ed81deb8ff946cd04c74a
server/plugins-available/mail_plugin_dkim.inc.php
@@ -325,7 +325,7 @@
               $this->remove_dkim_key($mail_config['dkim_path']."/".$data['new']['domain'], $data['new']['domain']);
            }
         } else {
            $app->log('Error saving the DKIM Private-key for '.$data['new']['domain'].' - DKIM is not enabled for the domain.', LOGLEVEL_ERROR);
            $app->log('Error saving the DKIM Private-key for '.$data['new']['domain'].' - DKIM is not enabled for the domain.', LOGLEVEL_DEBUG);
         }
      }
   }
@@ -369,6 +369,7 @@
    */
   function domain_dkim_update($event_name, $data) {
      global $app;
      if($data['new']['dkim'] == 'y' || $data['old']['dkim'] == 'y'){
      if ($this->check_system($data)) {
         /* maildomain disabled */
         if ($data['new']['active'] == 'n' && $data['old']['active'] == 'y' && $data['new']['dkim']=='y') {
@@ -410,6 +411,7 @@
         }
      }
   }
   }
}