sameersbn / docker-gitlab

Dockerized GitLab
http://www.damagehead.com/docker-gitlab/
MIT License
7.87k stars 2.14k forks source link

Emails with MailJet #889

Open LM1LC3N7 opened 8 years ago

LM1LC3N7 commented 8 years ago

Hello

I would like to use MailJet to send emails from GitLab. But, it doesn't work :-(

MailJet explain that :

My gitlab environments are:

$ docker exec -ti gitlab cat config/initializers/smtp_settings.rb

# To enable smtp email delivery for your GitLab instance do the following:
#1. Rename this file to smtp_settings.rb
#2. Edit settings inside this file
#3. Restart GitLab instance
#
# For full list of options and their values see http://api.rubyonrails.org/classes/ActionMailer/Base.html
#
# If you change this file in a Merge Request, please also create a Merge Request on https://gitlab.com/gitlab-org/omnibus-gitlab/merge_requests

if Rails.env.production?
  Rails.application.config.action_mailer.delivery_method = :smtp

  ActionMailer::Base.delivery_method = :smtp
  ActionMailer::Base.smtp_settings = {
    address: "in-v3.mailjet.com",
    port: 465,
    user_name: "<API Key>",
    password: "<API Pass>",
    domain: "in-v3.mailjet.com",
    authentication: "login",
    enable_starttls_auto: false,
    openssl_verify_mode: "none",
    tls: true
  }
end

Do you see any misconfiguration ?

Thanks

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had any activity for the last 60 days. It will be closed if no further activity occurs during the next 7 days. Thank you for your contributions.