testing password reset paths, smarted handling of mailer env vars