Hi, I'm not able to get a working smtp configuration for outgoing mails.
I'm using the docker-compose.yml and .env files from the repo with the following smtp configuration:
# Mail configuration.
SMTP_DOMAIN=mydomain.de
SMTP_SERVER=smtp.gmail.com
SMTP_PASSWORD=mypasswd
SMTP_USER_NAME=mymail@gmail.com
SMTP_PORT=587
SMTP_SSL=true
# You may need this for some servers
SMTP_ENABLE_STARTTLS_AUTO: true
# Don't disable openssl verification on production!
SMTP_OPENSSL_VERIFY_MODE: peer
But I'm facing this error:
SSL_connect returned=1 errno=0 state=error: wrong version number
/usr/local/lib/ruby/2.6.0/net/protocol.rb:44:in `connect_nonblock'
/usr/local/lib/ruby/2.6.0/net/protocol.rb:44:in `ssl_socket_connect'
/usr/local/lib/ruby/2.6.0/net/smtp.rb:584:in `tlsconnect'
/usr/local/lib/ruby/2.6.0/net/smtp.rb:552:in `do_start'
/usr/local/lib/ruby/2.6.0/net/smtp.rb:518:in `start'
/app/vendor/bundle/ruby/2.6.0/gems/mail-2.7.1/lib/mail/network/delivery_methods/smtp.rb:109:in `start_smtp_session'
/app/vendor/bundle/ruby/2.6.0/gems/mail-2.7.1/lib/mail/network/delivery_methods/smtp.rb:100:in `deliver!'
/app/vendor/bundle/ruby/2.6.0/gems/mail-2.7.1/lib/mail/message.rb:2159:in `do_delivery'
/app/vendor/bundle/ruby/2.6.0/gems/mail-2.7.1/lib/mail/message.rb:260:in `block in deliver'
/app/vendor/bundle/ruby/2.6.0/gems/actionmailer-6.0.5.1/lib/action_mailer/base.rb:589:in `block in deliver_mail'
/app/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.5.1/lib/active_support/notifications.rb:180:in `block in instrument'
/app/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.5.1/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
/app/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.5.1/lib/active_support/notifications.rb:180:in `instrument'
/app/vendor/bundle/ruby/2.6.0/gems/actionmailer-6.0.5.1/lib/action_mailer/base.rb:587:in `deliver_mail'
/app/vendor/bundle/ruby/2.6.0/gems/mail-2.7.1/lib/mail/message.rb:260:in `deliver'
/app/vendor/bundle/ruby/2.6.0/gems/actionmailer-6.0.5.1/lib/action_mailer/message_delivery.rb:115:in `block in deliver_now'
/app/vendor/bundle/ruby/2.6.0/gems/actionmailer-6.0.5.1/lib/action_mailer/rescuable.rb:17:in `handle_exceptions'
/app/vendor/bundle/ruby/2.6.0/gems/actionmailer-6.0.5.1/lib/action_mailer/message_delivery.rb:114:in `deliver_now'
/app/app/models/agents/email_agent.rb:53:in `block in receive'
/app/app/models/agents/email_agent.rb:43:in `each'
/app/app/models/agents/email_agent.rb:43:in `receive'
/app/app/jobs/agent_receive_job.rb:10:in `perform'
/app/vendor/bundle/ruby/2.6.0/gems/activejob-6.0.5.1/lib/active_job/execution.rb:40:in `block in perform_now'
/app/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.5.1/lib/active_support/callbacks.rb:112:in `block in run_callbacks'
/app/vendor/bundle/ruby/2.6.0/gems/i18n-1.12.0/lib/i18n.rb:322:in `with_locale'
/app/vendor/bundle/ruby/2.6.0/gems/activejob-6.0.5.1/lib/active_job/translation.rb:9:in `block (2 levels) in <module:Translation>'
/app/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.5.1/lib/active_support/callbacks.rb:121:in `instance_exec'
/app/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.5.1/lib/active_support/callbacks.rb:121:in `block in run_callbacks'
/app/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.5.1/lib/active_support/core_ext/time/zones.rb:66:in `use_zone'
/app/vendor/bundle/ruby/2.6.0/gems/activejob-6.0.5.1/lib/active_job/timezones.rb:9:in `block (2 levels) in <module:Timezones>'
/app/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.5.1/lib/active_support/callbacks.rb:121:in `instance_exec'
/app/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.5.1/lib/active_support/callbacks.rb:121:in `block in run_callbacks'
/app/vendor/bundle/ruby/2.6.0/gems/activejob-6.0.5.1/lib/active_job/logging.rb:25:in `block (4 levels) in <module:Logging>'
/app/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.5.1/lib/active_support/notifications.rb:180:in `block in instrument'
/app/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.5.1/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
/app/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.5.1/lib/active_support/notifications.rb:180:in `instrument'
/app/vendor/bundle/ruby/2.6.0/gems/activejob-6.0.5.1/lib/active_job/logging.rb:24:in `block (3 levels) in <module:Logging>'
/app/vendor/bundle/ruby/2.6.0/gems/activejob-6.0.5.1/lib/active_job/logging.rb:45:in `block in tag_logger'
/app/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.5.1/lib/active_support/tagged_logging.rb:80:in `block in tagged'
/app/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.5.1/lib/active_support/tagged_logging.rb:28:in `tagged'
/app/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.5.1/lib/active_support/tagged_logging.rb:80:in `tagged'
/app/vendor/bundle/ruby/2.6.0/gems/activejob-6.0.5.1/lib/active_job/logging.rb:45:in `tag_logger'
/app/vendor/bundle/ruby/2.6.0/gems/activejob-6.0.5.1/lib/active_job/logging.rb:21:in `block (2 levels) in <module:Logging>'
/app/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.5.1/lib/active_support/callbacks.rb:121:in `instance_exec'
/app/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.5.1/lib/active_support/callbacks.rb:121:in `block in run_callbacks'
/app/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.5.1/lib/active_support/callbacks.rb:139:in `run_callbacks'
/app/vendor/bundle/ruby/2.6.0/gems/activejob-6.0.5.1/lib/active_job/execution.rb:39:in `perform_now'
/app/vendor/bundle/ruby/2.6.0/gems/activejob-6.0.5.1/lib/active_job/execution.rb:25:in `block in execute'
/app/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.5.1/lib/active_support/callbacks.rb:112:in `block in run_callbacks'
/app/vendor/bundle/ruby/2.6.0/gems/activejob-6.0.5.1/lib/active_job/railtie.rb:43:in `block (4 levels) in <class:Railtie>'
/app/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.5.1/lib/active_support/execution_wrapper.rb:91:in `wrap'
/app/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.5.1/lib/active_support/reloader.rb:72:in `block in wrap'
/app/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.5.1/lib/active_support/execution_wrapper.rb:91:in `wrap'
/app/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.5.1/lib/active_support/reloader.rb:71:in `wrap'
/app/vendor/bundle/ruby/2.6.0/gems/activejob-6.0.5.1/lib/active_job/railtie.rb:42:in `block (3 levels) in <class:Railtie>'
/app/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.5.1/lib/active_support/callbacks.rb:121:in `instance_exec'
/app/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.5.1/lib/active_support/callbacks.rb:121:in `block in run_callbacks'
/app/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.5.1/lib/active_support/callbacks.rb:139:in `run_callbacks'
/app/vendor/bundle/ruby/2.6.0/gems/activejob-6.0.5.1/lib/active_job/execution.rb:23:in `execute'
/app/vendor/bundle/ruby/2.6.0/gems/activejob-6.0.5.1/lib/active_job/queue_adapters/delayed_job_adapter.rb:42:in `perform'
/app/vendor/bundle/ruby/2.6.0/gems/delayed_job-4.1.8/lib/delayed/backend/base.rb:81:in `block in invoke_job'
/app/vendor/bundle/ruby/2.6.0/gems/delayed_job-4.1.8/lib/delayed/lifecycle.rb:61:in `block in initialize'
/app/vendor/bundle/ruby/2.6.0/gems/delayed_job-4.1.8/lib/delayed/lifecycle.rb:66:in `execute'
/app/vendor/bundle/ruby/2.6.0/gems/delayed_job-4.1.8/lib/delayed/lifecycle.rb:40:in `run_callbacks'
/app/vendor/bundle/ruby/2.6.0/gems/delayed_job-4.1.8/lib/delayed/backend/base.rb:78:in `invoke_job'
/app/vendor/bundle/ruby/2.6.0/gems/delayed_job-4.1.8/lib/delayed/worker.rb:230:in `block (2 levels) in run'
/usr/local/lib/ruby/2.6.0/timeout.rb:93:in `block in timeout'
/usr/local/lib/ruby/2.6.0/timeout.rb:103:in `timeout'
/app/vendor/bundle/ruby/2.6.0/gems/delayed_job-4.1.8/lib/delayed/worker.rb:230:in `block in run'
/usr/local/lib/ruby/2.6.0/benchmark.rb:308:in `realtime'
/app/vendor/bundle/ruby/2.6.0/gems/delayed_job-4.1.8/lib/delayed/worker.rb:229:in `run'
/app/vendor/bundle/ruby/2.6.0/gems/delayed_job-4.1.8/lib/delayed/worker.rb:312:in `block in reserve_and_run_one_job'
/app/vendor/bundle/ruby/2.6.0/gems/delayed_job-4.1.8/lib/delayed/lifecycle.rb:61:in `block in initialize'
/app/vendor/bundle/ruby/2.6.0/gems/delayed_job-4.1.8/lib/delayed/lifecycle.rb:66:in `execute'
/app/vendor/bundle/ruby/2.6.0/gems/delayed_job-4.1.8/lib/delayed/lifecycle.rb:40:in `run_callbacks'
/app/vendor/bundle/ruby/2.6.0/gems/delayed_job-4.1.8/lib/delayed/worker.rb:312:in `reserve_and_run_one_job'
/app/vendor/bundle/ruby/2.6.0/gems/delayed_job-4.1.8/lib/delayed/worker.rb:213:in `block in work_off'
/app/vendor/bundle/ruby/2.6.0/gems/delayed_job-4.1.8/lib/delayed/worker.rb:212:in `times'
/app/vendor/bundle/ruby/2.6.0/gems/delayed_job-4.1.8/lib/delayed/worker.rb:212:in `work_off'
/app/vendor/bundle/ruby/2.6.0/gems/delayed_job-4.1.8/lib/delayed/worker.rb:175:in `block (4 levels) in start'
/usr/local/lib/ruby/2.6.0/benchmark.rb:308:in `realtime'
/app/vendor/bundle/ruby/2.6.0/gems/delayed_job-4.1.8/lib/delayed/worker.rb:174:in `block (3 levels) in start'
/app/vendor/bundle/ruby/2.6.0/gems/delayed_job-4.1.8/lib/delayed/lifecycle.rb:61:in `block in initialize'
/app/vendor/bundle/ruby/2.6.0/gems/delayed_job-4.1.8/lib/delayed/lifecycle.rb:66:in `execute'
/app/vendor/bundle/ruby/2.6.0/gems/delayed_job-4.1.8/lib/delayed/lifecycle.rb:40:in `run_callbacks'
/app/vendor/bundle/ruby/2.6.0/gems/delayed_job-4.1.8/lib/delayed/worker.rb:173:in `block (2 levels) in start'
/app/vendor/bundle/ruby/2.6.0/gems/delayed_job-4.1.8/lib/delayed/worker.rb:172:in `loop'
/app/vendor/bundle/ruby/2.6.0/gems/delayed_job-4.1.8/lib/delayed/worker.rb:172:in `block in start'
/app/vendor/bundle/ruby/2.6.0/gems/delayed_job-4.1.8/lib/delayed/plugins/clear_locks.rb:7:in `block (2 levels) in <class:ClearLocks>'
/app/vendor/bundle/ruby/2.6.0/gems/delayed_job-4.1.8/lib/delayed/lifecycle.rb:79:in `block (2 levels) in add'
/app/vendor/bundle/ruby/2.6.0/gems/delayed_job-4.1.8/lib/delayed/lifecycle.rb:61:in `block in initialize'
/app/vendor/bundle/ruby/2.6.0/gems/delayed_job-4.1.8/lib/delayed/lifecycle.rb:79:in `block in add'
/app/vendor/bundle/ruby/2.6.0/gems/delayed_job-4.1.8/lib/delayed/lifecycle.rb:66:in `execute'
/app/vendor/bundle/ruby/2.6.0/gems/delayed_job-4.1.8/lib/delayed/lifecycle.rb:40:in `run_callbacks'
/app/vendor/bundle/ruby/2.6.0/gems/delayed_job-4.1.8/lib/delayed/worker.rb:171:in `start'
/app/vendor/bundle/ruby/2.6.0/gems/delayed_job-4.1.8/lib/delayed/command.rb:137:in `run'
/app/vendor/bundle/ruby/2.6.0/gems/delayed_job-4.1.8/lib/delayed/command.rb:125:in `block in run_process'
/app/vendor/bundle/ruby/2.6.0/gems/daemons-1.3.1/lib/daemons/application.rb:275:in `block in start_proc'
/app/vendor/bundle/ruby/2.6.0/gems/daemons-1.3.1/lib/daemons/application.rb:284:in `start_proc'
/app/vendor/bundle/ruby/2.6.0/gems/daemons-1.3.1/lib/daemons/application.rb:305:in `start'
/app/vendor/bundle/ruby/2.6.0/gems/daemons-1.3.1/lib/daemons/controller.rb:59:in `run'
/app/vendor/bundle/ruby/2.6.0/gems/daemons-1.3.1/lib/daemons.rb:199:in `block in run_proc'
/app/vendor/bundle/ruby/2.6.0/gems/daemons-1.3.1/lib/daemons/cmdline.rb:121:in `catch_exceptions'
/app/vendor/bundle/ruby/2.6.0/gems/daemons-1.3.1/lib/daemons.rb:198:in `run_proc'
/app/vendor/bundle/ruby/2.6.0/gems/delayed_job-4.1.8/lib/delayed/command.rb:123:in `run_process'
/app/vendor/bundle/ruby/2.6.0/gems/delayed_job-4.1.8/lib/delayed/command.rb:104:in `block in daemonize'
/app/vendor/bundle/ruby/2.6.0/gems/delayed_job-4.1.8/lib/delayed/command.rb:102:in `times'
/app/vendor/bundle/ruby/2.6.0/gems/delayed_job-4.1.8/lib/delayed/command.rb:102:in `daemonize'
script/delayed_job:5:in `<top (required)>'
/usr/local/bundle/gems/bundler-2.3.24/lib/bundler/cli/exec.rb:58:in `load'
/usr/local/bundle/gems/bundler-2.3.24/lib/bundler/cli/exec.rb:58:in `kernel_load'
/usr/local/bundle/gems/bundler-2.3.24/lib/bundler/cli/exec.rb:23:in `run'
/usr/local/bundle/gems/bundler-2.3.24/lib/bundler/cli.rb:486:in `exec'
/usr/local/bundle/gems/bundler-2.3.24/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
/usr/local/bundle/gems/bundler-2.3.24/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
/usr/local/bundle/gems/bundler-2.3.24/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
/usr/local/bundle/gems/bundler-2.3.24/lib/bundler/cli.rb:31:in `dispatch'
/usr/local/bundle/gems/bundler-2.3.24/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
/usr/local/bundle/gems/bundler-2.3.24/lib/bundler/cli.rb:25:in `start'
/usr/local/bundle/gems/bundler-2.3.24/exe/bundle:48:in `block in <top (required)>'
/usr/local/bundle/gems/bundler-2.3.24/lib/bundler/friendly_errors.rb:120:in `with_friendly_errors'
/usr/local/bundle/gems/bundler-2.3.24/exe/bundle:36:in `<top (required)>'
/usr/local/bundle/bin/bundle:23:in `load'
/usr/local/bundle/bin/bundle:23:in `<main>'
From what I understand this error has something to do with TLS-version, but the .env file does not specify a configuration option for TLS-version.
Hi, I'm not able to get a working smtp configuration for outgoing mails.
I'm using the docker-compose.yml and .env files from the repo with the following smtp configuration:
But I'm facing this error:
From what I understand this error has something to do with TLS-version, but the .env file does not specify a configuration option for TLS-version.
How to fix this?