Backend bar mail server code