It is recommended to leave a space of at least 5mm between the dishwasher and the adjacent cabinets to allow for proper ventilation and to prevent any rubbing or scratching. The exact amount of space required will depend on the specific model of dishwasher you are installing, so it is important to refer to the manufacturer's installation instructions for exact requirements.