make sure the amavis-user can always access the dkim-dir
| | |
| | | |
| | | |
| | | The remote API documentation is in the remote_client/API-docs subfolder. |
| | | The remote API documentation is in the remoting_client/API-docs subfolder. |
| | |
| | | |
| | | if (!is_dir($mail_config['dkim_path'])) { |
| | | $app->log('DKIM Path '.$mail_config['dkim_path'].' not found - (re)created.', LOGLEVEL_DEBUG); |
| | | $amavis_user=exec('grep -o "^amavis:\|^vscan:" /etc/passwd'); |
| | | if(!empty($amavis_user)) { |
| | | $amavis_user=rtrim($amavis_user, ":"); |
| | | mkdir($mail_config['dkim_path'], 0750, true); |
| | | exec('chown '.$amavis_user.' /var/lib/amavis/dkim'); |
| | | unset $amavis_user; |
| | | } else { |
| | | mkdir($mail_config['dkim_path'], 0755, true); |
| | | } |
| | | } |
| | | |
| | | if (!is_writeable($mail_config['dkim_path'])) { |