Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Properly handle binding to loopback on mixed IPV4/IPV6 systems #68

Closed
wants to merge 3 commits into from
Closed

Conversation

tas50
Copy link
Contributor

@tas50 tas50 commented May 23, 2014

The current issue with the cookbook is it specifies loopback in the main.cfg for the NICs to bind to, but it specifies the networks to just 127.0.0.1. In the current release postfix prefers the IPV6 stack, but we don't bind to the IPV6 loopback. End result is postfix doesn't work. If you don't specify the network entirely it will handle the config correctly internally. On systems with IPV4 only it will write out 127.0.0.1, and on dual stack environments you'll get both loopbacks. So now we can just specify the attribute for my networks as nil and let the daemon handle the logic. This same logic lets someone avoid writing out any attribute in the cookbook, which might be handy for other attributes

And while I'm in here I updated modes to strings and copyrights / e-mails for Chef Software vs. Opscode.

tas50 added 3 commits May 23, 2014 09:09
Postfix will correctly handle IPV4 and IPV6 interface logic.  If we
specify just 127.0.0.1 we break IPV6 systems
someara pushed a commit that referenced this pull request Jun 11, 2014
Signed-off-by: Sean OMeara <someara@opscode.com>
@someara
Copy link

someara commented Jun 11, 2014

merged in e6b58b2

@someara someara closed this Jun 11, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants