I don’t use HA so no idea there, but my Mosquitto runs with Node-red and Tasmota following this guide, using the config file.
Maybe you’ve already done this, but just in case.
Unfortunately my Smartthings MQTT driver can’t subscribe to a port which is not 1883, but for running MQTT from iHost it performs OK.