How to configure smtp server?

I’ve spent lots of time on setting up my smtp server for my GitLab Omnibus installation.

I configured like below

gitlab_rails['smtp_enable'] = true
gitlab_rails['smtp_address'] = "120.159.112.19"
gitlab_rails['smtp_port'] = 25
gitlab_rails['smtp_user_name'] = "scm@company.com"
gitlab_rails['smtp_password'] = "password"
gitlab_rails['smtp_domain'] = "120.159.112.19"
gitlab_rails['smtp_authentication'] = "login"
gitlab_rails['smtp_enable_starttls_auto'] = false
gitlab_rails['smtp_tls'] = false
gitlab_rails['smtp_openssl_verify_mode'] = 'none'

gitlab_rails['gitlab_email_from'] = 'scm@conpany.com'
gitlab_rails['gitlab_email_reply_to'] = 'scm@conpany.com'

but I got error

2015-08-14_03:12:35.96151 2015-08-14T03:12:35.961Z 30951 TID-9u9d4 Sidekiq::Extensions::DelayedMailer JID-8a68cb01f275a408c0368fa3 INFO: start

2015-08-14_03:12:37.36884 2015-08-14T03:12:37.368Z 30951 TID-9u9d4 Sidekiq::Extensions::DelayedMailer JID-8a68cb01f275a408c0368fa3 INFO: fail: 1.407 sec

2015-08-14_03:12:37.36975 2015-08-14T03:12:37.369Z 30951 TID-9u9d4 WARN: {“retry”=>true, “queue”=>“default”, “class”=>“Sidekiq::Extensions::DelayedMailer”, “args”=>["—\n- !ruby/class ‘Notify’\n- :send\n- - :note_issue_email\n - 34\n - 465\n"], “jid”=>“8a68cb01f275a408c0368fa3”, “enqueued_at”=>1439521915.240297, “error_message”=>“500 5.5.1 command unrecognized\n”, “error_class”=>“Net::SMTPSyntaxError”, “failed_at”=>1439521928.6196797, “retry_count”=>1, “retried_at”=>1439521957.3683288}

2015-08-14_03:12:37.36978 2015-08-14T03:12:37.369Z 30951 TID-9u9d4 WARN: 500 5.5.1 command unrecognized

What SMTPSyntaxError was it?

1 Like