Daisuke
Contributor
- Joined
- Jun 23, 2011
- Messages
- 1,041
Edit: I created NAS-119145.
Update: The issue is now fixed in Bluefin 22.12-RC.1.
There is a strange behaviour with emails being sent with SMTP method. If I define the hostname
Hostname is not correctly defined:
X-TrueNAS-Host had the correct hostname, emails work.
If I define correctly the hostname, mDNS authentication is fixed, but emails are not being sent anymore.
Hostname correctly defined, mDNS okay, emails broken:
As you can see, X-TrueNAS-Host is not looking for the full hostname as it should, which makes the email to fail being sent.
Update: The issue is now fixed in Bluefin 22.12-RC.1.
There is a strange behaviour with emails being sent with SMTP method. If I define the hostname
uranus.lan
, everything is functional. However this breaks the mDNS authentication in a Mac.Hostname is not correctly defined:
Code:
# cat /etc/resolv.conf nameserver 192.168.1.1 # hostname uranus.lan # hostname -f uranus.lan. # cat /var/log/mail.log # echo 'This is a test.' | mail -s 'Hello World' hello@domain.com Nov 26 02:50:45 uranus middlewared[1086]: sending mail to hello@domain.com Content-Type: multipart/mixed MIME-Version: 1.0 Subject: Hello World From: Uranus <mail@icloud.com> To: hello@domain.com Date: Sat, 26 Nov 2022 07:50:44 -0000 Message-ID: <truenas-20221126.075044.617651.b'-jhK'@uranus.lan> Content-Transfer-Encoding: 8bit X-Mailer: TrueNAS X-TrueNAS-Host: uranus.lan
X-TrueNAS-Host had the correct hostname, emails work.
If I define correctly the hostname, mDNS authentication is fixed, but emails are not being sent anymore.
Hostname correctly defined, mDNS okay, emails broken:
Code:
# cat /etc/resolv.conf domain lan nameserver 192.168.1.1 # hostname uranus # hostname -f uranus.lan # echo 'This is a test.' | mail -s 'Hello Broken' hello@domain.com # cat /var/log/mail.log Nov 26 02:59:12 uranus middlewared[1086]: sending mail to hello@domain.com Content-Type: multipart/mixed MIME-Version: 1.0 Subject: Hello Broken From: Uranus <mail@icloud.com> To: hello@domain.com Date: Sat, 26 Nov 2022 07:59:10 -0000 Message-ID: <truenas-20221126.075910.998769.b'U1UN'@uranus> Content-Transfer-Encoding: 8bit X-Mailer: TrueNAS X-TrueNAS-Host: uranus
As you can see, X-TrueNAS-Host is not looking for the full hostname as it should, which makes the email to fail being sent.
Last edited: