Abstract. We apply a modified mean-field density functional theory to determine the phase behavior of Stockmayer fluids in slit-like pores formed by two walls with identical substrate potentials. Based on the Carnahan-Starling equation of state, a fundamental-measure theory is employed to incorporate the effects of short-ranged hard-sphere-like correlations while the long-ranged contributions to the fluid interaction potential are treated perturbatively. The liquid-vapor, ferromagnetic-liquid-vapor, and ferromagneticliquid-isotropic-liquid first-order phase separations are investigated. The local orientational structure of the anisotropic and inhomogeneous ferromagnetic liquid phase is also studied. We discuss how the phase diagrams are shifted and distorted upon varying the pore width.