I recently upgraded to 24.10.1 from 24.10.0.2 and I have run into a problem with scripts sending (or not sending) emails.
I have been jumping back and forth between 0.2 and .1 and can now say that 24.10.0.2 can send both files with this sendmail code …
sendmail -t < TrueNASInfo2410-02.txt
However, 24.10.1 can not send the file.
TrueNASInfo2410-1.txt file content
To: myNASEmail@gmail.com
Subject: [SCALEPROD] TrueNAS Scale System Info
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="===== MIME boundary; TrueNAS server SCALEPROD ====="
--===== MIME boundary; TrueNAS server SCALEPROD =====
Content-Type: text/html; charset="US-ASCII"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
<html><head></head><body><pre style="font-size:14px; white-space:pre">
---------------------------------------------
Script run from Cron Job
Script name: TrueNASInfo.sh
TrueNAS Version: TrueNAS-SCALE-24.10.1
---------------------------------------------
kernel.ostype = Linux
kernel.osrelease = 6.6.44-production+truenas
TrueNAS Version: TrueNAS-SCALE-24.10.1
Check for Updates: No Updates
---------------------------------------------
</pre></body></html>
--===== MIME boundary; TrueNAS server SCALEPROD =====--
Best check the Changelog before I ask what is going on.
Ahh. Well … that changes things. Read up on exim yields this as the key command
exim -v myNASEmail@gmail.com < TrueNASInfo2410-1.txt
… which gives me this error message …
LOG: MAIN
<= root@tnsbuilds01.tn.ixsystems.net U=root P=local S=1183
root@ScalePROD:/mnt/SnappitySnap/TrueNASInfo/Scripts/zemailData# delivering 1tOcw6-0002ph-1q
R: nonlocal for myNASEmail@gmail.com
LOG: MAIN
** myNASEmail@gmail.com R=nonlocal: Mailing to remote domains not supported
LOG: MAIN
<= <> R=1tOcw6-0002ph-1q U=Debian-exim P=local S=2508
LOG: MAIN
Completed
delivering 1tOcw6-0002pk-1y
R: system_aliases for root@tnsbuilds01.tn.ixsystems.net
R: nonlocal for myNASEmail@gmail.com
LOG: MAIN
** myNASEmail@gmail.com <root@tnsbuilds01.tn.ixsystems.net> R=nonlocal: Mailing to remote domains not supported
LOG: MAIN
Frozen (delivery error message)
… which basically boils down to …
Mailing to remote domains not supported
Some googling lead me to change update-exim4.conf.conf under /etc/exim4
# dc_eximconfig_configtype='local'
dc_eximconfig_configtype='internet'
… which didn’t help, even after restarting exim and a reboot.
What next?