set hosts_max_try_hardlimit to avoid excessive retries with gmail
authorClinton Ebadi <clinton@unknownlamer.org>
Mon, 5 Nov 2018 05:16:46 +0000 (00:16 -0500)
committerClinton Ebadi <clinton@unknownlamer.org>
Mon, 5 Nov 2018 05:16:46 +0000 (00:16 -0500)
commit4fb525a13be044ba7b0193d4413b96dfce7730f1
tree5784c5a0bcc590b9c0a1ba9555739c2475b61cc7
parent8929fb469d4266116155e21f289c864cd3608f96
set hosts_max_try_hardlimit to avoid excessive retries with gmail

Per the exim manual:

  "...when the hosts_max_try limit is reached, Exim looks down the
  host list to see if there is a subsequent host with a
  different (higher valued) MX. If there is, that host is considered
  next..."

Gmail seems to return sets of records with different priorities
now (or maybe always did), and exim is now checking all of them
instead of bailing out early.

Set the hardlimit to 3; this lets us make one attempt at delivering to
a lower priority mx without hammering gmail excessively.
conf.d/transport/30_exim4-config_remote_smtp