diff --git a/conf/config.php b/conf/config.php index 465824c..2b02c5e 100644 --- a/conf/config.php +++ b/conf/config.php @@ -88,8 +88,8 @@ $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) 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 #=================================================