Register for the iXsystems Community to get an ad-free experience and exclusive discounts in our eBay Store.

Update to 11.3-RC2 breaks SMART Reporting Script

Alecmascot

FreeNAS Experienced
Joined
Mar 18, 2014
Messages
285
After installing 11.3-RC2 the script reporting the SMART disk status was no longer being sent.
The error being reported :

Error: [EFAULT] Failed to send email: string payload expected: <class 'list'>

The sendmail header is being built like this :

Code:
### Set email headers ###
(
    echo "To: ${email}"
    echo "Subject: ${subject}"
    echo "Content-Type: text/html"
    echo "MIME-Version: 1.0"
    echo -e "\r\n"
) > "$logfile"

If I comment out the Content-Type line then the script woks as it used to.
So something about Sendmail changed between 11.2 and 11.3
 

Mr. Slumber

FreeNAS Experienced
Joined
Mar 10, 2019
Messages
151
Thanks for the solution!
 
Top