Plumbing codes usually mandate that an indirect waste pipe from the hot water storage tank, such as the discharge pipe from the pressure relief valve, must terminate over a drain pan, keeping the end at least 6 mm above the pan to avoid potential backflow.