File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -326,6 +326,8 @@ public function add_database_server_record() {
326326 $ tpl_ini_array ['web ' ]['php_ini_path_cgi ' ] = $ conf ['apache ' ]['php_ini_path_cgi ' ];
327327 $ tpl_ini_array ['mail ' ]['pop3_imap_daemon ' ] = ($ conf ['dovecot ' ]['installed ' ] == true )?'dovecot ' :'courier ' ;
328328 $ tpl_ini_array ['mail ' ]['mail_filter_syntax ' ] = ($ conf ['dovecot ' ]['installed ' ] == true )?'sieve ' :'maildrop ' ;
329+ $ tpl_ini_array ['mail ' ]['content_filter ' ] = @($ conf ['rspamd ' ]['installed ' ]) ? 'rspamd ' : 'amavis ' ;
330+ $ tpl_ini_array ['mail ' ]['rspamd_available ' ] = @($ conf ['rspamd ' ]['installed ' ]) ? 'y ' : 'n ' ;
329331 $ tpl_ini_array ['dns ' ]['bind_user ' ] = $ conf ['bind ' ]['bind_user ' ];
330332 $ tpl_ini_array ['dns ' ]['bind_group ' ] = $ conf ['bind ' ]['bind_group ' ];
331333 $ tpl_ini_array ['dns ' ]['bind_zonefiles_dir ' ] = $ conf ['bind ' ]['bind_zonefiles_dir ' ];
Original file line number Diff line number Diff line change @@ -335,6 +335,9 @@ function updateDbAndIni() {
335335 $ tpl_ini_array ['web ' ]['php_ini_path_cgi ' ] = $ conf ['apache ' ]['php_ini_path_cgi ' ];
336336 $ tpl_ini_array ['mail ' ]['pop3_imap_daemon ' ] = ($ conf ['dovecot ' ]['installed ' ] == true )?'dovecot ' :'courier ' ;
337337 $ tpl_ini_array ['mail ' ]['mail_filter_syntax ' ] = ($ conf ['dovecot ' ]['installed ' ] == true )?'sieve ' :'maildrop ' ;
338+ // do not switch to rspamd automatically!
339+ // $tpl_ini_array['mail']['content_filter'] = @($conf['rspamd']['installed']) ? 'rspamd' : 'amavis';
340+ $ tpl_ini_array ['mail ' ]['rspamd_available ' ] = @($ conf ['rspamd ' ]['installed ' ]) ? 'y ' : 'n ' ;
338341 $ tpl_ini_array ['dns ' ]['bind_user ' ] = $ conf ['bind ' ]['bind_user ' ];
339342 $ tpl_ini_array ['dns ' ]['bind_group ' ] = $ conf ['bind ' ]['bind_group ' ];
340343 $ tpl_ini_array ['dns ' ]['bind_zonefiles_dir ' ] = $ conf ['bind ' ]['bind_zonefiles_dir ' ];
You can’t perform that action at this time.
0 commit comments