fix: raise an error if MX lookup times out during sending

This avoids potentially sending mail to the A record when an MX query times out.

closes #2833
This commit is contained in:
Adam Cooke
2024-03-01 21:36:07 +00:00
parent 77e818a472
commit fadca88f45
7 changed files with 231 additions and 33 deletions
+10
View File
@@ -329,6 +329,16 @@ module Postal
description "The domain to use on external domains which points to the Postal return path domain"
default "psrp"
end
integer :timeout do
description "The timeout to wait for DNS resolution"
default 5
end
string :resolv_conf_path do
description "The path to the resolv.conf file containing addresses for local nameservers"
default "/etc/resolv.conf"
end
end
group :smtp do