support specifying default email domain for reverse proxy setup
Improve default email domain for reverse-prxy auth