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

Add option to hide SmtpServer version #187

Open
bogdanst24 opened this issue Jan 23, 2023 · 1 comment
Open

Add option to hide SmtpServer version #187

bogdanst24 opened this issue Jan 23, 2023 · 1 comment

Comments

@bogdanst24
Copy link

When the connection is made, the server automatically responds with a 220 code followed by the Name and version. In a security audit, it was brought to our attention that this could constitute information leakage, consisting of a potential (very unlikely) security risk.

It is not a make-or-break change, but it would be helpful to either have the possibility of not showing it, or overwriting it. It would be very appreciated.

image

@BrewingCoder
Copy link

just fork the project and change line 179 of SmtpSession.cs and remove the "v{version} " from that line.

When new versions of SMTP are checked in just pull them down to your fork and make sure that line always stays the way you want it :)

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