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

Fix to wait for final SMTP command before checking next one #205

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

Conversation

dragoangel
Copy link
Contributor

@dragoangel dragoangel commented Dec 3, 2024

  1. Exporter connects to postscreen 220-postsreen ESMTP Postfix and response to it EHLO prober but it should wait final command 220 postfix ESMTP Postfix and only after it send EHLO prober.
  2. We need to send STARTTLS only after getting last 250 .* capability from the list, as STARTTLS capability can be in any place, we need check we have it in the list and check that we get all capabilities at same time.

@dragoangel dragoangel changed the title Expect proper SMTP greeting Fix to wait for final SMTP command before checking next one Dec 6, 2024
@dragoangel
Copy link
Contributor Author

To note: after implementing this fix my ssl exporter stopped to throw any false positive responses that endpoint is down. For people who can't wait to get this merged I build own image: dragoangel/ssl-exporter:2.5.1

@ribbybibby please review

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