Change in behavior of 'sendmail'

Description

I have written several scripts that use 'sendmail' to send email, using a construct like this:

sendmail -t -oi < "$mailfile"

Where $mailfile is a text file containing From, To, Subject, etc.

These scripts fail on version 11.3-RELEASE, with this message in the maillog:

Feb 7 16:59:37 bacon /middlewared[75]: sending mail to keith@spearfoot.net
Content-Type: text
MIME-Version: 1.0
Subject: Email test
From: freenas.bacon@spearfoot.net
To: keith@spearfoot.net
Date: Fri, 07 Feb 2020 22:59:37 -0000
Message-ID:
X-Mailer: FreeNAS
X-FreeNAS-Host: bacon.spearfoot.net
Feb 7 16:59:37 bacon /middlewared[75]: Failed to send email to keith@spearfoot.net: string payload expected:

Problem/Justification

None

Impact

None

SmartDraw Connector

Katalon Manual Tests (BETA)

Activity

Bug Clerk 
February 28, 2020 at 12:01 PM

Bug Clerk 
February 28, 2020 at 11:59 AM

Alec Pearson 
February 27, 2020 at 9:07 PM
(edited)

I have this problem too and can confirm that it is not fixed in 11.3-U1.

Send report ###
#sendmail -t < ${logfile}
mail -s "${subject}" < ${logfile} ${email}
#sendmail ${email} < ${logfile}

Both the sendmail methods fail with:

Failed to send email: string payload expected: <class 'list'>

The "mail" method sends the mail but the format of the mail is collapsed; all the spaces are removed.

William Gryzbowski 
February 26, 2020 at 7:48 PM

can you please upgrade to 11.3-U1 and see if that issue is fixed?

Complete

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

More fields

Katalon Platform

Created February 7, 2020 at 11:17 PM
Updated July 1, 2022 at 4:50 PM
Resolved February 28, 2020 at 12:02 PM