-
Notifications
You must be signed in to change notification settings - Fork 343
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
Unauthenticated SMTP fails "No SMTP username provided" #2471
Comments
Hello @kaffe19, thanks for contributing to the Password Pusher community! We will respond as soon as possible. |
I have the exact same problem, also using Docker. @pglombardo Perhaps adding a configuration example for unauthenticated SMTP on port 25 to the docs would be helpful as well? |
Same here, would be great to have this fixed. Any workaround? |
Hi all - just an update. I'm looking at this today. |
I think it's been more than ~10 years since I setup a local postfix instance. :-) I made some fixes and got email working with postfix on localhost:25. v1.45.10 is building now. Could you update your containers and revalidate with the TestMailer? Fingers crossed, this should be an improvement. @MadWalnut - once I get validations, I'll add local mail server instructions to the docs for sure. |
FWIW, this was my output with the updated I left
|
It seems to work. I do now recieve password reset emails aswell as emails from TestMailer. Well done! This is my TestMailer output:
|
🐛 Bug Report
🔬 How To Reproduce
Steps to reproduce the behavior:
pull pglombardo/pwpush:latest
set PWP__MAIL__SMTP_ENABLE_STARTTLS_AUTO -> false
do not set PWP__MAIL__SMTP_AUTHENTICATION, PWP__MAIL__SMTP_USER_NAME or PWP__MAIL__SMTP_PASSWORD
(exactly as when it was working before)
send test mail from console: password-pusher(prod)> TestMailer.send_test_email("[email protected]").deliver_now
--> Configured FROM: address: '[email protected]'
app/mailers/test_mailer.rb:7:in `send_test_email': No SMTP username provided: smtp_user_name (StandardError)
SMTPsettings:
password-pusher(prod)> Rails.application.config.action_mailer.smtp_settings
=> {:address=>"mysmtpserver.example.com", :port=>25, :open_timeout=>10, :read_timeout=>10, :enable_starttls_auto=>false}
Where are you running/using Password Pusher?
📈 Expected behavior
Mail should be deliverd to SMTP server unauthenticaded on port 25, in case user is not set.
The text was updated successfully, but these errors were encountered: