What years of 727 for A body

I'm also looking for a small block 904 to replace the slant 6 trans in my duster. Will 904s from somthing other than an A body work? difference in tailshaft housings/Length? Searched but couldn't find an answer....thanks