make sure mailbox is in valid format