Discussion:
How to config the SMTP setting to send email with a LAN environment?
Fish Zheng
2015-05-05 11:47:32 UTC
Permalink
Hi, GitLaber

This is a newbie for gitlab.
After I installed one gitlab-ce-7.10.1 on Ubuntu-14.04, it cannot send the
account confirmation email to me.


My SMTP server have no authentication support. and I tried these two
authentication method: "login" and "plain".
Is there others auth method? How can I configure SMTP in the
/etc/gitlab/gitlab.rb to send email?


Here is my /etc/gitlab/gitlab.rb snppet:

gitlab_rails['smtp_enable'] = true
gitlab_rails['smtp_address'] = "mail.company.com"
gitlab_rails['smtp_port'] = 25
gitlab_rails['smtp_user_name'] = "***@company.com"
gitlab_rails['smtp_password'] = "MyPassword"
gitlab_rails['smtp_domain'] = "mail.company.com"
##504 5.7.4 Unrecognized authentication type
#gitlab_rails['smtp_authentication'] = "login"
##504 5.7.4 Unrecognized authentication type
gitlab_rails['smtp_authentication'] = "plain"
gitlab_rails['smtp_enable_starttls_auto'] = false
gitlab_rails['smtp_tls'] = false
gitlab_rails['smtp_openssl_verify_mode'] = 'none'
--
You received this message because you are subscribed to the Google Groups "GitLab" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gitlabhq+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gitlabhq/abfb587f-ac78-4327-bc2f-673dfe0328cc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Fish Zheng
2015-05-05 11:50:05 UTC
Permalink
PS:
The error information -- 504 5.7.4 Unrecognized authentication type

It is captured using tshark command : tshark -nxi eth0 -s0 tcp port 25
Post by Fish Zheng
Hi, GitLaber
This is a newbie for gitlab.
After I installed one gitlab-ce-7.10.1 on Ubuntu-14.04, it cannot send the
account confirmation email to me.
My SMTP server have no authentication support. and I tried these two
authentication method: "login" and "plain".
Is there others auth method? How can I configure SMTP in the
/etc/gitlab/gitlab.rb to send email?
gitlab_rails['smtp_enable'] = true
gitlab_rails['smtp_address'] = "mail.company.com"
gitlab_rails['smtp_port'] = 25
gitlab_rails['smtp_password'] = "MyPassword"
gitlab_rails['smtp_domain'] = "mail.company.com"
##504 5.7.4 Unrecognized authentication type
#gitlab_rails['smtp_authentication'] = "login"
##504 5.7.4 Unrecognized authentication type
gitlab_rails['smtp_authentication'] = "plain"
gitlab_rails['smtp_enable_starttls_auto'] = false
gitlab_rails['smtp_tls'] = false
gitlab_rails['smtp_openssl_verify_mode'] = 'none'
--
You received this message because you are subscribed to the Google Groups "GitLab" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gitlabhq+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gitlabhq/5b70f49f-da30-4139-820e-66510def22ec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Karen Carias
2015-05-17 17:00:52 UTC
Permalink
Hi Fish. I'm sorry to hear that you're having an error.

Here's how to test your email delivery. You could try
this: https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md#emails-are-not-being-delivered
--
You received this message because you are subscribed to the Google Groups "GitLab" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gitlabhq+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gitlabhq/ffd2b563-c0e6-41f0-9b5c-d19742346fa7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
zhengfish
2015-05-18 02:37:21 UTC
Permalink
Hi, Karen

Thanks for your time.
With this instruction:
http://stackoverflow.com/questions/24189079/gitlab-wont-send-email-omnibus-gitlab-centos-6-5
Now my gitlab works.

The key setting options is:

#gitlab_rails['smtp_user_name'] = "" Commented
out!#gitlab_rails['smtp_password'] = "" Commented
out!gitlab_rails['smtp_authentication'] = false

If I don't comment out the smtp_user_name + smtp_password, it will
trigger/enable the authentication.

Regards!
Post by Karen Carias
Hi Fish. I'm sorry to hear that you're having an error.
https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md#emails-are-not-being-delivered
--
You received this message because you are subscribed to a topic in the
Google Groups "GitLab" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/gitlabhq/0JY9DE3KsFE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
To view this discussion on the web visit
https://groups.google.com/d/msgid/gitlabhq/ffd2b563-c0e6-41f0-9b5c-d19742346fa7%40googlegroups.com
<https://groups.google.com/d/msgid/gitlabhq/ffd2b563-c0e6-41f0-9b5c-d19742346fa7%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
_ __ _ _
___| |__ ___ _ __ __ _ / _(_)___| |__
|_ / '_ \ / _ \ '_ \ / _` | | |_| / __| '_ \
/ /| | | | __/ | | | (_| | | _| \__ \ | | |
/___|_| |_|\___|_| |_|\__, | |_| |_|___/_| |_|
|___/
--
You received this message because you are subscribed to the Google Groups "GitLab" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gitlabhq+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gitlabhq/CAJ4StihUM8M%3DN6x6fhCS1%2BM%3DrKMegCnOjs%2BEEuQn2cgNfo1pdA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Karen Carias
2015-05-19 19:01:46 UTC
Permalink
Great! Thanks for sharing your solution :)
--
You received this message because you are subscribed to the Google Groups "GitLab" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gitlabhq+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gitlabhq/d7675472-561c-402e-8e8b-3b4ef8936948%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...