Topic: iRedMail and GitLab smtp configuration
- iRedMail version (check /etc/iredmail-release): 0.9.8
- Linux/BSD distribution name and version: FreeBSD
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
====
Hi,
I lost a few hours to configure GitLab to send e-mail via iRedMail server, correct configuration here.
Maybe someone will use it:
Gitlab config file: /etc/gitlab/gitlab.rb (ruby file)
### Email Settings
gitlab_rails['smtp_enable'] = true
gitlab_rails['smtp_address'] = "your.iRedMail.server"
gitlab_rails['smtp_port'] = 587
gitlab_rails['smtp_user_name'] = "gitlab@your.iRedMail.server"
gitlab_rails['smtp_password'] = "SecretPass"
gitlab_rails['gitlab_email_from'] = "gitlab@your.iRedMail.server"
gitlab_rails['smtp_authentication'] = "login"
gitlab_rails['smtp_enable_starttls_auto'] = true
i used Docker (https://docs.gitlab.com/omnibus/docker/) and change default docker-compose.yml file:
GITLAB_OMNIBUS_CONFIG: |
...
external_url 'http://gitlab.server'
gitlab_rails['smtp_enable'] = true
gitlab_rails['smtp_address'] = "your.iRedMail.server"
gitlab_rails['smtp_port'] = 587
gitlab_rails['smtp_user_name'] = "gitlab@your.iRedMail.server"
gitlab_rails['smtp_password'] = "SecretPass"
gitlab_rails['gitlab_email_from'] = "gitlab@your.iRedMail.server"
gitlab_rails['smtp_authentication'] = "login"
gitlab_rails['smtp_enable_starttls_auto'] = true
...
Good luck
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.