Hi, I have a postfix installed on example.com. I installed gitlab on git.example.com and I have configured gitlab to send email through my postfix. here is my gitlab.rb:
gitlab_rails['smtp_enable'] = true
gitlab_rails['smtp_address'] = "example.com"
gitlab_rails['smtp_port'] = 25
gitlab_rails['smtp_user_name'] = "root"
gitlab_rails['smtp_password'] = "password"
gitlab_rails['smtp_domain'] = "example.com"
gitlab_rails['smtp_authentication'] = :plain
gitlab_rails['smtp_enable_starttls_auto'] = true
But I get this error on postfix log file:
example postfix/smtpd[26413]: connect from git.example.com[]
example postfix/smtpd[26413]: lost connection after STARTTLS from git.example.com[]
example postfix/smtpd[26413]: disconnect from git.example.com[]
I think there is a problem with postfix configuration.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
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.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Thank you for your answer.
You have a broken TSL/SSL configuration.
Change/Add settings to:
And create your own TSL/SSL Certificate :
Finally change/add :
Don’t forget to restart postfix
PS: Check your DNS !!!
MX Record Priority 0 git.example.com
A Record IP_of_Droplet git.example.com
PPS: I recommend Postfix+Dovecot+MySQL (https://www.linode.com/docs/email/postfix/email-with-postfix-dovecot-and-mysql this guide is really good for newbies)
Thanks :) Here is postfix configuration file :
Welcome to DigitalOcean
Can you upload your configuration file ?