Depth passes are useful for post compositing adding depth of field and focus, etc. To this day Redshift does not support depth pass for volumes.
My approach to solve this was to convert the volume to polygons and
make another render to get that depth pass and then use the “Volume Fog
Tint” pass of the original one as a mask to fix the contours of the
volume shapes. I´ts not ideal since you loose a lot of fine detail
especially on overlapping volumes. Quite expensive to convert if you
have several volumes as input with this setup as it is but you get the point ;)
One issue is when another volume is on the back, the "Volume Fog Tint" mask is not that useful on fixing the volume edges. Messy but it kinda works.
https://mega.nz/file/assDGQCB#B4cdaZcRb8GdwpsVz8KCSNJV-SNaFTILu_sGxeDjffg






