since parsing configs is slow, do so before we connect to smtp server