How to change SMTP Settings in Taiga 6 container?

1,929 views
Skip to first unread message

ThorstenH

unread,
Feb 16, 2021, 7:51:48 AM2/16/21
to taigaio
Hi,

after setting up Taiga 6 (migrated from 5 to 6), the email notifications do not work anymore. Where can I check and change the SMTP settings after the taiga-back container is already running?  

I found a local.py im /taiga-back/settings (inside the taiga_back_1 container), but this seems to be a default settings file...

---snip---
#########################################
## MAIL SYSTEM SETTINGS
#########################################

#DEFAULT_FROM_EMAIL = "jo...@doe.com"
#CHANGE_NOTIFICATIONS_MIN_INTERVAL = 300 #seconds

# EMAIL SETTINGS EXAMPLE
#EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
#EMAIL_USE_TLS = False
#EMAIL_USE_SSL = False # You cannot use both (TLS and SSL) at the same time!
#EMAIL_HOST = 'localhost'
#EMAIL_PORT = 25
#EMAIL_HOST_USER = 'user'
#EMAIL_HOST_PASSWORD = 'password'

# GMAIL SETTINGS EXAMPLE
#EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
#EMAIL_USE_TLS = True
#EMAIL_HOST = 'smtp.gmail.com'
#EMAIL_PORT = 587
#EMAIL_HOST_USER = 'your...@gmail.com'
#EMAIL_HOST_PASSWORD = 'yourpassword'

# DUMMY EMAIL SETTINGS
EMAIL_BACKEND = 'django.core.mail.backends.dummy.EmailBackend'
---snap---


Yamila Moreno

unread,
Feb 16, 2021, 8:15:53 AM2/16/21
to ThorstenH, taigaio
Hi! how are you configuring taiga-docker? with environment variables or mapping the config file?

the config file should be mapped to /taiga-back/settings/config.py as it's the path where Django is looking for the configuration.

besides, the recommended way to have an advanced configuration consist on downloading the config.py.prod.example (cause there were some changes in the configuration) and changing there the values with your own, so you can ensure you have the proper configuration.

Let us know if it worked!

--
Please help us keep the Taiga.io Community open and inclusive, follow our Code of Conduct:
https://github.com/taigaio/code-of-conduct/blob/master/CODE_OF_CONDUCT.md
---
You received this message because you are subscribed to the Google Groups "taigaio" group.
To unsubscribe from this group and stop receiving emails from it, send an email to taigaio+u...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/taigaio/979bb082-1440-4e82-a96b-30209a2fa68cn%40googlegroups.com.


--
Logo Kaleidos Yamila Moreno Suárez
COO & Cofounder  
kaleidos.net
 


Este mensaje y sus archivos adjuntos van dirigidos exclusivamente a su destinatario, y pudiendo contener información confidencial sometida a secreto profesional, o cuya divulgación esté legalmente prohibida. Cualquier opinión en él contenida es exclusiva de su autor y no representa necesariamente la opinión de la empresa. Si ha recibido este mensaje por error, le rogamos nos lo comunique de forma inmediata por esta misma vía y proceda a su eliminación, así como a la de cualquier documento adjunto al mismo. El correo electrónico vía Internet no es seguro y no se puede garantizar que no haya errores ya que puede ser interceptado, modificado, perdido o destruido, o contener virus. Cualquier persona que se ponga en contacto con nosotros por correo electrónico se considerará que asume estos riesgos.

KALEIDOS OPEN SOURCE se reserva las acciones legales que le correspondan contra todo tercero que acceda de forma ilegítima al contenido de cualquier mensaje externo procedente del mismo.

INFORMACIÓN PROTECCIÓN DE DATOS. Responsable: KALEIDOS OPEN SOURCE (B86241973)

Le informamos que sus datos identificativos y los contenidos en los correos electrónicos y ficheros adjuntos pueden ser incorporados a nuestras bases de datos con la finalidad de mantener relaciones profesionales y/o comerciales y, que serán conservados mientras se mantenga la relación. Si lo desea, puede ejercer su derecho a acceder, rectificar y suprimir sus datos y demás reconocidos normativamente dirigiéndose al correo emisor o en los datos del responsable. Para información y consultas visite nuestra web  https://kaleidos.net

ThorstenH

unread,
Feb 16, 2021, 12:45:26 PM2/16/21
to taigaio
Thank you for your help.

I did a docker installation and set the docker-compose variables, which are set in the Taiga-back-async container as environment variables (I did not use config file mapping). I could trigger a test email via manage.py, the smtp server returns an authorization failure.

The user was "user" and the password was "password", obviously default values. Taiga5 send emails via smtp without user and password. Is this is not possible with taiga anymore?

David Barragán

unread,
Feb 16, 2021, 2:56:55 PM2/16/21
to ThorstenH, taigaio
Hi ThorstenH,

You can try to set USERNAME and PASWORD to an empty string (""). This should works like undefined values.


Best regards.



--
Logo Kaleidos David Barragán Merino
Engineer & Co-founder 
kaleidos.net/FFF8E7
 

ThorstenH

unread,
Feb 17, 2021, 7:02:15 AM2/17/21
to taigaio

> You can try to set USERNAME and PASWORD to an empty string (""). This should works like undefined values.
Worked perfect. Thanks!

David Barragán

unread,
Feb 17, 2021, 7:52:32 AM2/17/21
to ThorstenH, taigaio
Yay!! \o/

You are welcome :-)

Reply all
Reply to author
Forward
0 new messages