you have not indicated what kind of stain, if its oil you have an oil seal failure,other than oil stains are caused usually by syphoning, the end of the drain hose where it enters the stand pipe should only be about four inches lower than the lid ,if the gasket is dirty its an instant indicator of syphoning
keymatic
June 2012