Unify interview question

How would you design mailserver?