SMTP mail plugin always tries AUTH in SCALE 25.04 even with no credentials

Hello everyone! This is my first time posting so I don’t know if this is the right place. I am trying to set up a smtp server for my truenas system to send alerts to. I think I have the smtp side set up properly. Ive been using chatgpt to help me get all this set up and for the most part Ive been able to understand whats going on, however the last little bit has gone over my head. It thinks there might be a bug so I had it write up a bug report for me. This is what it gave me,
"Hi,

I’m running TrueNAS SCALE Fangtooth 25.04 and trying to send alert emails via a local Postfix server on my LAN that does not require authentication.

Steps I followed:

  1. System → General Settings → Email
  2. Send Mail Method: SMTP
  3. Outgoing Mail Server: <Pi LAN IP>
  4. Port: 25, Security: PLAIN
  5. Username/Password left blank
  6. Saved settings

When I send a test email (via the UI or midclt call mail.send), it fails with: SMTP AUTH extension not supported by server
Even though no credentials are set, TrueNAS SCALE tries to authenticate with the SMTP server. This prevents me from using a trusted LAN SMTP relay without SASL.

Impact: Breaks unauthenticated SMTP relays for alerts.

Temporary workaround: Enable SASL on Postfix, even though no auth is actually needed.

It seems like a bug in the mail plugin — it should skip AUTH if no username is configured.

Has anyone else seen this or found a workaround without enabling SASL?"

I don’t quite know what to do at this point so I thought I would go to you guys and see what you think I should do.
Thank You!

if you call midclt call mail.config | jq, the field smtp is true or false?
I suspect that you didn’t uncheck SMTP Authentication flag, because

those instead should disappear.

smtp is true. The SMTP Authentication is checked but it wont let me save when I uncheck it.

This is obviously the problem.

I have tried myself and i don’t have any problem to save a SMTP config with SMTP Authentication unchecked, sure that all required fields on top (From Email) are fullfilled properly? What the GUI raise when not let you save the settings?

Ok. I fixed it. I was messing with shell commands and it looks like I forced SMTP Authentication on with no username or password (that’s what I get for trusting AI). Ive got that fixed now and everything seams to be working fine. Thank you so much!

1 Like