smtp mailer cleanup