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

helo.checks doesn't check HELO after EHLO #2913

Closed
Juerd opened this issue Jan 23, 2021 · 5 comments · Fixed by #3352
Closed

helo.checks doesn't check HELO after EHLO #2913

Juerd opened this issue Jan 23, 2021 · 5 comments · Fixed by #3352

Comments

@Juerd
Copy link
Collaborator

Juerd commented Jan 23, 2021

Describe the bug
It seems that helo.checks accepts previously rejected identities.

Expected behavior
Wrong remains wrong

Observed behavior
Persistent wrong turns right:

<-  220 censored ESMTP Haraka ready
 -> EHLO google.com
<** 550 You are not who you say you are
 -> HELO google.com
<-  250 censored Hello [censored]!

Steps To Reproduce

  • reject.big_company=true
  • swaks -h google.com

System Info:

Haraka Haraka.js — Version: 2.8.27
Node v12.20.1
OS Linux censored 4.19.0-13-amd64 #1 SMP Debian 4.19.160-2 (2020-11-28) x86_64 GNU/Linux
openssl OpenSSL 1.1.1d 10 Sep 2019
@msimerson
Copy link
Member

See #434

Please include logs of the transaction, so we can see what's happening.

Guess: do you have helo.checks included in karma.ini.deny_excludes?

@lnedry
Copy link
Contributor

lnedry commented Jan 19, 2024

I was able to replicate this issue in a clean install of Haraka 3.0.2 (Debian 11).
This is related to #3269

@msimerson
Copy link
Member

I am unable to replicate this with Haraka from HEAD:

❯ nc localhost 25
220 home.simerson.net ESMTP Haraka/3.0.3/2e6ff612 ready
EHLO google.com
550 You are not who you say you are
HELO google.com
550 You are not who you say you are
quit

The only PR I see that might have caused a change in behavior is #3191

@lnedry
Copy link
Contributor

lnedry commented May 8, 2024

I just installed Haraka from HEAD and am getting the same results as Juerd.

220 lab.local ESMTP Haraka/3.0.3/2e6ff612 ready
EHLO google.com
550 You are not who you say you are
HELO google.com
250 lab.local Hello [192.168.1.250]Haraka is at your service.

config/helo.checks.ini

[check]
big_company=true

[reject]
big_company=true

[skip]
private_ip=false

[bigco]
google.com=google.com

config/plugins

helo.checks
mail_from.is_resolvable
rcpt_to.in_host_list
headers
queue/smtp_forward

@msimerson
Copy link
Member

msimerson commented May 8, 2024

Ahah, seeing your config helped me narrow down exactly the issue (and see why my results were different than yours). A PR is coming soon.

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 a pull request may close this issue.

3 participants