Skip to content
Snippets Groups Projects
Commit 1bf47ae7 authored by Olivier MARSOL's avatar Olivier MARSOL
Browse files

Added some more tuning for sending mail

parent 8c308c15
No related branches found
No related tags found
No related merge requests found
......@@ -2,11 +2,16 @@
smtp:
host: host
port: 389
protocol: smtp
user: utilisateur
password: password
test_smtp_connection: false #none@nomail.com ???
auth: true
tls_enable: true
smtps:
checkserveridentity: false
trust: "*"
timeout: 8000
cas:
sender: "serveur-cas@noreply.com"
expiration: 10 # in minutes
......
......@@ -86,12 +86,19 @@ cas.authn.pm.autoLogin: true
spring.mail.host: {{ smtp.host }}
spring.mail.port: {{ smtp.port }}
spring.mail.protocol: {{ smtp.protocol|lower }}
spring.mail.username: {{ smtp.user }}
spring.mail.password: {{ smtp.password }}
spring.mail.testConnection: {{ smtp.test_smtp_connection }}
spring.mail.properties.mail.smtp.auth: {{ smtp.auth|lower }}
spring.mail.properties.mail.smtp.starttls.enable: {{ smtp.tls_enable|lower }}
spring.mail.testConnection: {{ smtp.test_smtp_connection|lower }}
spring.mail.properties.mail.{{ smtp.protocol|lower }}.auth: {{ smtp.auth|lower }}
spring.mail.properties.mail.{{ smtp.protocol|lower }}.starttls.enable: {{ smtp.tls_enable|lower }}
spring.mail.properties.mail.transport.protocol: {{ smtp.protocol|lower }}
{% if smtp.protocol|lower == 'smtps' %}
spring.mail.properties.mail.smtps.ssl.checkserveridentity: {{ smtp.smtps.checkserveridentity|lower }}
spring.mail.properties.mail.smtps.ssl.trust: "{{ smtp.smtps.trust|lower }}"
spring.mail.properties.mail.smtps.timeout: {{ smtp.smtps.timeout|default('8000') }}
{% endif %}
# TODO OMA : check if working if not declared
{% if sms.enabled|lower == "true" %}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment