Skip to content

scripts: get all policyd-spf setup in one place#3263

Merged
georglauterbach merged 2 commits intomasterfrom
spf/improvement
Apr 14, 2023
Merged

scripts: get all policyd-spf setup in one place#3263
georglauterbach merged 2 commits intomasterfrom
spf/improvement

Conversation

@georglauterbach
Copy link
Copy Markdown
Member

Description

Basically #3246 (comment).

Looking at https://github.com/docker-mailserver/docker-mailserver/actions/runs/4699505235/jobs/8333061595?pr=3261, we can see that postconf is complaining:

postconf: warning: /etc/postfix/main.cf: unused parameter: policyd-spf_time_limit=3600

This PR resolves the matter and puts all the code that integrates policyd-spf in one place.


The log says 'Disabling policyd-spf', when actually doing nothing, but this is okay, since

  1. the default value is 1
  2. we will change the default after v12.1.0 to 0 anyway and therefore, the log messages

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • Improvement (non-breaking change that does improve existing functionality)

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation (README.md or the documentation under docs/)
  • If necessary I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

Basically #3246 (comment)

Looking at
https://github.com/docker-mailserver/docker-mailserver/actions/runs/4699505235/jobs/8333061595?pr=3261,
we can see that `postconf` is complaining:

```txt
postconf: warning: /etc/postfix/main.cf: unused parameter: policyd-spf_time_limit=3600
```

This PR resolves the matter and puts all the code that integrates
policyd-spf in one place.
@georglauterbach georglauterbach added area/scripts kind/improvement Improve an existing feature, configuration file or the documentation service/security/dkim-dmarc-spf labels Apr 14, 2023
@georglauterbach georglauterbach added this to the v12.1.0 milestone Apr 14, 2023
@georglauterbach georglauterbach self-assigned this Apr 14, 2023
polarathene
polarathene previously approved these changes Apr 14, 2023
Comment thread target/scripts/startup/setup.d/dmarc_dkim_spf.sh Outdated
@georglauterbach georglauterbach merged commit 03772f6 into master Apr 14, 2023
@georglauterbach georglauterbach deleted the spf/improvement branch April 14, 2023 22:40
/etc/postfix/main.cf
# SPF policy settings
postconf 'policyd-spf_time_limit = 3600'
EOF
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

EOF was advised to be dropped for this suggestion.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I should have read this more carefully, sorry 😨

Fixed in f62855f in PR #3261

georglauterbach added a commit that referenced this pull request Apr 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/scripts kind/improvement Improve an existing feature, configuration file or the documentation service/security/dkim-dmarc-spf

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants