Religion has no place in post offices run by churches and other private contractors, a federal judge has ruled, citing the constitutional separation of church and state.