Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker Compose CORS Issues & Email Settings Not Recognised #414

Closed
1 task done
taibhse-designs opened this issue Oct 31, 2024 · 3 comments
Closed
1 task done

Docker Compose CORS Issues & Email Settings Not Recognised #414

taibhse-designs opened this issue Oct 31, 2024 · 3 comments

Comments

@taibhse-designs
Copy link

📜 Description

First issue, to start with email settings don't appear to be recognised when applied via docker compose,

EMAIL_PROVIDER: "nodemailer"
EMAIL_HOST: "smtp.gmail.com" # smtp host if you choose nodemailer
EMAIL_PORT: "465" # smtp port if you choose nodemailer
EMAIL_SECURE: "true" # smtp secure if you choose nodemailer
EMAIL_USER: "account@gmail.com" # smtp user if you choose nodemailer
EMAIL_PASS: "account-login-pw" # smtp pass if you choose nodemailer

having these applied under environment in the docker compose file appears to do nothing, I repeated get Email sender information not found in environment variables,

This issue was compounded with CORS issues when trying to run Postiz with NGINX through docker, I could not get it to allow me to create an account until I just dropped NGINX and set everything to run through localhost, even then, I cannot get it to send a verification email to complete signing up.

👟 Reproduction steps

set email settings as following via docker compose

EMAIL_PROVIDER: "nodemailer"
EMAIL_HOST: "smtp.gmail.com" # smtp host if you choose nodemailer
EMAIL_PORT: "465" # smtp port if you choose nodemailer
EMAIL_SECURE: "true" # smtp secure if you choose nodemailer
EMAIL_USER: "account@gmail.com" # smtp user if you choose nodemailer
EMAIL_PASS: "account-login-pw" # smtp pass if you choose nodemailer

👍 Expected behavior

when creating an account, a verification email should be sent, however it repeated states email not set in logs

👎 Actual Behavior with Screenshots

web ui states an email has been sent, but logs show an error stating email not set for sending anything out, despite settings via docker compose.

💻 Operating system

Windows

🤖 Node Version

v1.6.9 / latest

📃 Provide any additional context for the Bug.

Running via docker desktop and docker compose on windows, via wsl

👀 Have you spent some time to check if this bug has been raised before?

  • I checked and didn't find similar issue

Are you willing to submit PR?

None

@jamesread
Copy link
Collaborator

Hey @taibhse-designs , when you set the variables with your docker compose, did you do docker down and docker up again to recreate the container with the environment variables?

If yes, please post the exact error message that you are getting.

Regarding CORs errors, please post your URL environment variables and tell us how you are installing.

@jamesread
Copy link
Collaborator

@taibhse-designs , additionally, see the docs, the reason that you're getting these errors is that I don't see EMAIL_FROPM_NAME and EMAIL_FROM address defined.

See: https://docs.postiz.com/configuration/emails

@nevo-david
Copy link
Contributor

I am closing it for now @taibhse-designs for installations problem, feel free to join our discord at:
https://discord.postiz.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants