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

Features #184

Merged
merged 7 commits into from
Dec 6, 2024
Merged

Features #184

merged 7 commits into from
Dec 6, 2024

Conversation

croessner
Copy link
Owner

No description provided.

Christian Roessner added 7 commits December 5, 2024 17:20
Fix various log strings in checkSMTP, checkIMAP, checkPOP3 and checkHTTP.

Signed-off-by: Christian Roessner <c@roessner.co>
Revised error handling and logging across various network connection protocols, including SMTP, POP3, IMAP, and HTTP for better clarity and error propagation. Set read and write timeouts for network connections to enhance reliability. These changes improve code maintainability and error transparency, reducing reliance on external logging and ensuring errors are properly returned and handled.

Signed-off-by: Christian Roessner <c@roessner.co>
…Port

The methods GetBackendServerIP and GetBackendServerPort have been removed from the File struct in server/config/file.go. This change cleans up the code by eliminating unused methods, improving maintainability and readability.

Signed-off-by: Christian Roessner <c@roessner.co>
Consolidated logging of server errors with formatted messages for clarity. Improved server connection handling by adding a deep check to enable more thorough protocol handling, and ensured proper response checks for SMTP authentication. Refactored Lua backend server structure for better integration with the existing backend server configuration.

Signed-off-by: Christian Roessner <c@roessner.co>
Enhance the handleProtocol function to support LMTP alongside SMTP by adding a check for LMTP in the switch statement. Modify the checkSMTP function to differentiate between SMTP and LMTP by using the appropriate command (EHLO for SMTP, LHLO for LMTP). This update ensures better protocol handling and extends the server's capability to authenticate connections using the LMTP protocol.

Signed-off-by: Christian Roessner <c@roessner.co>
This update introduces a verification to ensure that network connections are using TLS before proceeding with authentication. If a connection is not secured with TLS, an error is returned to reinforce security. Additionally, a new error type, ErrMissingTLS, is introduced to handle non-TLS connection scenarios.

Signed-off-by: Christian Roessner <c@roessner.co>
Added TLS minimum version enforcement to improve security. Refactored the sieve response parsing to centralize logic and streamline error handling, improving maintainability and reducing redundancy.

Signed-off-by: Christian Roessner <c@roessner.co>
@croessner croessner merged commit d7f248b into main Dec 6, 2024
5 checks passed
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.

1 participant