It seems that ISessionContext does not expose the remote endpoint, so I can't seem to find a way to determine the remote IP, either for filtering or logging. Can this be added to that interface? It seems that SmtpSessionContext does have the necessary info, but it's internal sealed, so I can't get at that from my program. Is there a way to do this and I'm not seeing currently?
It seems that
ISessionContext
does not expose the remote endpoint, so I can't seem to find a way to determine the remote IP, either for filtering or logging. Can this be added to that interface? It seems thatSmtpSessionContext
does have the necessary info, but it's internal sealed, so I can't get at that from my program. Is there a way to do this and I'm not seeing currently?