Mail_options__host not being respected in environment variables

This is a repost of mail_options__host not being respected in environment variables · Issue #20635 · TryGhost/Ghost · GitHub.

TrueNAS-SCALE-23.10.2
Custom App Chart

“Extra Environment Variables” section:

Ghost 5.82.2
NodeJS v18.20.2

Using Firefox 128.0.2 (64-bit)

2024-07-21 19:27:40.053581+02:00�[31m
2024-07-21 19:27:40.053587+02:00�[31mFailed to send email. Reason: connect ECONNREFUSED 0.0.0.0:587.�[39m
2024-07-21 19:27:40.053602+02:002024-07-21T19:27:40.053602832+02:00
2024-07-21 19:27:40.053608+02:00�[33m"Please see https://ghost.org/docs/config/#mail for instructions on configuring email."�[39m
2024-07-21 19:27:40.053610+02:002024-07-21T19:27:40.053610667+02:00
2024-07-21 19:27:40.053613+02:00�[1m�[37mError ID:�[39m�[22m
2024-07-21 19:27:40.053616+02:00�[90m87c06f20-4786-11ef-b268-7b94faf72566�[39m
2024-07-21 19:27:40.053618+02:002024-07-21T19:27:40.053618565+02:00
2024-07-21 19:27:40.053621+02:00�[1m�[37mError Code: �[39m�[22m
2024-07-21 19:27:40.053629+02:00�[90mESOCKET�[39m
2024-07-21 19:27:40.053631+02:002024-07-21T19:27:40.053631954+02:00
2024-07-21 19:27:40.053634+02:00�[90m----------------------------------------�[39m
2024-07-21 19:27:40.053636+02:002024-07-21T19:27:40.053636926+02:00
2024-07-21 19:27:40.053639+02:00�[90mError: connect ECONNREFUSED 0.0.0.0:587
2024-07-21 19:27:40.053642+02:00at createMailError (/var/lib/ghost/versions/5.82.2/core/server/services/mail/GhostMailer.js:105:12)
2024-07-21 19:27:40.053647+02:00at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1555:16)�[39m
2024-07-21 19:27:40.053649+02:00�[39m

A contributor said that they were unable to reproduce the issue. Therefore I am reposting this problem now to the forum.
Thank you for your help!

Amending further screenshots because “new members are not allowed to post more than one image”:
350786207-0a2a1454-e2df-4dda-b53c-ef1c8fadc8f2