I'd "avoid" painting the ports but I wouldn't bother masking it. A little overspray in the port area won't do any harm at all.

Also, IIRC aluminum intakes are supposed to be installed with two "paper" gaskets per side - one under the valley pan and one on top.