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

authentication problem #6

Open
jwwalker opened this issue Jan 17, 2020 · 0 comments
Open

authentication problem #6

jwwalker opened this issue Jan 17, 2020 · 0 comments

Comments

@jwwalker
Copy link

smtp_auth was failing for me. When I traced through the smtp_parse_cmd_line calls in a debugger, I saw several 250 lines like "250-CHUNKING", and finally "250 HELP". Since that does not have a hyphen, cmd->more is set to 0, so we never look at the next line. When I forced cmd->more = 1, I found that the next line was "235 Authentication succeeded". So I tried a hack at the end of smtp_parse_cmd_line:

if ( (cmd->code == SMTP_DONE) && (0 == strcmp( cmd->text, "HELP" )) )
{
    cmd->more = 1;
}

Then everything seemed to work. I don't know if this makes any sense in terms of what the protocol is supposed to be doing.

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

No branches or pull requests

1 participant