Could I update the SMTP setting through discourse.config

You should be putting the mail settings in the env block of the app.yml which is parsed by the launcher script.

Is there any reason not to use Docker on this machine?