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 a way to hook into the HELO commands #136

Closed
Savageman opened this issue Jan 29, 2021 · 3 comments · Fixed by #146
Closed

Add a way to hook into the HELO commands #136

Savageman opened this issue Jan 29, 2021 · 3 comments · Fixed by #146

Comments

@Savageman
Copy link

Similar to #130, a hook to the HELO commands can be useful to implement security depending on the value of the argument provided.

Examples: check the domain syntax, its existence, whether it's correctly configured to accept emails, etc.

@foxcpp
Copy link
Collaborator

foxcpp commented Jan 30, 2021

Possibly relevant: #114 (comment) #114 (comment)

Perhaps it is a time for the third backend interface revision?)

@emersion
Copy link
Owner

Indeed. Seems like it would make sense to just do what your comment says.

foxcpp added a commit to foxcpp/go-smtp that referenced this issue Jul 16, 2021
foxcpp added a commit to foxcpp/go-smtp that referenced this issue Jul 20, 2021
foxcpp added a commit to foxcpp/go-smtp that referenced this issue Jul 20, 2021
emersion pushed a commit that referenced this issue Jul 20, 2021
@foxcpp
Copy link
Collaborator

foxcpp commented Jul 20, 2021

With the recent backend interface change, NewSession runs on HELO/EHLO.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants