-
Notifications
You must be signed in to change notification settings - Fork 358
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
E-mail not sending on docker enviroment #1355
Comments
Hello @MkosterNet4it, thanks for contributing to the Password Pusher community! We will respond as soon as possible. |
Hi @MkosterNet4it a couple ideas:
Re:
It's odd that it attempted to connect on port 25 here despite configuring 587... Hopefully this will put us on the right path. Let me know. |
Hey @pglombardo I just checked the error log and found this
As far as I can read of this I need to change the authentication type. |
Cool. Great that you found the root cause. I found these on StackOverflow. It seems like you have to set auth to plain and starttls to true:
|
Hey @pglombardo, I changed some mail settings as I found we have another smtp server, right now i'm getting this message.
This is a totally new message that I haven't seen before. |
That means that the container couldn't transfer data over the network. But without more info, it's hard to tell where and why. What did you do to get that error message? Could you post the full stack trace? |
Hey @pglombardo, What I did was click on the button "Didn't receive confirmation instructions?" |
Sadly i'm having the same problem. I can post a stacktrace if needed. I have tried a Azure Container Instance deployment, and a Azure App Service/Web App route. Both deployments worked fine (i deploy from terraform). When i enable the login functionality, and sign up it won't work because PWPush never sends the confirmation email. This also happens in my infra at home where i run docker(compose) on a plain linux machine. It keeps trying to send mail from port 25 while it should use port 465. |
Is there by any chance any progress on this issue ? Thanks ! |
Hi @gregoryca - Sorry to hear these issues are still happening for some. Could you shell into the container, start a console ( |
What's odd is that it says Could you set both of the following environment variable for your container, restart it and then try the test again?
|
Also why the literal quotes ( |
I get these same 500 errors in my container. I've tried the starttls settings and i also tried to get the Rails config, but i get the following error.
|
Hi @TargetCrafter - The command should be If you get a 500, find the error stack trace in the container log and post it here. |
I got the following logs in docker: I find this odd because i have configured to use port 2525 for smtp in my env file:
|
@TargetCrafter there are some errors in your environment variable names. These: export PWP__MAIL_SMTP_ADDRESS='XXXXX'
export PWP__MAIL_SMTP_PORT=2525
export PWP__MAIL_SMTP_USER_NAME='XXXXX'
export PWP__MAIL_SMTP_PPASSWORD='XXXXX' # <--- also spelling error here 'ppassword' should be export PWP__MAIL__SMTP_ADDRESS='XXXXX'
export PWP__MAIL__SMTP_PORT=2525
export PWP__MAIL__SMTP_USER_NAME='XXXXX'
export PWP__MAIL__SMTP_PASSWORD='XXXXX' Documentation here if you want to copy paste for simplicity. |
Thanks, that fixed it. And now I feel stupid xD |
Excellent! But don't feel that way. Those env vars could definitely be more user friendly... |
Excuse my for my late comment. I will make the changes, and see if that changes the behaviour. Why the quotes are being showed, is a good question and something i can't clarify sadly. I will try to create another mail address/display name. Maybe it's the double quotes that's throwing me for a loop |
Hi all - just an update on the email issues: in v1.39.8, I added a tool to test email configurations. Could you update to that version and try this out? It should reveal exactly where the issue is... |
Hi all - thankfully it seems issues with email seems to have been resolved. I'll close out this issue but if anything remains, please feel free to open a new issue and I'll take a look. Thanks for the help all! |
🐛 Bug Report
Mails not sending on custom docker enviroment, getting Error #500
🔬 How To Reproduce
Steps to reproduce the behavior:
Code sample
Environment
Where are you running/using Password Pusher?
If applicable, what version of Password Pusher?
Screenshots
📈 Expected behavior
E-mails being sent to the users, so that we can create the accounts for our company.
📎 Additional context
Hope anyone can help me figure this out
The text was updated successfully, but these errors were encountered: