seal them like this with hatch seal from any marine store - glue it in place with silicone:

further, they still leak a bit in hurricane situations. Since the boxes are clean, I installed a drain plug so they never go more than 1/4 full and it drains in the bilge and out the drain plug or bilge pump...