update: mailer, env and config setup