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

hook_ehlo is called twice #3160

Closed
lnedry opened this issue Feb 28, 2023 · 4 comments
Closed

hook_ehlo is called twice #3160

lnedry opened this issue Feb 28, 2023 · 4 comments

Comments

@lnedry
Copy link
Contributor

lnedry commented Feb 28, 2023

Describe the bug

hook_ehlo gets called twice for every EHLO.

Expected behavior

hook_ehlo should only get called once for each EHLO.

Steps To Reproduce

I created this plugin to demonstrate this issue:

exports.hook_ehlo = function (next, connection, helo) {
    connection.loginfo(this, 'EHLO TEST');
    return next();
}

exports.hook_helo = function (next, connection, helo) {
    connection.loginfo(this, 'HELO TEST');
    return next();
}

System Info:

Haraka Haraka.js — Version: 2.8.28
Node v16.19.0
OS Linux mx 5.10.0-14-amd64 #1 SMP Debian 5.10.113-1 (2022-04-29) x86_64 GNU/Linux
openssl OpenSSL 1.1.1n 15 Mar 2022

Additional context

For each HELO, hook_helo is run once and hook_ehlo is run once.

@msimerson
Copy link
Member

Where are the logs that demonstrate the issue?

@baudehlo
Copy link
Collaborator

baudehlo commented Mar 7, 2023 via email

@msimerson
Copy link
Member

Not at all, that's why I asked for logs.

@lnedry
Copy link
Contributor Author

lnedry commented Mar 7, 2023

Upon further inspection, it does appear to be STARTTLS. I'll reopen if I find evidence to the contrary.

@lnedry lnedry closed this as completed Mar 7, 2023
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

No branches or pull requests

3 participants