"A ball which passes OVER a fitting attached to the ceiling, such as a light or fan, remains in play. However, a ball which passes THROUGH such a fitting is out."* All of the above information is courtesy of the official site of the World Squash Federation.

http://www.worldsquash.org/ws/wp-content/uploads/2010/12/101102_Singles-Rules-V5.pdf

*From Guide to Understanding the Rules of Squash, prepared by World Squash Federation, 3rd edition 2001