From f4bfc485b87f0f63364991060013aa932c6cbae7 Mon Sep 17 00:00:00 2001 From: Christoph Haas Date: Fri, 20 Dec 2019 11:56:26 +0100 Subject: [PATCH] Using TLS to connect to mailserver --- .../ispmail-webmail-apache-roundcube/templates/config.inc.php.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ansible/roles/ispmail-webmail-apache-roundcube/templates/config.inc.php.j2 b/ansible/roles/ispmail-webmail-apache-roundcube/templates/config.inc.php.j2 index 6bf304a..d420907 100644 --- a/ansible/roles/ispmail-webmail-apache-roundcube/templates/config.inc.php.j2 +++ b/ansible/roles/ispmail-webmail-apache-roundcube/templates/config.inc.php.j2 @@ -32,7 +32,7 @@ include_once("/etc/roundcube/debian-db-roundcube.php"); // %d - domain (http hostname $_SERVER['HTTP_HOST'] without the first part) // %s - domain name after the '@' from e-mail address provided at login screen // For example %n = mail.domain.tld, %t = domain.tld -$config['default_host'] = 'localhost'; +$config['default_host'] = 'tls://{{ispmail_fqdn}}'; // SMTP server host (for sending mails). // Enter hostname with prefix tls:// to use STARTTLS, or use @@ -44,7 +44,7 @@ $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'] = 'localhost'; +$config['smtp_server'] = 'tls://{{ispmail_fqdn}}'; // SMTP port (default is 25; use 587 for STARTTLS or 465 for the // deprecated SSL over SMTP (aka SMTPS))