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))