Skip to content

Commit

Permalink
COOK-1442 Adding conditional in case domain is missing (e.g. Vagrant).
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg 'gba' Albrecht Kim committed Jul 13, 2012
1 parent 3d72cf1 commit 48ecec6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions templates/default/main.cf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ smtp_tls_CAfile = <%= node['postfix']['smtp_tls_cafile'] %>
smtp_use_tls = <%= node['postfix']['smtp_use_tls'] %>
<% end -%>
myhostname = <%= node['postfix']['myhostname'] %>
<% if node['postfix']['domain'] %>
mydomain = <%= node['postfix']['mydomain'] %>
<% end -%>
myorigin = <%= node['postfix']['myorigin'] %>
smtpd_banner = $myhostname ESMTP $mail_name
alias_maps = hash:/etc/aliases
Expand Down

0 comments on commit 48ecec6

Please sign in to comment.