Yafaray: Shadow-catcher
Yes, it is possible to do this with the current YafaRay v3 versions. You can use the "Mask Object Index" render pass, for example, using the mask render pass that includes the shadows in the mask.

For example:



I have uploaded the example scene here: cornellbox-yafaray-shadow-mask.blend.zip

I hope this helps. Best regards!!