Comparison results for a linear elliptic equation with mixed boundary conditions