From 04092a9936ad23b78280f0fe7b19939747ccd706 Mon Sep 17 00:00:00 2001 From: Till Brehm Date: Thu, 22 Feb 2018 16:48:13 +0100 Subject: [PATCH] Set default email sending mode in ISPConfig UI to smtp --- install/tpl/system.ini.master | 2 ++ interface/web/admin/form/system_config.tform.php | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/install/tpl/system.ini.master b/install/tpl/system.ini.master index 535bed783f..42a003b9c1 100644 --- a/install/tpl/system.ini.master +++ b/install/tpl/system.ini.master @@ -14,6 +14,8 @@ mailbox_show_custom_rules_tab=y mailboxlist_webmail_link=y webmail_url=/webmail dkim_path=/var/lib/amavis/dkim +smtp_enabled=y +smtp_host=localhost [monitor] diff --git a/interface/web/admin/form/system_config.tform.php b/interface/web/admin/form/system_config.tform.php index 681d166b34..449805f3c1 100644 --- a/interface/web/admin/form/system_config.tform.php +++ b/interface/web/admin/form/system_config.tform.php @@ -311,7 +311,7 @@ $form["tabs"]['mail'] = array ( 'smtp_enabled' => array ( 'datatype' => 'VARCHAR', 'formtype' => 'CHECKBOX', - 'default' => 'n', + 'default' => 'y', 'value' => array(0 => 'n', 1 => 'y') ), 'smtp_host' => array ( @@ -328,7 +328,7 @@ $form["tabs"]['mail'] = array ( 'type' => 'STRIPNL') ), 'formtype' => 'TEXT', - 'default' => '', + 'default' => 'localhost', 'value' => '', 'width' => '30', 'maxlength' => '255' -- GitLab