I can see the emails Taiga CE sends in the taiga-back container’s log but when I set the EMAIL_BACKEND from console to smtp it seems emails dont reach my company internal email server.
I do know the company local SMTP server is working because other apps and scripts of mine use it and I have issued the following from inside taiga-back container:
[.....]
# Taiga's SMTP settings - Variables to send Taiga's emails to the users
EMAIL_BACKEND=smtp # use an SMTP server or display the emails in the console (either "smtp" or "console")
EMAIL_HOST=smtp.mailserver.mycompany.domain.com # SMTP server address
EMAIL_PORT=25 # default SMTP port
EMAIL_HOST_USER= # user to connect the SMTP server
EMAIL_HOST_PASSWORD= # SMTP user's password
EMAIL_DEFAULT_FROM=myself@mycompany.domain.com # default email address for the automated emails
EMAIL_USE_TLS=False # use TLS (secure) connection with the SMTP server
EMAIL_USE_SSL=False # use implicit TLS (secure) connection with the SMTP server
[.....]
The settings are exposed to taiga-back as environment variables, so if you do echo $EMAIL_HOST or any of the other variables, then you can see if they are set or not. If they are not, then python will get the default value (the second argument there to os.getenv()
After you set those variables on the .env file, though, make sure to restart the docker containers.
It should be possible. Outside the docker container there should be a taiga-manage.sh script. Django’s manage.py (which is what the script uses under the hood) has a command called sendtestemail. You should be able to call taiga-manage.sh sendtestemail your@email and check if you receive it.
line and the running again the sendtestemail line and the sender address kept the same. I think I should properly access taiga-manage image in order to alter it and don’t know how to do it.
Anyway, I should be able to alter the values of the taiga-back DEFAULT_FROM_EMAIL variable in order for the Django subsystem to work properly for my facility: using a valid_address@mycompay.domain.com as the sender address.
Maybe something weird is happening or I am missing something in the way because the .env file hast the correct valid.address@mycompany.domain.com and if I go to a shell in the taiga-back container and check the content of the DEFAULT_FROM_EMAIL it is valid.address@mycompany.domain.com, too.
But executing the taiga-manager.sh script still uses system@taiga.io as the sender address and my company SMTP server policies doesn’t allow that.
So, the email is not accepted for delivery, I guess. I need to change the sender’s address.