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

WIP mail/postfix: Add support for header_checks #1893

Conversation

Starkstromkonsument
Copy link
Contributor

@Starkstromkonsument Starkstromkonsument commented Jun 20, 2020

@mimugmail
Copy link
Member

Headerchecks everywhere, also filenames, not HeaderChecks.

@Starkstromkonsument
Copy link
Contributor Author

@mimugmail thank you! That did the trick in the first place. Unfortunately I stumbled into the next problem. The form for adding/editing entries does not get the values defined in mail/postfix/src/opnsense/mvc/app/models/OPNsense/Postfix/Headerchecks.xml. The dropdown remains empty and the default value "1" for enabled is not being set:

grafik

Is there any way to get error messages from phalcon (I never worked with it before). I managed to turn on additional error messages for PHP

html_errors = on
error_reporting = E_ALL
display_startup_errors = on

but I don't get anything useful from phalcon.

@Starkstromkonsument Starkstromkonsument changed the title WIP: mail/postfix Add support for header_checks WIP mail/postfix: Add support for header_checks Jun 23, 2020
@mimugmail
Copy link
Member

F12 is your friend:

image

You are calling searchHeadercheck but your functions in HeaderchecksController.php are called searchHeaderchecksAction (missing s)

@Starkstromkonsument
Copy link
Contributor Author

Mmh. I guess I just messed this PR up by syncing my branch the wrong way ...

@Starkstromkonsument Starkstromkonsument deleted the postfix_header_checks branch June 25, 2020 22:02
@Starkstromkonsument
Copy link
Contributor Author

This PR has been replaced by #1897

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

postfix: header_checks for black / whitelisting
6 participants