Mail - Added hostname to settings before locking

Added settings.hostname before locking settings, the class may need a comment explaining when is settings.hostname needed