I would like to use MailJet to send emails from GitLab. But, it doesn't work :-(
MailJet explain that :
User : <API Key>
Pass: <API Secret>
SMTP: in-v3.mailjet.com
PORT: 25 or 587
If TLS doesn't work on 587 port, try 465 and/or use SSL instead.
My gitlab environments are:
SMTP_ENABLED=true
SMTP_DOMAIN=in-v3.mailjet.com
SMTP_HOST=in-v3.mailjet.com
SMTP_USER=< API Key >
SMTP_PASS=< API Pass >
SMTP_PORT=587 # 25 or 465 doesn't work
SMTP_TLS=true # The same with false
SMTP_STARTTLS=false
$ 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
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.
Hello
I would like to use MailJet to send emails from GitLab. But, it doesn't work :-(
MailJet explain that :
<API Key>
<API Secret>
in-v3.mailjet.com
25 or 587
If TLS doesn't work on 587 port, try 465 and/or use SSL instead.My gitlab environments are:
Do you see any misconfiguration ?
Thanks