bigbluebutton / greenlight

A really simple end-user interface for your BigBlueButton server.
GNU Lesser General Public License v3.0
789 stars 3.8k forks source link

Error connecting to SMTP #1404

Closed Franz-Heinz closed 3 years ago

Franz-Heinz commented 4 years ago

Hello, I'm stuck trying to set up email notification

My .env looks like this:

SMTP_SERVER=mail.servername.de
SMTP_PORT=587
SMTP_DOMAIN=servername.de
SMTP_USERNAME=username@servername.de
SMTP_PASSWORD=password
SMTP_AUTH=plain
SMTP_STARTTLS_AUTO=true
# Specify the email address that all mail is sent from
SMTP_SENDER=bigbluebutton@servername.de

I also tried to add EMAIL_SENDER=bigbluebutton@servernameserver.de

When I test the configuration with docker run --rm --env-file ~/greenlight/.env bigbluebutton/greenlight:v2 bundle exec rake conf:check

I always get: Error connecting to SMTP - 550 5.1.1 <notifications@example.com>: Recipient address rejected: User unknown in virtual mailbox table

It seems, I just can't figure out, where the notifications@example.com comes from and how to get rid of it.

Sea444 commented 4 years ago

Doing the configuration check you mentioned, I get an error message on my server as well: Checking SMTP connection: Failed Error connecting to SMTP - 556 5.1.10 <notifications@example.com>: Recipient address rejected: Domain example.com does not accept mail (nullMX)

But despite the error message, greenlight can send verification and password-reset-mails. SO I ignored thos error message.-

Yes, you should have the option to select your own recipient e-mail address to test the e-mailk-sending.

farhatahmad commented 4 years ago

We should probably be using the value of SMTP_SENDER (if set) for the configuration check instead of the default email that we use now

erotavlasme commented 4 years ago

I have some problem with SMTP too. I verified all the configurations with thunderbird and then with docker run --rm --env-file .env bigbluebutton/greenlight:v2 bundle exec rake conf:check. In particular, I tried with sendmail, with common providers (gmail, hotmail-outlook, etc.) as well with custom provider and I was able to setup just gmail.

tarunb999 commented 4 years ago

@erotavlas-turbo yes you are right, even I was not able to work with my custom SMTP details from Zoho. Had to use gmail and with the removing the various security features that Gmail has introduced.

amenolo commented 4 years ago

Same here...tested with username@mydomain.tld: zero problem via standard client or telnet, 500 Unrecognized command error via Greenlight...very frustrating...

farhatahmad commented 3 years ago

I believe this has been fixed for a while