[django_cas] Configure mail server

Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
certbot_on_virtu
Yohann D'ANELLO 2021-06-25 01:08:54 +02:00
parent 16b9b39083
commit 59234d6de8
Signed by: _ynerant
GPG Key ID: 3A75C55819C8CF85
2 changed files with 9 additions and 0 deletions

View File

@ -11,6 +11,10 @@ glob_django_cas:
host: tealc.adm.crans.org
password: "{{ vault.cas_database_password }}"
secret_key: "{{ vault.cas_secret_key }}"
mail:
address: 'root@crans.org'
host: "{{ query('ldap', 'ip', 'redisdead', 'adm') | ipv4 | first }}"
port: 25
loc_nginx:
service_name: "cas"

View File

@ -18,3 +18,8 @@ DATABASES = {
'PASSWORD': '{{ django_cas.db.password }}',
}
}
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
SERVER_EMAIL = '{{ django_cas.mail.address }}'
EMAIL_HOST = '{{ django_cas.mail.host }}'
EMAIL_PORT = {{ django_cas.mail.port }}