Question

Greenlight fails to configure smtp

I have this seetings in the .env file of greenlight in my bigbluebutton server

ALLOW_MAIL_NOTIFICATIONS=true

SMTP_SERVER=.company.mail SMTP_PORT=587 SMTP_DOMAIN=company.mail SMTP_USERNAME=@company.mail SMTP_PASSWORD=*** SMTP_AUTH=plain SMTP_STARTTLS_AUTO=true

SMTP_OPENSSL_VERIFY_MODE=none

SMTP_SENDER=***@company.mail

SMTP_TEST_RECIPIENT=myemail@of.course

Yes, the email works as SMTP, I use it in another service and it works fine with the correct password and the same settings

But when I run this command

docker run --rm --env-file .env bigbluebutton/greenlight:v2 bundle exec rake conf:check

The output prompts

Checking environment: Passed
Checking Connection: Passed
Checking Secret: Passed
Checking SMTP connection: Failed
Error connecting to SMTP - SSL_connect returned=1 errno=0 state=error: wrong version number

I have no idea of what is wrong with it

Thank you in advance


Submit an answer


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Accepted Answer

Well, a partner told me something that I could read correctly because of the dark blue in the vi comments. The error was that I was using this

SMTP_TLS=true

The comment of the line above is

#   enable SMTPS: SMTP over direct TLS connection; usually port 465

So, my SMTP needed to use STARTTLS port 587 and that line was messing it all. Once commented, it all worked

alexdo
Site Moderator
Site Moderator badge
March 25, 2024

Heya,

You can check the following steps in this guide to configure greenlight.

https://docs.bigbluebutton.org/greenlight/v3/install/

Keep in mind that SMTP is disabled by default for new accounts.

Regards

Update

I found that some people got this fixed using this code

cd /root/greenlight
docker-compose down
docker pull bigbluebutton/greenlight:v2
docker-compose up -d

But that’s not my case, everything us updated and the message prompts the same error

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel