Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Use node['fqdn'] instead of node['hostname'] for mydestination. #33

Closed
wants to merge 1 commit into from

1 participant

Nuo Yan
Nuo Yan

Because node['postfix']['myhostname'] is most likely the same with node['hostname'] because it's supposed to be used with node['postfix']['mydomain'], I think it makes more sense to have node['fqdn'] than node['hostname'] again in the list.

Nuo Yan Use node['fqdn'] instead of node['hostname'] for mydestination.
Because node['postfix']['myhostname'] is most likely the same with 
node['hostname'] because it's supposed to be used with 
node['postfix']['mydomain'].
6e514b5
Nuo Yan nuoyan closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jul 10, 2013
  1. Use node['fqdn'] instead of node['hostname'] for mydestination.

    Nuo Yan authored
    Because node['postfix']['myhostname'] is most likely the same with 
    node['hostname'] because it's supposed to be used with 
    node['postfix']['mydomain'].
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  templates/default/main.cf.erb
2  templates/default/main.cf.erb
View
@@ -27,7 +27,7 @@ myorigin = <%= node['postfix']['myorigin'] %>
smtpd_banner = $myhostname ESMTP $mail_name
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
-mydestination = <%= node['postfix']['myhostname'] %>, <%= node['hostname'] %>, localhost.localdomain, localhost
+mydestination = <%= node['postfix']['myhostname'] %>, <%= node['fqdn'] %>, localhost.localdomain, localhost
<% if node['postfix']['mail_type'] == "master" -%>
relayhost =
mynetworks = <%= node['postfix']['mail_relay_networks'] %>
Something went wrong with that request. Please try again.