smtp-client icon indicating copy to clipboard operation
smtp-client copied to clipboard

authentication problem

Open jwwalker opened this issue 4 years ago • 0 comments

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.

jwwalker avatar Jan 17 '20 00:01 jwwalker