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

Add authres_permitpartialpass option #59

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

tomsommer
Copy link
Contributor

@tomsommer tomsommer commented Jan 19, 2023

This option will make any authres_status return FAIL if any authres result fails

For cases where spf=pass and dkim=pass and dmarc=fail and you don't want to show partialsuccess (green icon).

Change is backwards compatible.

This option will make any authres_status return FAIL if any authres result fails

For cases where spf=pass and dkim=pass and dmarc=fail and you don't want to show partialsuccess (green icon)
@pimlie
Copy link
Owner

pimlie commented Apr 9, 2024

@tomsommer Thanks for the PR. I might not fully understand your use case, but why is disabling At least one signature passed validation in the settings not sufficient? Is that because you'd like to explicitly see a red cross instead of nothing at all?

Wdyt about a strict mode otherwise? Not sure what other things we could add under that but might be a bit more flexible?

@@ -472,6 +472,12 @@ public function get_authentication_status($headers, $show_statuses = 0, $uid = 0
}
}

// at least one auth method was passed, show partial pass
$rcmail = rcmail::get_instance();
if (($status & self::STATUS_PASS) && ($status & self::STATUS_FAIL) && $rcmail->config->get('authres_permitpartialpass', true)) {
Copy link
Owner

Choose a reason for hiding this comment

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

How can a user configure authres_permitpartialpass? I guess we also need a checkbox in preferences?

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.

2 participants