Allows leaving `smtp_settings[:domain]` unspecified. Explicitly setting it to `nil` (as when `OSEM_SMTP_DOMAIN` is unset) overrides the default value of `'localhost.localdomain'` and caused SMTP connections to fail with `EOFError`.