Whenever you're ready, walk me through how you'd approach this.
Explain your understanding of mail server concepts, SQL queries, and OOP concepts.