regression: fix smtp so authentication isn't required
Description
TrueNAS 12.0-U1 now requires smtp authentication in order to save the email settings. A TrueNAS Enterprise user could not setup emailing, and therefore wouldn't be receiving alerts from his TrueNAS due to the username and password fields now being required in 12.0-U1. These should be optional.
This is a regression from 12.0 (and all prior versions).
This is a serious issue and requires fixing for TrueNAS Enterprise. As we encourage and recommend that emailing be setup as soon as possible (and we specifically document if we configure it or not and if it worked or not during deployments) this is something that is very high priority and needs to be fixed for the Enterprise release.
Prior to 12.0 there was a checkbox which let you 'enable' smtp authentication. With it unchecked, no username or password was required. Attached are screenshots showing 12.1 and 11.3-U5 for comparison.
Hello. I am not a TrueNAS developer, only a user. But I also ran into this issue. It seems to only be restricted by the GUI. I was able to workaround this by executing the following in the terminal:
sqlite3 /data/freenas-v1.db 'update system_email set em_smtp=0, em_user=null, em_pass=null;'
This clears the username and password fields and disables SMTP AUTH. Of course, use at your own risk. Also, be careful not to apply changes from the System -> Email screen in the web UI or it might reset your changes.
TrueNAS 12.0-U1 now requires smtp authentication in order to save the email settings. A TrueNAS Enterprise user could not setup emailing, and therefore wouldn't be receiving alerts from his TrueNAS due to the username and password fields now being required in 12.0-U1. These should be optional.
This is a regression from 12.0 (and all prior versions).
This is a serious issue and requires fixing for TrueNAS Enterprise. As we encourage and recommend that emailing be setup as soon as possible (and we specifically document if we configure it or not and if it worked or not during deployments) this is something that is very high priority and needs to be fixed for the Enterprise release.
Prior to 12.0 there was a checkbox which let you 'enable' smtp authentication. With it unchecked, no username or password was required. Attached are screenshots showing 12.1 and 11.3-U5 for comparison.