Move smtp configuration into after_initializer