Skip to content

Commit

Permalink
Merge pull request #1 from sduchesneau/fix/keep_root_emails_local
Browse files Browse the repository at this point in the history
add $myhostname and $mydomain to mydestination
  • Loading branch information
ntdt authored Oct 13, 2017
2 parents 0214bcc + 93d8bbb commit 2343684
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jobs/postfix/templates/config/main.cf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_una
myhostname = <%= p('postfix.myhostname') %>
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mydestination = mysmtpserver, localhost, localhost.localdomain, localhost
mydestination = $myhostname, $mydomain, localhost, localhost.localdomain, localhost
relayhost = <%= p('postfix.relayhost') %>
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128,<% if_p('postfix.mynetworks') do |postfix_mynetworks| %> <%=postfix_mynetworks.join(',') %> <% end %>
mailbox_size_limit = 0
Expand Down

0 comments on commit 2343684

Please sign in to comment.