From 554bbaa36fe62403aa9bb98b97eddcf3feee01b3 Mon Sep 17 00:00:00 2001 From: William Hirigoyen Date: Thu, 1 Feb 2024 16:53:00 +0100 Subject: [PATCH] roundcube: set default SMTP port to 25 instead of 587, which failed because of missing SSL conf (local connexion does not need SSL) --- CHANGELOG.md | 1 + webapps/roundcube/tasks/main.yml | 11 ++++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d1eed7a8..4cc1f8ec 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -97,6 +97,7 @@ The **patch** part changes is incremented if multiple releases happen the same m * dovecot: add missing LDAP conf iterate_filter to exclude disabled accounts in users list (caused « User no longer exists » errors in commands listing users like « doveadm user -u '*' » or « doveadm expunge -u "*" mailbox INBOX savedbefore 7d »). * dovecot: fix missing default mails * webapps/roundcube & evoadminmail: make roles more idempotent (were failing when played twice) +* roundcube: set default SMTP port to 25 instead of 587, which failed because of missing SSL conf (local connexion does not need SSL) ### Removed diff --git a/webapps/roundcube/tasks/main.yml b/webapps/roundcube/tasks/main.yml index b25adedf..a0fd25b9 100644 --- a/webapps/roundcube/tasks/main.yml +++ b/webapps/roundcube/tasks/main.yml @@ -58,7 +58,7 @@ tags: - roundcube -- name: configure roudcube imap port +- name: configure roundcube imap port ansible.builtin.lineinfile: dest: /etc/roundcube/config.inc.php regexp: "\\$config\\['default_port'\\]" @@ -67,6 +67,15 @@ tags: - roundcube +- name: configure roundcube smtp port + ansible.builtin.lineinfile: + dest: /etc/roundcube/config.inc.php + regexp: "\\$config\\['smtp_port'\\]" + insertafter: "\\$config\\['smtp_port'\\]" + line: "$config['smtp_port'] = 25;" + tags: + - roundcube + - name: configure managesieve plugin ansible.builtin.copy: src: /usr/share/roundcube/plugins/managesieve/config.inc.php.dist