When restarting Stalwart a port keeps changing

Hi, so whenever we restart he stalwart service, a certain port keeps changing. I’m not sure what that port is responsible for, it isn’t one of the standard email ports. My latest restart it was set to port 34773. So my questions are:

  1. What is that port responsible for?
  2. Is there a way to set that port so it doesn’t keep changing?

Thank you,

Hello,

It happens to me too when Stalwart is not root or does not have CAP-NET privileges to bind below 1024. In this case error is logged and a random port is provided. However this port is not indicated in the logs you would need an external tool like ss to check.