There should be a decent gap, in order to allow free movement of the barrel.
Some rifles have been fitted with replacement forends where the back of the forend (the part that lies against the butt socket) has been left oversize, pushing the whole forend forward. The back of the forend and the recoil faces need to be balanced so that the forend sits back far enough from the foresight block.