Set up email config to use default correctly

If an instance name does not match a config name use the default config instead if it exists, otherwise throw an exception.