312.2 Damp, Wet, or Hazardous (Classified) Locations.
(A) Damp and Wet Locations. In damp or wet locations, surface-type enclosures within the scope of this article shall be placed or equipped so as to prevent moisture or water from entering and accumulating within the cabinet or cutout box, and shall be mounted so there is at least 6 mm (¼ in.) airspace between the enclosure and the wall or other supporting surface. Enclosures installed in wet locations shall be weatherproof.
Exception: Nonmetallic enclosures shall be permitted to be installed without the airspace on a concrete, masonry, tile, or similar surface.
FPN: For protection against corrosion, see 300.6.
Joe Tedesco, NEC Consultant