SMTP Weird Issues

Hey Everyone,

Having this issue with SMTP. Worked before but now I am getting errors that I cannot really tell are leading me to…

/usr/local/lib/ruby/2.6.0/net/protocol.rb:225:in `rbuf_fill'

/usr/local/lib/ruby/2.6.0/net/protocol.rb:191:in `readuntil'

/usr/local/lib/ruby/2.6.0/net/protocol.rb:201:in `readline'

/usr/local/lib/ruby/2.6.0/net/smtp.rb:950:in `recv_response'

/usr/local/lib/ruby/2.6.0/net/smtp.rb:935:in `block in getok'

/usr/local/lib/ruby/2.6.0/net/smtp.rb:960:in `critical'

/usr/local/lib/ruby/2.6.0/net/smtp.rb:933:in `getok'

/usr/local/lib/ruby/2.6.0/net/smtp.rb:919:in `quit'

/usr/local/lib/ruby/2.6.0/net/smtp.rb:612:in `do_finish'

/usr/local/lib/ruby/2.6.0/net/smtp.rb:521:in `ensure in start'

/usr/local/lib/ruby/2.6.0/net/smtp.rb:521:in `start'

mail-2.7.1/lib/mail/network/delivery_methods/smtp.rb:109:in `start_smtp_session'

mail-2.7.1/lib/mail/network/delivery_methods/smtp.rb:100:in `deliver!'

mail-2.7.1/lib/mail/message.rb:2159:in `do_delivery'

mail-2.7.1/lib/mail/message.rb:260:in `block in deliver'

actionmailer-6.0.1/lib/action_mailer/base.rb:589:in `block in deliver_mail'

activesupport-6.0.1/lib/active_support/notifications.rb:180:in `block in instrument'

activesupport-6.0.1/lib/active_support/notifications/instrumenter.rb:24:in `instrument'

activesupport-6.0.1/lib/active_support/notifications.rb:180:in `instrument'

actionmailer-6.0.1/lib/action_mailer/base.rb:587:in `deliver_mail'

mail-2.7.1/lib/mail/message.rb:260:in `deliver'

actionmailer-6.0.1/lib/action_mailer/message_delivery.rb:114:in `block in deliver_now'

actionmailer-6.0.1/lib/action_mailer/rescuable.rb:17:in `handle_exceptions'

actionmailer-6.0.1/lib/action_mailer/message_delivery.rb:113:in `deliver_now'

/var/www/discourse/lib/email/sender.rb:213:in `send'

/var/www/discourse/app/jobs/regular/download_backup_email.rb:21:in `execute'

/var/www/discourse/app/jobs/base.rb:232:in `block (2 levels) in perform'

rails_multisite-2.1.1/lib/rails_multisite/connection_management.rb:64:in `with_connection'

/var/www/discourse/app/jobs/base.rb:221:in `block in perform'

/var/www/discourse/app/jobs/base.rb:217:in `each'

/var/www/discourse/app/jobs/base.rb:217:in `perform'

sidekiq-6.0.5/lib/sidekiq/processor.rb:196:in `execute_job'

sidekiq-6.0.5/lib/sidekiq/processor.rb:164:in `block (2 levels) in process'

sidekiq-6.0.5/lib/sidekiq/middleware/chain.rb:138:in `block in invoke'

/var/www/discourse/lib/sidekiq/pausable.rb:138:in `call'

sidekiq-6.0.5/lib/sidekiq/middleware/chain.rb:140:in `block in invoke'

sidekiq-6.0.5/lib/sidekiq/middleware/chain.rb:143:in `invoke'

sidekiq-6.0.5/lib/sidekiq/processor.rb:163:in `block in process'

sidekiq-6.0.5/lib/sidekiq/processor.rb:136:in `block (6 levels) in dispatch'

sidekiq-6.0.5/lib/sidekiq/job_retry.rb:111:in `local'

sidekiq-6.0.5/lib/sidekiq/processor.rb:135:in `block (5 levels) in dispatch'

sidekiq-6.0.5/lib/sidekiq.rb:37:in `block in <module:Sidekiq>'

sidekiq-6.0.5/lib/sidekiq/processor.rb:131:in `block (4 levels) in dispatch'

sidekiq-6.0.5/lib/sidekiq/processor.rb:257:in `stats'

sidekiq-6.0.5/lib/sidekiq/processor.rb:126:in `block (3 levels) in dispatch'

sidekiq-6.0.5/lib/sidekiq/job_logger.rb:13:in `call'

sidekiq-6.0.5/lib/sidekiq/processor.rb:125:in `block (2 levels) in dispatch'

sidekiq-6.0.5/lib/sidekiq/job_retry.rb:78:in `global'

sidekiq-6.0.5/lib/sidekiq/processor.rb:124:in `block in dispatch'

sidekiq-6.0.5/lib/sidekiq/logger.rb:10:in `with'

sidekiq-6.0.5/lib/sidekiq/job_logger.rb:33:in `prepare'

sidekiq-6.0.5/lib/sidekiq/processor.rb:123:in `dispatch'

sidekiq-6.0.5/lib/sidekiq/processor.rb:162:in `process'

sidekiq-6.0.5/lib/sidekiq/processor.rb:78:in `process_one'

sidekiq-6.0.5/lib/sidekiq/processor.rb:68:in `run'

sidekiq-6.0.5/lib/sidekiq/util.rb:15:in `watchdog'

sidekiq-6.0.5/lib/sidekiq/util.rb:24:in `block in safe_thread'
1 Like

Here is what my config looks like:

      ## TODO: The SMTP mail server used to validate new accounts and send notifications
  # SMTP ADDRESS, username, and password are required
  # WARNING the char '#' in SMTP password can cause problems!
  DISCOURSE_SMTP_ADDRESS: smtpout.secureserver.net
  DISCOURSE_SMTP_PORT: 587
  DISCOURSE_SMTP_USER_NAME: xxxxxxxxx@cmmchub.com
  DISCOURSE_SMTP_PASSWORD: "Password"
  #DISCOURSE_SMTP_ENABLE_START_TLS: true
  #DISCOURSE_SMTP_OPENSSL_VERIFY_MODE: none
  DISCOURSE_SMTP_ENABLE_START_TLS: true           # (optional, default true)
1 Like

Have you also updated the notification_email for your discourse?

4 Likes

I did. Not sure what happened but I just tested it and it all is magically working again…

3 Likes