title: Send email with Gitlab docker image
body: <p>Here's my goal, I would like to configure emails for my Gitlab server. I followed a lot of tutorials but I can't make it work. </p>
  
  <p>My configuration is the following, I've got a reverse-proxy in a Docker container and my Gitlab server also in a Docker container. </p>
  
  <p>About versions :</p>
  
  <pre><code>Docker version 17.09.0-ce, build afdb6d4
  docker-compose version 1.16.1, build 6d1ac21
  </code></pre>
  
  <p>Here's my docker-compose.yml file</p>
  
  <pre><code>version: '3.3'
  
  networks:
     proxy: 
       external: true
     internal:
       external: false
  
  services:
    gitlab:
      image: gitlab/gitlab-ce:latest
      container_name: gitlab
      environment:
          - TZ=Europe/Paris
          - GITLAB_TIMEZONE=Paris
          - IMAP_USER=USER@GMAIL.COM
          - IMAP_PASSWORD=MYGMAILPASS
          - GITLAB_INCOMING_EMAIL_ADDRESS=USERGMAIL+%{key}@gmail.com
      volumes:
          - /srv/gitlab/config:/etc/gitlab
          - /srv/gitlab/logs:/var/log/gitlab
          - /srv/gitlab/data:/var/opt/gitlab
      restart: always
      labels:
          - traefik.backend=gitlab
          - traefik.frontend.rule=Host:git.domain.com
          - traefik.docker.network=proxy
          - traefik.port=80
          - traefik.frontend.entryPoints=http,https
      networks:
          - internal
          - proxy
  </code></pre>
  
  <p>I followed this tutorial which seems to be good :</p>
  
  <p><a href="https://github.com/sameersbn/docker-gitlab#available-configuration-parameters" rel="noreferrer">https://github.com/sameersbn/docker-gitlab#available-configuration-parameters</a></p>
  
  <p>I must miss something in my configuration but I can't figure out what is it ... </p>
  
  <p>Does anyone can help me to configure email sending ? I don't know either the proper way to test email sending from GitLab. </p>
  
  <p>Is the best way is to configure from docker-compose environment variables or directly from gitlab.rb file ?</p>
  
  <p>Some help would be much appreciated</p>