bigbluebutton / greenlight

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

smtp-configuration not working after upgrade to v3.3.6 #5874

Closed fmo1 closed 4 months ago

fmo1 commented 5 months ago

Description My smtp-configuration worked fine up to version 3.3.5 after upgrading to the recent version my configuration stopped working.

To Reproduce

  1. configure a smtp server
  2. install greenlight v.3.3.5
  3. set up the smtp configuration like this: SMTP_SENDER_EMAIL=test@example.com SMTP_SENDER_NAME=noreply test SMTP_SERVER=smtp.example.com SMTP_PORT=25 SMTP_DOMAIN=example.com SMTP_AUTH=none
  4. test mail configuration via test mailer
  5. upgrade greenlight to v3.3.6
  6. test mail configuration via test mailer

Expected behavior 2x mails in your mail box (1x v3.3.5, 1x v3.3.6)

Actual behavior 1x mail in mail box from v3.3.5

Logs @v3.3.5

greenlight-v3    | I, [2024-07-03T11:58:16.523701 #1]  INFO -- : [434d7219-7068-4283-9c55-b60f3c617dab] [ActiveJob] Enqueued ActionMailer::MailDeliveryJob (Job ID: dabb9b45-c8d6-4b3c-862c-abc074138f58) to Async(greenlight_v3_production_mailing) with arguments: "UserMailer", "test_email", "deliver_now", {:params=>{:to=>"fmo1@example.com", :subject=>"Test Subject"}, :args=>[]}
greenlight-v3    | I, [2024-07-03T11:58:16.524379 #1]  INFO -- : [ActiveJob] [ActionMailer::MailDeliveryJob] [dabb9b45-c8d6-4b3c-862c-abc074138f58] Performing ActionMailer::MailDeliveryJob (Job ID: dabb9b45-c8d6-4b3c-862c-abc074138f58) from Async(greenlight_v3_production_mailing) enqueued at 2024-07-03T11:58:16.523464397Z with arguments: "UserMailer", "test_email", "deliver_now", {:params=>{:to=>"fmo1@example.com", :subject=>"Test Subject"}, :args=>[]}

@v3.3.6

greenlight-v3    | I, [2024-07-03T12:23:16.311953 #1]  INFO -- : [ActiveJob] [ActionMailer::MailDeliveryJob] [e65263e4-7116-4091-a7cd-5db21d0e9bcb] Performing ActionMailer::MailDeliveryJob (Job ID: e65263e4-7116-4091-a7cd-5db21d0e9bcb) from Async(greenlight_v3_production_mailing) enqueued at 2024-07-03T12:23:16.309502228Z with arguments: "UserMailer", "test_email", "deliver_now", {:params=>{:to=>"fmo1@example.com", :subject=>"Test Subject"}, :args=>[]}
greenlight-v3    | I, [2024-07-03T12:23:16.366139 #1]  INFO -- : [2bd06b06-49b3-4b55-ab9c-3347be7c93a5] method=GET path=/api/v1/sessions.json format=json controller=Api::V1::SessionsController action=index status=200 allocations=5347 duration=30.92 view=5.01 db=10.10 time=2024-07-03 12:23:16 UTC host=greenlight
greenlight-v3    | E, [2024-07-03T12:23:16.375603 #1] ERROR -- : [ActiveJob] [ActionMailer::MailDeliveryJob] [e65263e4-7116-4091-a7cd-5db21d0e9bcb] Error performing ActionMailer::MailDeliveryJob (Job ID: e65263e4-7116-4091-a7cd-5db21d0e9bcb) from Async(greenlight_v3_production_mailing) in 63.73ms: ArgumentError (wrong authentication type none):
farhatahmad commented 5 months ago

Can you try leaving SMTP_AUTH as blank? AFAIK SMTP_AUTH needs to be either nil plain login or cram_md5 (see https://guides.rubyonrails.org/action_mailer_basics.html#action-mailer-configuration)

fmo1 commented 5 months ago

I changed it to blank by commenting out the SMTP_AUTH option. Now it works again...