From a8a5dcc0d55d3c1c91f6c801c528b89065b1ed55 Mon Sep 17 00:00:00 2001 From: Gregory Colpart Date: Mon, 4 Dec 2023 13:22:42 +0100 Subject: [PATCH] ajout infos pour config email --- HowtoRedmine.md | 51 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/HowtoRedmine.md b/HowtoRedmine.md index 2e9e6e9c..dffa14df 100644 --- a/HowtoRedmine.md +++ b/HowtoRedmine.md @@ -386,3 +386,54 @@ $ RAILS_ENV=production bundle exec rails c > user.password_confirmation = 'mon-nouveau-mot-de-passe' > user.save! ~~~ + + +## Configuration email + + + +Cela se passe dans `config/configuration.yml` : + +Pour envoi via SMTP vers 127.0.0.1 sans SSL/TLS (Redmine supporte mal les certificats auto-signés) : + +~~~ +production: + email_delivery: + delivery_method: :smtp + smtp_settings: + address: 127.0.0.1 + port: 25 + domain: example.com + enable_starttls_auto: false + openssl_verify_mode: "NONE" +~~~ + +> Note : sur certaines versions, pour désactiver SSL/TLS, il faut utiliser `disable_start_tls: true` + +Pour envoi via Sendmail : + +~~~ +production: + email_delivery: + delivery_method: :sendmail + sendmail_settings: + arguments: "-oi -t -f redmine@example.com" +~~~ + +Pour envoi via serveur distant avec authentification : + +~~~ +production: + email_delivery: + delivery_method: :smtp + smtp_settings: + enable_starttls_auto: true + openssl_verify_mode: 'none' + address: smtp.example.com + port: 587 + domain: "example.com" + authentication: :login + user_name: "jdoe" + password: "PASSWORD" +~~~ +