Harsanyi defends utilitarianism by means of an axiomatic proof and by what he calls the 'equiprobability model'. Both justifications of utilitarianism aim to show that utilitarian ethics can be derived from Bayesian rationality and some weak moral constraints on the reasoning of rational agents. I argue that, from the perspective of Bayesian agents, one of these constraints, the impersonality constraint, is not weak at all if its meaning is made precise, and that generally, it even contradicts individual rational agency. Without the impersonality constraint, Harsanyi's two justifications of utilitarianism on the grounds of Bayesian rationality fail. As an alternative, I develop a contractarian framework that is compatible with individual rational agency and Harsanyi's central assumptions, and that allows the derivation of moral conclusions on the grounds of Bayesian rationality. The developed framework offers a novel justification of contractarian ethics and may best be described as a combined version of Harsanyi's equiprobability model and Rawls's original position.