mirror of
https://github.com/YunoHost-Apps/roundcube_ynh.git
synced 2024-09-03 20:16:28 +02:00
[enh] Authenticate to the SMTP server to send emails
This commit is contained in:
parent
b7ba49faf3
commit
1a498d69e5
1 changed files with 8 additions and 6 deletions
|
@ -22,6 +22,9 @@
|
|||
+-----------------------------------------------------------------------+
|
||||
*/
|
||||
|
||||
// Retrieve YunoHost main domain
|
||||
$main_domain = exec('cat /etc/yunohost/current_host');
|
||||
|
||||
$config = array();
|
||||
|
||||
// Database connection string (DSN) for read+write operations
|
||||
|
@ -53,19 +56,19 @@ $config['default_host'] = 'localhost';
|
|||
// %d - domain (http hostname $_SERVER['HTTP_HOST'] without the first part)
|
||||
// %z - IMAP domain (IMAP hostname without the first part)
|
||||
// For example %n = mail.domain.tld, %t = domain.tld
|
||||
$config['smtp_server'] = '';
|
||||
$config['smtp_server'] = 'tls://' . $main_domain;
|
||||
|
||||
// SMTP port (default is 25; use 587 for STARTTLS or 465 for the
|
||||
// deprecated SSL over SMTP (aka SMTPS))
|
||||
$config['smtp_port'] = 25;
|
||||
$config['smtp_port'] = 587;
|
||||
|
||||
// SMTP username (if required) if you use %u as the username Roundcube
|
||||
// will use the current username for login
|
||||
$config['smtp_user'] = '';
|
||||
$config['smtp_user'] = '%u';
|
||||
|
||||
// SMTP password (if required) if you use %p as the password Roundcube
|
||||
// will use the current user's password for login
|
||||
$config['smtp_pass'] = '';
|
||||
$config['smtp_pass'] = '%p';
|
||||
|
||||
// provide an URL where a user can get support for this Roundcube installation
|
||||
// PLEASE DO NOT LINK TO THE ROUNDCUBE.NET WEBSITE HERE!
|
||||
|
@ -126,7 +129,6 @@ $config['new_user_identity_addressbook'] = 'yunohost';
|
|||
|
||||
// -- http_authentication
|
||||
// Redirect the client to this URL after logout.
|
||||
$main_domain = exec('cat /etc/yunohost/current_host');
|
||||
$config['logout_url'] = 'https://' . $main_domain . '/yunohost/sso/?action=logout';
|
||||
|
||||
// -- ldapAliasSync
|
||||
|
|
Loading…
Reference in a new issue