Main Capital has sold its controlling stake in cloud software firm Denit to trade buyer Uniserver for €20m.