MQTT and all-in-one installation of HA problem

I’ve used mosquitto MQTT with my pi for quite some time. Now that I have loaded HA via the all-in-one installation. Now when publishing to mqtt I get the following error message:
Connection refused: not authorized.
Error: The connection was refused…

Do I have to be in the venv to publish or subscribe to topics now that Homeassistant is running?

You do not. Sounds like a simple user/password error. I also run Mosquitto on the AiO install and it’s all working fine. Double check that the username and password in your config match the same in the mosquitto config file.

Thank you… Maybe you can help me on this: