move mailer settings to cfg