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

CrLf option for newline #703

Closed
wants to merge 1 commit into from
Closed

Conversation

fischerman
Copy link
Contributor

Most internet protocols require CRLF for a newline. For example, for SMTP see https://tools.ietf.org/html/rfc2821#section-4.1.1

The blackbox exporter is only sending LF, which is accepted by some servers (e.g. Postfix) but not by others (e.g. Exchange). This PR adds an option to send CRLF. I've set it to false by default for backwards compatibility (although it should probably be enabled in most cases).

Signed-off-by: Björn Fischer <bjoern.fischer@inovex.de>
@brian-brazil
Copy link
Contributor

Hmm, couldn't you put a \r on the end of the string in your config?

@fischerman
Copy link
Contributor Author

To my surprise that works. Should we at least change the SMTP examples to make them compliant to spec?

@brian-brazil
Copy link
Contributor

That sounds like a good idea.

@fischerman
Copy link
Contributor Author

Closing in favor of #706

@fischerman fischerman closed this Oct 29, 2020
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.

None yet

2 participants