-
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
Auth is ignored in the master branch #171
Comments
Some findings in regards to the STARTTLS command from RFC: https://datatracker.ietf.org/doc/html/rfc3207#section-4.2
|
After #146 changes, there is no way for the backend to signal AUTH being mandatory so its backend responsibility to verify whether AuthPlain was called. |
Since we do not have #147 merged yet, I pushed an intermediate fix for the panic bug. |
@foxcpp the #146 PR introduced a breaking change. While adapting my code to meet the recent package requirements I noticed that AUTH can be ignored.
A simple server code example avoids auth:
server side output:
client side output:
Another case to cause an unexpected behavior: nil the session keeping the
c.helo
value:upgrade the connection to starttls
go-smtp/conn.go
Lines 613 to 616 in 30169ac
send
MAIL FROM
helo check is passed:
go-smtp/conn.go
Line 297 in 30169ac
session is nil, but it's method is called without a check for nil value:
go-smtp/conn.go
Line 400 in 30169ac
causing panic, e.g. it's reproducible in maddy.
Proposal:
session == nil
checks before calling the methods (see my Return an internal server error code, when session is nil #153 PR)The text was updated successfully, but these errors were encountered: