SMTP settings has mandatory Username/Password fields in 2015.1

  • which versions are you using - SonarQube Server / Community Build 2015.1
  • how is SonarQube deployed: zip
  • what are you trying to achieve - setting up mail notifications

Previously in 9.9 LTS, it was possible to configure the SMTP settings by not having to put username and password.

Now in 2025.1, it is no longer possible. The Username and Password fields in “Basic authentication” mode are set as required fields.

This is very problematic, because Basic Authentication SHOULD also accept NO username and password provided - anonymous authentication.

I had previously set no username and password - now i cant change ANY other setting via the UI, since it also requires to fill those 2 fields.
The only way to change those values is by modifying the DB table internal_properties for the key email.smtp_host.secured.

Additionally, the sonar.properties settings for email.smtp are no longer working and are ignored.

Hi,

It looks like we changed where SMTP configuration is saved in 10.7. Contrary to my response on your other thread, that bug (I still can’t find the ticket) is probably still open, and what you’re observing is a result of the “where” rather than the “how”.

I’ve just tested locally on 25.1 (Yes, I’m behind the times. Shame on me.) and was able to save a single space for both the login and password. That gets me past the UI check, and apparently, as I’d hoped, the values are trimmed on the server side. Because when I re-edit, those fields are blank again, and I have to re-enter my spaces. And my email was received successfully by my localhost SMTP server.

 
HTH,
Ann

Okay, i didnt think of the whitespace. I will try it next week and post back if its okay for us.

1 Like