I’ve recently set up a Gitlab server on my own hardware, and I’m trying to get an account up and running. I do not have a working email server on this hardware and as such I’m trying to get the confirmation email to be sent using a Gmail account I’ve set up explicitly for this purpose. I’ve edited my gitlab.rb file file to include Gmail’s settings, but I still can’t get things to work. Any ideas?
In my stupidity, I forgot about the admin account. Now, I can create a user through there with no issue, which was why I opened up this topic in the first place. But, my problem still remains about sending out emails: it doesn’t work. I’ve updated my configurations with those sample configs although I’m still having issues, even after having Gitlab resend the confirmation email. Is there anything else I should try?
EDIT: Here’s something from the sidekiq.log file that could prove useful:
I’ve taken the steps listed in both of your posts, but the echo test | mail -s test username@gmail.com command does nothing. What firewall settings do I have to check, exactly? I’ve allowed port 25 and port 587, but I get some error in the log:
May 3 17:36:58 netbook-server postfix/smtp[19210]: 60424321061: to=<xxxx@gmail.com>, relay=smtp.gmail.com[74.125.29.109]:587, delay=326414, delays=326413/0.25/0.24/0.03, dsn=5.7.0, status=bounced (host smtp.gmail.com[74.125.29.109] said: 530 5.7.0 Must issue a STARTTLS command first. m195sm23534424qhb.35 - gsmtp (in reply to MAIL FROM command))
At this point, since I’ve set up my user account, I guess this error is not crucial to be fixed, but it’d be nice to know everything is working.
It lives! Now I get email from the Gmail account I set up. Thanks! The fix was I think a combination of your suggested fix but also enabling access for less secure apps at this URL. I hope this fixes the issue for other people!