Basically - outflow valves are designed to -
Cabin rate of climb or rate of descent control and
Maintain cabin pressure differential limits.
xxx
With some loss of pressurization, these valves close automatically.
They also are supplemented by relief valves in case limitations are exceeded.
xxx
Happy contrails