-
Notifications
You must be signed in to change notification settings - Fork 229
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
Get client IP address while client connects to smtp server? #130
Comments
Maybe we could add a Note, you should already be able to do this by implementing a custom |
|
Sorry to intrude, But I'm interested in the same kind of feature for the The session is not yet created at connection time (neither |
Can you open a new issue an explain your use-case? |
There is no way to terminate the connection on NewSession though. That's probably can be done via #147. Needs discussion. |
Wouldn't an error returned by |
It will return an error response to the client without terminating the connection. Client can issue EHLO/HELO/QUIT in this case. |
Dear @emersion
First of all, thanks for the great work. 👍
We're trying to implement an internal SMTP server, and we'd like to reject client as earlier as possible if client IP address is not whitelisted. Currently it's ok to get client IP in
Mail()
method ofSession
interface, but we'd like to reject it even earlier. For example, when the client connects to the smtp server.Could you share some idea of how we can achieve this? Thank you. :)
The text was updated successfully, but these errors were encountered: