From 9d08f67c07324d12c4980d47edaab811ce11556b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Thu, 8 Feb 2024 19:14:30 +0100 Subject: [PATCH 1/3] fix --- conf/config.php | 6 +++--- scripts/_common.sh | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/conf/config.php b/conf/config.php index 465824c..93318bc 100644 --- a/conf/config.php +++ b/conf/config.php @@ -88,11 +88,11 @@ $config = [ /* general config */ 'use_smtp' => true, // use email for polls creation/modification/responses notification 'smtp_options' => [ - 'host' => 'localhost', // SMTP server (you could add many servers (main and backup for example) : use ";" like separator - 'auth' => false, // Enable SMTP authentication + 'host' => '__MAIN_DOMAIN__', // SMTP server (you could add many servers (main and backup for example) : use ";" like separator + 'auth' => true, // Enable SMTP authentication 'username' => '__APP__', // SMTP username 'password' => '__MAIL_PWD__', // SMTP password - 'secure' => false, // Enable encryption (false, tls or ssl) + 'secure' => 'ssl', // Enable encryption (false, tls or ssl) 'port' => 25, // TCP port to connect to ], /* home */ diff --git a/scripts/_common.sh b/scripts/_common.sh index ed42679..7c1eb27 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -6,6 +6,8 @@ YNH_COMPOSER_VERSION="2.1.1" +main_domain=$(cat /etc/yunohost/current_host) + #================================================= # PERSONAL HELPERS #================================================= From 180cb06e41649f7ccc4fe152ce11f4b52cd3479b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Thu, 8 Feb 2024 19:38:51 +0100 Subject: [PATCH 2/3] Update config.php --- conf/config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf/config.php b/conf/config.php index 93318bc..d812455 100644 --- a/conf/config.php +++ b/conf/config.php @@ -93,7 +93,7 @@ $config = [ 'username' => '__APP__', // SMTP username 'password' => '__MAIL_PWD__', // SMTP password 'secure' => 'ssl', // Enable encryption (false, tls or ssl) - 'port' => 25, // TCP port to connect to + 'port' => 465, // TCP port to connect to ], /* home */ 'show_what_is_that' => false, // display "how to use" section From 637754a12af0264130cc133c7c2704582648cc76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Thu, 15 Feb 2024 12:16:05 +0100 Subject: [PATCH 3/3] Update config.php --- conf/config.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/conf/config.php b/conf/config.php index d812455..2b02c5e 100644 --- a/conf/config.php +++ b/conf/config.php @@ -92,8 +92,8 @@ $config = [ 'auth' => true, // Enable SMTP authentication 'username' => '__APP__', // SMTP username 'password' => '__MAIL_PWD__', // SMTP password - 'secure' => 'ssl', // Enable encryption (false, tls or ssl) - 'port' => 465, // TCP port to connect to + 'secure' => false, // Enable encryption (false, tls or ssl) + 'port' => 25, // TCP port to connect to ], /* home */ 'show_what_is_that' => false, // display "how to use" section