I usually use the 10uF 400V capacitors from Tayda, they are 10mm x 16mm P5 and they fit with no problems.
I do not think you would fit anything longer then 16mm, but there might be some out there that are 17mm that could get squeezed in there.
20mm will not fit at all so don't even try, I just...