Delivery failed with exitstatus 127

Problem to solve

Hi, i can’t configure SMTP.

When im sending test message, its says:

Delivered mail host (4.0ms)
/opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/mail-2.8.1/lib/mail/network/delivery_methods/sendmail rb:91:in `block in popen': Delivery failed with exitstatus 127: "/usr/sbin/sendmail -i -f \"originmail\" -- \"testmail\"" (Mail::Sendmail::DeliveryError)

Output when i check provider

irb(main):001:0> ActionMailer::Base delivery_method
=> :sendmail

Steps to reproduce

ive tried standart SMTP conf

Configuration


# gitlab_rails['smtp_enable'] = true
# gitlab_rails['smtp_address'] = "mysmtp"
# gitlab_rails['smtp_port'] = 465
# gitlab_rails['smtp_user_name'] = "mylogin"
# gitlab_rails['smtp_password'] = "mypass"
# gitlab_rails['smtp_domain'] = "mydomain"
# gitlab_rails['smtp_authentication'] = "login"
# gitlab_rails['smtp_enable_starttls_auto'] = true
# gitlab_rails['smtp_tls'] = false
# gitlab_rails['smtp_pool'] = false

Versions

17.4.1. EE

  • Self-managed
  • GitLab com SaaS

I dont have installed postfix or sendmail.