I'm no diplomat, but I always used "Professor" even if I knew better- unless the person was a PhD, in which case it was definitely "Doctor." That is called 'school survival.'