Blocking retain messages in config

Is it possible to configure mosquitto broker in such a way that for the selected topic messages with retain flag are rejected? In the configuration I found retain_available, but this option is global for all topics.

Hello, this is currently not possible in the OS version.
We are able to allow this for the Mosquitto Pro version.
If you are interested in this feature, contact us at