Remove No MX lookups setting
authorMark Felder <feld@feld.me>
Sat, 6 Feb 2021 17:55:25 +0000 (11:55 -0600)
committerMark Felder <feld@feld.me>
Sat, 6 Feb 2021 17:55:25 +0000 (11:55 -0600)
This setting defaults to false so the relay host will be used in an MX query so
multiple SMTP servers can be used. gen_smtp code states that all records returned from the
MX query are attempted in order and only a permanent SMTP error will stop the client from
attempting other servers in the list. Connection failures, TLS issues, etc will cause it to
try the next host.

If there is no MX record associated with the relay host, it automatically tries connecting to it
directly.

There is really no reason to expose this to end users. The default value is fine for everyone.

config/description.exs

index 85f90ca3e155337de65a2937999564063ba71d25..8922a3626db4215019723374bc7f59e97ece6ac5 100644 (file)
@@ -295,13 +295,6 @@ config :pleroma, :config_description, [
         description: "`Swoosh.Adapters.SMTP` adapter specific setting",
         suggestions: [5]
       },
-      %{
-        group: {:subgroup, Swoosh.Adapters.SMTP},
-        key: :no_mx_lookups,
-        label: "No MX lookups",
-        type: :boolean,
-        description: "`Swoosh.Adapters.SMTP` adapter specific setting"
-      },
       %{
         group: {:subgroup, Swoosh.Adapters.Sendgrid},
         key: :api_key,