-
Notifications
You must be signed in to change notification settings - Fork 127
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
postfix service on specific port fails #100
Comments
@ixs can you comment on this? |
@aboe76 thanks for the headsup. This looks familiar... I might actually have that already fixed locally. Let me have a look. |
@go8ose Have a look at bawuenet@9454406 and see if that would work for you. It's a quite extensive rework of the services config but finally allows to configure really everything. :-) |
* Useful to have this provided in a bug report, e.g. - saltstack-formulas/postfix-formula#100
@ixs do I see a PR in the future? :) |
Thanks @ixs, I've tried out this branch. My testing shows it works, in that a salt test run doesn't error out, and does look like it would apply the diff to master.cf that I expect. I haven't actually put this into use on a test server to confirm that postfix starts up. Furthemore, the diff I needed to apply to my pillar was pretty minor:
(Note I previously had "localhost_10025" to work around the salt exceptions being thrown, and yes, that was causing a broken master.cf file to be created). So if this change makes it's way into a PR, that would definitely close this issue. |
Thanks for the feedback. I'll see what needs to be cleaned up before we can merge that in... |
Describe the bug
I get a SaltRenderError when I try to use this forumla to make postfix listen on localhost:10025.
Setup
I'm using a github fork of this repository. It's on version 077a6a6.
Steps to reproduce the bug
I have a pillar that reads (in part, snipped for brevity):
(Edit 2019-10-06, fixed example pillar to show "localhost:10025" instead of "localhost_10025", as the former actually causes the SaltRenderError, the later is what I had committed to my pillar to avoid the exception being thrown)
When I run salt, I see an error.
Expected behaviour
I would expect salt to write out a /etc/postfix/master.cf file that includes an entry for "localhost:10025", which has the arguments listed above (such as content_filter, smtpd_delay_reject, etc). I would expect salt to restart postfix, and then postfix to be listening on port 10025.
Versions report
Additional context
I've done some investigation. I suspect in postfix/files/master.cf, in the "Handle custom services" section at the end, the "pillar.get" on 'postfix:master_config:services:%s' is causing a lookup of 'postfix:master_config:services:localhost:10025', which is not a key that exists in my pillar.
I don't know how to define a pillar that will result in the formula writing out a postfix service entry for "localhost:10025", and will also satisfy that pillar.get lookup.
The text was updated successfully, but these errors were encountered: