Right way to do it is with an aluminum etching paint first. But hard to obtain.
Sanding off the oxidised layer of aluminum on the enclusure is your best bet. Then paint. Try different types, I find nippon pylox to chip off very easily.
Do many thin coats, not few thick ones.
Same with a clearcoat afterwards, if you wish.