| | |
| | | $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); |
| | | } |
| | | } |
| | | } |
| | |
| | | */ |
| | | 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') { |
| | |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | } |
| | | |