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] 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 #=================================================