Hi,

I have the same problem as you.

I'm not sure about what you did to solve this issue.
I don't want to use smtp. I wan't to use the mail command from my debian.

Could you paste your  # gitlab.yml configuration ?

I have this for now :

----------------


############################
# gitlab.yml configuration #
############################

# gitlab_rails['gitlab_ssh_host'] = 'ssh.host_example.com'
# gitlab_rails['time_zone'] = 'UTC'
gitlab_rails['gitlab_email_enabled'] = true
gitlab_rails['gitlab_email_from'] = 'git...@myworkingdomain.com' 
gitlab_rails['gitlab_email_display_name'] = 'Gitlab'
gitlab_rails['gitlab_email_reply_to'] = 'nore...@myworkingdomain.com'
# gitlab_rails['gitlab_default_can_create_group'] = true
# gitlab_rails['gitlab_username_changing_enabled'] = true
# gitlab_rails['gitlab_default_theme'] = 2
# gitlab_rails['gitlab_restricted_visibility_levels'] = nil # to restrict 
public and internal: ['public', 'internal']
# gitlab_rails['gitlab_default_projects_features_issues'] = true
# gitlab_rails['gitlab_default_projects_features_merge_requests'] = true
# gitlab_rails['gitlab_default_projects_features_wiki'] = true
# gitlab_rails['gitlab_default_projects_features_snippets'] = false
# gitlab_rails['gitlab_default_projects_features_visibility_level'] = 
'private'
# gitlab_rails['gitlab_repository_downloads_path'] = 'tmp/repositories'
# gitlab_rails['gravatar_plain_url'] = 
'http://www.gravatar.com/avatar/%{hash}?s=%{size}&d=identicon'
# gitlab_rails['gravatar_ssl_url'] = 
'https://secure.gravatar.com/avatar/%{hash}?s=%{size}&d=identicon'
# gitlab_rails['webhook_timeout'] = 10

[...]

################################
# GitLab email server settings #
################################
# see 
https://gitlab.com/gitlab-org/omnibus-gitlab/blob/629def0a7a26e7c2326566f0758d4a27857b52a3/doc/settings/smtp.md#smtp-settings
# Use smtp instead of sendmail/postfix.
  
# gitlab_rails['smtp_enable'] = true
# gitlab_rails['smtp_address'] = "smtp.server"
# gitlab_rails['smtp_port'] = 456
# gitlab_rails['smtp_user_name'] = "smtp user"
# gitlab_rails['smtp_password'] = "smtp password"
# gitlab_rails['smtp_domain'] = "example.com"
# gitlab_rails['smtp_authentication'] = "login"
# gitlab_rails['smtp_enable_starttls_auto'] = true
# gitlab_rails['smtp_tls'] = false
# gitlab_rails['smtp_openssl_verify_mode'] = 'none' # Can be: 'none', 
'peer', 'client_once', 'fail_if_no_peer_cert', see 
http://api.rubyonrails.org/classes/ActionMailer/Base.html
# gitlab_rails['smtp_ca_path'] = "/etc/ssl/certs"
# gitlab_rails['smtp_ca_file'] = "/etc/ssl/certs/ca-certificates.crt"


---------

Le mercredi 30 juillet 2014 10:44:47 UTC+2, Marcus Berglund a écrit :
>
> As I was able to use sendmail outside of gitlab (as long as I am able to 
> specify the sender), I replaced the smtp configuration shown below (in 
> /etc/gitlab/gitlab.rb) with one line:
>
> gitlab_rails['gitlab_email_from'] = "<sender email address>"
>
> Running gitlab-ctl reconfigure resulted in sendmail being used and the 
> sender address being set properly (my upstream smtp gw requires sender 
> email addresses to be permissioned).
>
> It works now.
> ...
>
> On Tuesday, 29 July 2014 17:55:57 UTC+2, Marcus Berglund wrote:
>>
>> Hello all.
>>
>> I have been trying to create a functioning configuration in 
>> /etc/gitlab/gitlab.rb that would enable gitlab to send mail.
>>
>> So far, I have not been successful.
>>
>> I spent some time trying to configure the smtp settings as described on 
>> https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md
>> I could not get it to work. I was able to gitlab-ctl reconfigure ok but 
>> the closest I would get to a working setup was that the smtp gw saw a 
>> connection attempt followed by nothing, then disconnect. 
>>
>> So - now I'm trying to figure out how to use /etc/gitlab/gitlab.rb to 
>> configure gitlab to use sendmail instead.
>> I have not been able to find any relevant examples of how to do this.
>>
>> All examples I can find involve adding the configuration to production.rb 
>> or similar - but I have no idea how to convert these settings into a syntax 
>> (in /etc/gitlab/gitlab.rb) that can be used by gitlab-ctl reconfigure.
>>
>> Does anyone have a working example of an /etc/gitlab/gitlab.rb 
>> configuration file that generates a valid sendmail configuration when 
>> running gitlab-ctl reconfigure ?
>>
>> Something that sets the sender ( sendmail -f <send as user> ) would be 
>> fantastic.
>>
>> Would really appreciate some pointers in the right direction ...
>>
>>
>>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/gitlabhq/87bc6ee3-dfe0-4994-8d54-6b4127340d67%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to