The European Middleware Initiative (EMI) is the collaboration of the major European middleware providers, ARC, gLite, UNICORE, and dCache. It aims to deliver a consolidated set of middleware components for deployment in EGI and PRACE, extend the interoperability and integration between grids and other computing infrastructures, strengthen the reliability and manageability of the services and establish a sustainable model to support, harmonise and evolve the middleware, ensuring it responds to the requirements of the scientific communities relying on it. EMI will carry out the collective task of supporting and maintaining the middleware for their user communities. In order to enable the infrastructures to achieve this task, the middleware services must play an important role and mark a clear transition to more sustainable models by adopting best-practice service provision methods such as the ITIL processes or the ISO guidelines for software quality and validation. Repositories of packages, status reports, quality metrics and test and compliance programs are created and maintained to support the project software engineering activities and other providers of applications and services based on the EMI middleware. This article reports on the initial work of the EMI project and the solutions adopted for the software releases, development processes, quality compliance metrics and distribution repositories.