-
Notifications
You must be signed in to change notification settings - Fork 63
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
Add checksmtp functionality for SMTP configuration verification #231
base: main
Are you sure you want to change the base?
Conversation
No New Or Fixed Issues Found |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would check to see if the openssl
binary is available before calling it. Shouldn't the AUTH LOGIN
section only execute if there is a username
or password
defined? This doesn't work on my self-host that doesn't use authentication. Also, I'm not sure every SMTP server returns 235
for a successful message, it could be any number of 2XX
codes. How do we make sure it actually sent the message?
@vgrassia, thank you very much for your comments! I've implemented the following enhancements:
Currently, this script is designed to verify connectivity without sending any messages. However, I'm open to incorporating a feature to send a test message if we determine it's beneficial for our testing process. Please let me know if you'd like me to proceed with that addition as your valuable suggestions. |
Quality Gate passedIssues Measures |
Description
Introduces the
checksmtp
command to the Bitwarden self-hosted management script, enabling administrators to easily verify the SMTP configuration directly from the command line. This functionality aims to streamline the troubleshooting process of email delivery issues by providing a quick and straightforward method to test the SMTP server connection, authentication, and secure communication.Features
globalSettings__mail__smtp__ssl
to ensure that emails are sent over a secure channel.Usage examples
To use this functionality, run the following command from the Bitwarden self-hosted script directory:
When SMTP configuration is wrong:
When SMTP configuration is right:
Testing
Please review this PR for inclusion in the next release of Bitwarden self-hosted. Your feedback and suggestions are welcome!