From ba048e6d37e0b7dcbc60e76683f0e4aa565a5b3f Mon Sep 17 00:00:00 2001 From: Giovanni Cagnetta Date: Mon, 12 Sep 2016 11:44:53 +1000 Subject: [PATCH 1/2] added smtp_host_lookup settings to main.cf template --- templates/main.cf.erb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/templates/main.cf.erb b/templates/main.cf.erb index 2e0beb0..bd65a24 100644 --- a/templates/main.cf.erb +++ b/templates/main.cf.erb @@ -86,6 +86,9 @@ myhostname = <%= @myhostname %> mydomain = <%= @mydomain %> <% end -%> +# Use nsswitch and look into /etc/hosts if no dns record is found +smtp_host_lookup = dns, native + # SENDING MAIL # # The myorigin parameter specifies the domain that locally-posted From e1984cd0c5fb01bfd7c9a63b632c271ed8fbcfce Mon Sep 17 00:00:00 2001 From: Giovanni Cagnetta Date: Mon, 12 Sep 2016 11:47:44 +1000 Subject: [PATCH 2/2] added smtp_host_lookup settings to main.cf template --- templates/main.cf.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/main.cf.erb b/templates/main.cf.erb index bd65a24..20e2015 100644 --- a/templates/main.cf.erb +++ b/templates/main.cf.erb @@ -86,7 +86,7 @@ myhostname = <%= @myhostname %> mydomain = <%= @mydomain %> <% end -%> -# Use nsswitch and look into /etc/hosts if no dns record is found +# Use nsswitch if no dns record is found smtp_host_lookup = dns, native # SENDING MAIL