COOK-1442 Adding conditional in case domain is missing (e.g. Vagrant).

This commit is contained in:
Greg 'gba' Albrecht Kim 2012-07-12 18:14:08 -07:00
parent 3d72cf1944
commit 48ecec64c5

View File

@ -20,7 +20,9 @@ smtp_tls_CAfile = <%= node['postfix']['smtp_tls_cafile'] %>
smtp_use_tls = <%= node['postfix']['smtp_use_tls'] %> smtp_use_tls = <%= node['postfix']['smtp_use_tls'] %>
<% end -%> <% end -%>
myhostname = <%= node['postfix']['myhostname'] %> myhostname = <%= node['postfix']['myhostname'] %>
<% if node['postfix']['domain'] %>
mydomain = <%= node['postfix']['mydomain'] %> mydomain = <%= node['postfix']['mydomain'] %>
<% end -%>
myorigin = <%= node['postfix']['myorigin'] %> myorigin = <%= node['postfix']['myorigin'] %>
smtpd_banner = $myhostname ESMTP $mail_name smtpd_banner = $myhostname ESMTP $mail_name
alias_maps = hash:/etc/aliases alias_maps = hash:/etc/aliases