You're correct about a leak between the oil sump and pump housing.
Keep the mounting surfaces clean, dry and oil free.
Use a sealant that can withstand the oil pressure (I've used Permatex black RTV).
Give the sealant time enough to cure, before starting the engine.