make the light set the intensity to something very small like 0.001 (wont affect anything, maybe even specular off so that even this wont matter), then using depthmap shadows with a color intensity of something like -1000 for completely black!
Raytracing is a bit trickier, you disable shadow casting for all objects and then ad objecs with no primary visibility as the shadowcasters then by unlinking the shadowscasters you can controll what light cast what shadows!