SMTP Connection error : wrong version number

1,240 views
Skip to first unread message

Zuben

unread,
Jun 4, 2021, 6:11:43 AM6/4/21
to bigbluebutton-greenlight
Checking SMTP connection: Failed
Error connecting to SMTP - SSL_connect returned=1 errno=0 state=error: wrong version number

I opened Email notifications with gmail account.

Zuben

unread,
Jun 4, 2021, 6:17:27 AM6/4/21
to bigbluebutton-greenlight
~/greenlight# docker run --rm --env-file .env bigbluebutton/greenlight:v2 bundle exec rake conf:check

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

My BBB and Greenlight are installed on the same server using the official bigbluebutton script. Everything is running fine but when I opened SMTP this error occurred. I dont know how to correct it. Please help. 

Zuben

unread,
Jun 18, 2021, 8:45:28 AM6/18/21
to bigbluebutton-greenlight
Error connecting to SMTP - 535-5.7.8 Username and Password not accepted.

Zuben

unread,
Jun 23, 2021, 1:16:24 AM6/23/21
to bigbluebutton-greenlight
Getting this error now
Dont know where I am doing wrong

Checking SMTP connectionsendmail: can't connect to remote host (127.0.0.1): Connection refused

bayden10

unread,
Jun 24, 2021, 11:06:54 PM6/24/21
to bigbluebutton-greenlight
hello
You need to post your .env

~b10

Zuben

unread,
Jun 27, 2021, 1:05:13 AM6/27/21
to bigbluebutton-greenlight
ALLOW_MAIL_NOTIFICATIONS=true

   SMTP_SERVER=smtp.gmail.com
   SMTP_PORT=587
   SMTP_DOMAIN=mydomain.com (running on g-suite)
   SMTP_USERNAME=a...@mydomain.com
   SMTP_PASSWORD=abc email password
   SMTP_AUTH=plain
   SMTP_STARTTLS_AUTO=true
#
#   enable SMTPS: SMTP over direct TLS connection; usually port 465
#   SMTP_TLS=true
#
# If your mail server has a self-signed certificate, you'll also need to include the line below.
# Please note that enable this presents its own security risks and should not be done unless necessary.
#   SMTP_OPENSSL_VERIFY_MODE=none


# Specify the email address that all mail is sent from
SMTP_SENDER=a...@mydomain.com

# Specify the recipient for test emails (needed for providers like Microsoft, who are very
# strict about RFC 2606)
SMTP_TEST_RECIPIENT=notifi...@example.com

bayden10

unread,
Jun 27, 2021, 10:31:32 AM6/27/21
to bigbluebutton-greenlight
Hi, have you tried using the actual gmail username account for SMTP?
Also be sure to change your SMTP_TEST_RECIPIENT to an actual email to receive the tests.

Try something like this first to see if gSuite is causing SMTP issue with SSL.

SMTP_SERVER=smtp.gmail.com
SMTP_PORT=587
SMTP_DOMAIN=gmail.com
SMTP_USERNAME=b...@gmail.com
SMTP_PASSWORD=password
SMTP_SENDER=b...@gmail.com
SMTP_AUTH=plain
SMTP_STARTTLS_AUTO=true
SMTP_SENDER=b...@gmail.com
SMTP_TEST_RECIPIENT=m...@mydomain.ca

~b10

Zuben

unread,
Jun 27, 2021, 11:23:56 AM6/27/21
to bigbluebutton-greenlight
Yeah I tried it earlier as well but it didnt go through. Tried now again with your inputs. But again its the same cannot connect remote host 127.0.0.1 problem.

I changed the domain to gmail.com
used gmail ID password and updated the sender and recipient mails as well. Still the same issue. I also allowed the Use of Less Secure apps in the email settings. Saw that suggestion at several other places.
 
:~/greenlight# docker run --rm --env-file .env bigbluebutton/greenlight:v2 bundle exec rake conf:check

Checking environment: Passed
Checking Connection: Passed
Checking Secret: Passed
Checking SMTP connectionsendmail: can't connect to remote host (127.0.0.1): Connection refused
: Passed

It does say passed in the end though, but dont know what that means. It was there earlier as well.

bayden10

unread,
Jun 27, 2021, 9:05:55 PM6/27/21
to bigbluebutton-greenlight
Be sure you have FQDN resolving to your public IP

~b10

Zuben

unread,
Jun 28, 2021, 2:08:36 AM6/28/21
to bigbluebutton-greenlight
Yes it is working fine. Public IP is resolving to domain name. Private and public IP of the server are displayed correctly as well. I have already working TURN server as well to handle NAT.

bayden10

unread,
Jun 28, 2021, 8:38:57 AM6/28/21
to bigbluebutton-greenlight
Are you using  postfix/sendmail on localhost? ..

~b10

Reply all
Reply to author
Forward
0 new messages