rename pam email environment variable to something more understandable and default to LOCAL_DOMAIN (better fallback) (#6833)