Connection to "process /usr/sbin/sendmail -bs" has been closed unexpectedly.

Created on 12 November 2024, 9 days ago

Problem/Motivation

I have installed DSM using composer and after configuring the Policy and the Transport I tried a test email. I get this error:

Connection to "process /usr/sbin/sendmail -bs" has been closed unexpectedly.

Steps to reproduce

D10.3.5
composer require 'drupal/symfony_mailer:^1.5'
Add a SMTP Transport
Import all the Policy overrides
Try the Test email tab.

Data model changes

πŸ› Bug report
Status

Active

Version

1.2

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States goose2000

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @goose2000
  • πŸ‡ΊπŸ‡ΈUnited States goose2000
  • πŸ‡ΊπŸ‡ΈUnited States goose2000

    Found I needed to set the Default Transport to my SMTP sender. Embarrassing. 8 (

  • πŸ‡¬πŸ‡§United Kingdom Rob230

    You've just changed it from sendmail to SMTP transport.

    For anyone wondering how to get it working with sendmail, you need to customise the sendmail command. For example, this worked for me:

    $settings['mailer_sendmail_commands'] = [
      '/usr/sbin/sendmail -t',
    ];
    

    It seems that the default of /usr/sbin/sendmail -bs is not supported on many servers including Plesk and Platform.sh.

Production build 0.71.5 2024