Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Commit b4c86d08 authored by Arthur BOUDREAULT's avatar Arthur BOUDREAULT
Browse files

refactor: add Christophe suggestions

parent 0a9c5522
No related branches found
No related tags found
1 merge request!64Resolve "fix(ynh_config): SMTP enable"
Pipeline #12440 passed with warnings
...@@ -15,7 +15,6 @@ Les variables par défaut sont disponibles dans `default/main.yml` cependant il ...@@ -15,7 +15,6 @@ Les variables par défaut sont disponibles dans `default/main.yml` cependant il
### Configuration d'un relais SMTP ### Configuration d'un relais SMTP
```yml ```yml
ynh_smtp_relay_enabled: "yes"
ynh_smtp_relay: ynh_smtp_relay:
host: smtp.domain.tld host: smtp.domain.tld
port: 25 port: 25
...@@ -24,7 +23,7 @@ ynh_smtp_relay: ...@@ -24,7 +23,7 @@ ynh_smtp_relay:
``` ```
Yunohost possède son propre serveur SMTP natif mais il est aussi possible de configurer Yunohost pour qu'il utilise un relais SMTP à la place. Yunohost possède son propre serveur SMTP natif mais il est aussi possible de configurer Yunohost pour qu'il utilise un relais SMTP à la place.
Pour faire cela, mettez la variable `ynh_smtp_relay_enabled` à `yes` et créez la variable `ynh_smtp_relay` pour y mettre vos propres valeurs. Vous pouvez en apprendre plus sur les relais SMTP [ici](https://yunohost.org/fr/administrate/specific_use_cases/email_relay). Pour faire cela, créez la variable `ynh_smtp_relay` pour y mettre vos propres valeurs. Vous pouvez en apprendre plus sur les relais SMTP [ici](https://yunohost.org/fr/administrate/specific_use_cases/email_relay).
### Configuration des mises à jour ### Configuration des mises à jour
......
...@@ -15,7 +15,6 @@ Default variables are available in `default/main.yml` however it is necessary to ...@@ -15,7 +15,6 @@ Default variables are available in `default/main.yml` however it is necessary to
### SMTP relay configuration ### SMTP relay configuration
```yml ```yml
ynh_smtp_relay_enabled: "yes"
ynh_smtp_relay: ynh_smtp_relay:
host: smtp.domain.tld host: smtp.domain.tld
port: 25 port: 25
...@@ -24,7 +23,7 @@ ynh_smtp_relay: ...@@ -24,7 +23,7 @@ ynh_smtp_relay:
``` ```
There is a built-in SMTP server on Yunohost but you can also set up Yunohost to use a SMTP relay instead. There is a built-in SMTP server on Yunohost but you can also set up Yunohost to use a SMTP relay instead.
In order to do so, set the `ynh_smtp_relay_enabled` variable to `yes` and create the `ynh_smtp_relay` variable in order to provide your own values. You can learn more about SMTP relay [here](https://yunohost.org/en/administrate/specific_use_cases/email_relay). In order to do so, create the `ynh_smtp_relay` variable in order to provide your own values. You can learn more about SMTP relay [here](https://yunohost.org/en/administrate/specific_use_cases/email_relay).
### Updates configuration ### Updates configuration
......
...@@ -25,7 +25,6 @@ ynh_smtp_relay: ...@@ -25,7 +25,6 @@ ynh_smtp_relay:
# SMTP custom settings (Only override if you need a SMTP relay) # SMTP custom settings (Only override if you need a SMTP relay)
# Example: # Example:
ynh_smtp_relay_enabled: no
# ynh_smtp_relay: # ynh_smtp_relay:
# host: smtp.domain.tld # host: smtp.domain.tld
# port: "25" # port: "25"
......
...@@ -18,10 +18,10 @@ ...@@ -18,10 +18,10 @@
# # # #
#-----------------------------------------------------------------------------# #-----------------------------------------------------------------------------#
- name: Enable SMTP relay configuration - name: Ensure SMTP relay is enabled
ansible.builtin.command: ansible.builtin.command:
"yunohost settings set email.smtp.smtp_relay_enabled -v {{ ynh_smtp_relay_enabled | default('no') }}" "yunohost settings set email.smtp.smtp_relay_enabled -v yes"
when: ynh_smtp_relay_enabled when: ynh_smtp_relay
tags: tags:
- yunohost - yunohost
- smtp - smtp
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment