You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been looking into requiring authentication as per RFC 4954; returning 530 5.7.0 Authentication required on commands other than AUTH, EHLO, HELO, NOOP, RSET, or QUIT.
To do this I've added an "authenticated" status which gets set to true inside the sendAuthSuccessResponse() method (which feels wrong) and checked for this status before running any of the commands requiring auth.
As it stands in 0.7 if the client does not attempt an AUTH it will just accept any of the other commands.
My next question is in the TRIGGER_NEW_MAIL event, how would one access the current authenticated user, for example to save the email to a database against that user.
The text was updated successfully, but these errors were encountered:
I've been looking into requiring authentication as per RFC 4954; returning
530 5.7.0 Authentication required
on commands other than AUTH, EHLO, HELO, NOOP, RSET, or QUIT.To do this I've added an "authenticated" status which gets set to true inside the
sendAuthSuccessResponse()
method (which feels wrong) and checked for this status before running any of the commands requiring auth.As it stands in 0.7 if the client does not attempt an AUTH it will just accept any of the other commands.
My next question is in the
TRIGGER_NEW_MAIL
event, how would one access the current authenticated user, for example to save the email to a database against that user.The text was updated successfully, but these errors were encountered: