Email Record: Optimal design of queueing systems