Question
Unable to send mail with Gitlab (Nginx, postfix installed)
Hi I have the basic configuration of gitlab (using sendmail) and I setted a postfix on my debian server.
I can send mail with command line but it doesn’t works with Gitlab. When it should send mail I never receive it. I also tried with google smtp and it doesnt work either.
Thanks for your help.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×
Please see https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md#emails-are-not-being-delivered
Thanks for your answear sytse but I didn’t find any fix on the link and I’m not using omnibus. I don’t have gitlab-ctl either. I isntalled all my gitlab following this tuto: https://www.digitalocean.com/community/tutorials/how-to-set-up-gitlab-as-your-very-own-private-github-clone
I have the same problem with e-mail. I Installed GitLab manually using the tutorial and now I don’t have the gitlab-ctl CLI-tool.
xmax54, I found the solution to my problem - the file config/initializers/smtp_settings.rb.sample was overriding the delivery method to :smtp because of the line
if Rails.env.production?
.Hey, I am curious, what did you do so that gitlab can send mails? I have the same problem. Should I delete the line you’d mentioned?
Thanks.