COOK-1442 Adding conditional in case domain is missing (e.g. Vagrant).
This commit is contained in:
parent
3d72cf1944
commit
48ecec64c5
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user