Commit d10c482e authored by Marius Burkard's avatar Marius Burkard

- rspamd fixes

parent 32122170
Pipeline #790 passed with stage
in 3 minutes and 15 seconds
......@@ -556,6 +556,12 @@ $form["tabs"]['mail'] = array(
'type' => 'TRIM'),
),
),
'rspamd_available' => array(
'datatype' => 'VARCHAR',
'formtype' => 'CHECKBOX',
'default' => 'n',
'value' => array(0 => 'n', 1 => 'y')
),
'dkim_path' => array(
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
......
......@@ -132,6 +132,14 @@ class page_action extends tform_actions {
}
}
}
if($section === 'mail') {
if(isset($server_config_array['mail']['rspamd_available']) && $server_config_array['mail']['rspamd_available'] === 'y') {
$this->dataRecord['rspamd_available'] = 'y';
} else {
$this->dataRecord['rspamd_available'] = 'n';
}
}
if(isset($this->dataRecord['jailkit_chroot_app_programs'])) {
$app->uses('file');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment