Initial mail and config logic