I am using GitLab CE 9.2.5.
I set up GitLab the way I wanted it to be for my company. Though, when users try to register for an account, they never receive confirmation emails for the accounts. This is with our company domain, and trying to get mails from a mail server that we set up.
Here is my gitlab.rb file, if someone can let know if I did not set the file up right and that is way it is not working or something.
external_url "https://gitlab.devplateau.com/"
gitlab_rails['gitlab_email_from'] = "gitlab@devplateau.com"
gitlab_rails['gitlab_support_email'] = "support@devplateau.com"
gitlab_rails['smtp_enable'] = true
gitlab_rails['smtp_address'] = "devplateau.com"
gitlab_rails['smtp_port'] = 465
gitlab_rails['smtp_user_name'] = "root"
# gitlab_rails['smtp_password'] = "smtp password"
gitlab_rails['smtp_domain'] = "devplateau.com"
gitlab_rails['smtp_authentication'] = "login"
gitlab_rails['smtp_enable_starttls_auto'] = true
gitlab_rails['smtp_openssl_verify_mode'] = 'peer'
nginx['redirect_http_to_https'] = true
nginx['ssl_certificate'] = "/etc/letsencrypt/live/gitlab.devplateau.com/fullchain.pem"
nginx['ssl_certificate_key'] = "/etc/letsencrypt/live/gitlab.devplateau.com/privkey.pem"
nginx['custom_gitlab_server_config'] = "location ^~ /.well-known { root /var/www/letsencrypt; }"
#external_url "http://162.243.62.9"
I am not sure what other files to post, so that you can see my setup, but please let me know if you need any other file(s); I will be happy to post them for you.
I have reconfigured postfix to make sure that it is using my mail server, as well. I do not believe that did anything either.
# See /usr/share/postfix/main.cf.dist for a commented, more complete version
# Debian specific: Specifying a file name will cause the first
# line of that file to be used as the name. The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no
# appending .domain is the MUA's job.
append_dot_mydomain = no
# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h
readme_directory = no
# TLS parameters
smtpd_tls_cert_file=/etc/letsencrypt/live/gitlab.devplateau.com/cert.pem
smtpd_tls_key_file=/etc/letsencrypt/live/gitlab.devplateau.com/privkey.pem
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_tls_security_level=may
smtpd_tls_protocols = !SSLv2, !SSLv3
# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
myhostname = gitlab.devplateau.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mydestination = mail.devplateau.com, devplateau.com, localhost.devplateau.com, localhost
relayhost =
mynetworks = 127.0.0.0/8, 162.243.124.129
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = all
myorigin = /etc/mailname
I do have an MX record for gitlab.devplateau.com.
Is there a port that I need to open up so that my mail server and gitlab server will send mail between the two? Is there anything that I am forgetting to install to make gitlab send emails for confirmations and other things?
Thank you for reading!