Canvas LMS Outgoing Mail not working

yugandhar2245
Community Member

Hi,

I am trying to configure my outgoing_mail.yml file with my Gmail SMTP details and I am getting the below error.

[CANVAS_ERRORS] EXCEPTION LOG
Errno::ECONNREFUSED (Connection refused - connect(2) for "localhost" port 25):
/var/canvas/vendor/bundle/ruby/3.1.0/gems/net-smtp-0.5.0/lib/net/smtp.rb:663:in `initialize'
/var/canvas/vendor/bundle/ruby/3.1.0/gems/net-smtp-0.5.0/lib/net/smtp.rb:663:in `open'
/var/canvas/vendor/bundle/ruby/3.1.0/gems/net-smtp-0.5.0/lib/net/smtp.rb:663:in `tcp_socket'

 

My SMTP configurations:

production:
address: smtp.gmail.com # Your SMTP server address
port: "465" # Port 465 for SSL
enable_starttls_auto: false # Disable TLS
ssl: true # Enable SSL
user_name: "lms@artiqinsights.com"
password: "***************"
authentication: cram_md5 # secure authentication
domain: smtp.gmail.com # Your SMTP server address
outgoing_address: "lms@artiqinsights.com"
default_name: "Artiq Insights LMS"

 

Tried all the below options:

I tried by sending email using the above credentials using CURL and it is working fine.

Cleared Redis Cache

not sure why it is connecting to Localhost on port 25, which is not configured anywhere.

Please help struggling a lot to fix this.

Thanks,
Yugandhar

0 Likes