Thanks for all the advice. Having chipped away all the crap joining the pipe to the pan, I now see that as people suspected it wasn't the flushpipe, but the inlet to the pan is cracked, with a couple of pieces glued together. This can't be holding the seal tight, and water must be coming out of...