ajout infos pour config email

This commit is contained in:
Gregory Colpart 2023-12-04 13:22:42 +01:00
parent 880d044812
commit a8a5dcc0d5

View file

@ -386,3 +386,54 @@ $ RAILS_ENV=production bundle exec rails c
> user.password_confirmation = 'mon-nouveau-mot-de-passe'
> user.save!
~~~
## Configuration email
<https://www.redmine.org/projects/redmine/wiki/emailconfiguration>
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"
~~~