-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
config/ENV: improve Postfix config for spoof protection #3127
Conversation
Just FYI: This and #3137 should have high prio for review, and they should be merged next. |
This commit message has more detail regarding changes in this PR, probably should have been part of the PR description for better visibility 😅 The changes in I touched on the naming convention from upstream in prior discussions, I'd rather we use those or adopt some convention / section for
So for us that'd be:
That last change to use If we needed more control for the opposite of adding substrings, there was an example helper I discussed here (alternatively |
Let's delay the There is still good changes in this PR that look fine to approve, but feedback from my previous message should be addressed (and adapted for the inverse since Justification to delay
|
This commit fixes #3117 as it improves Postfix's configuration to only add `reject_authenticated_sender_login` to services/ports where SASL is used (getting rid of the warning messages shown in the issue). The wording for the log was chosen as we need to be consistent with the default value, which is `0`.
4f5910b
to
c16e252
Compare
SPOOF_PROTECTION=1
the default
I applied PR feedback and rebased the PR accordingly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, just noticed the failed test suite 😅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hope you don't mind me committing this directly to test in CI as my local system isn't in good shape to try locally.
EDIT: Ok that appears to resolve it. Maybe that is what you were asking about earlier? 😅
I'll update main.cf
once more.
Absolutely not - good thing you did :)
👍🏼 Now this PR only needs review :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added some comments if helpful, but the dms_
prefix kinda makes it clear that it's not an upstream parameter setting.
To avoid duplication, smtpd_sender_restrictions
will reference the same value and this avoids Postfix getting confused (I would have thought it'd just expand what was in main.cf
and not complained 🙄 sorry about that!)
Documentation preview for this PR is ready! 🎉 Built with commit: 177bcf5 |
Description
Make
SPOOF_PROTECTION=1
the default and improve Postfix configuration to eliminate the currently shown warning.Reviewing commit-by-commit advised.
Fixes #3117
Type of change
Checklist:
docs/
)