fixing leaking rear main seal

Years ago I had what I thought was a rear main leak in a 340 engine. I pulled the pan, replaced the seal, put it all back together, it still leaked. I took it apart again, pulled the transmission and found the plug at the back of the cam was leaking. It never leaked again after I fixed it.