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

SASL authentication failed regex too strict? #103

Open
ondras opened this issue Apr 8, 2023 · 2 comments
Open

SASL authentication failed regex too strict? #103

ondras opened this issue Apr 8, 2023 · 2 comments

Comments

@ondras
Copy link

ondras commented Apr 8, 2023

Hi,

my postfix log contains quite a large number of these lines:

Apr 08 20:13:45 mail postfix/smtpd[2127]: warning: unknown[141.98.11.14]: SASL PLAIN authentication failed:

Unfortunately, they are not picked up by the relevant regex, because the regex expects a space after "failed:" (typically, a more detailed SASL error explanation follows).

Would it make sense to remove the trailing space from the regex? I can open a PR, if this sounds like a reasonable idea.

@dswarbrick
Copy link

Duplicate of #80 I think.

@ondras
Copy link
Author

ondras commented Apr 14, 2023

Duplicate of #80 I think.

Not exactly - #80 is having issues with the warning prefix in https://github.com/kumina/postfix_exporter/blob/master/postfix_exporter.go#L306. It is the very same regex I would like to adjust, though - but at a different place.

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

2 participants