Open fer opened 3 months ago
Checkmarx One – Scan Summary & Details – f31e5509-23c9-410d-ad41-55190e17ddd5
@vgrassia, thank you very much for your comments!
I've implemented the following enhancements:
openssl
is installed before proceeding.AUTH
section if both the username and password are provided and are not empty.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.
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!