Klaus Demo nginx / 09085e3
fix STARTTLS prompt in SMTP Igor Sysoev 14 years ago
1 changed file(s) with 3 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
2828
2929 static u_char smtp_ok[] = "250 2.0.0 OK" CRLF;
3030 static u_char smtp_bye[] = "221 2.0.0 Bye" CRLF;
31 static u_char smtp_starttls[] = "220 2.0.0 Start TLS" CRLF;
3132 static u_char smtp_next[] = "334 " CRLF;
3233 static u_char smtp_username[] = "334 VXNlcm5hbWU6" CRLF;
3334 static u_char smtp_password[] = "334 UGFzc3dvcmQ6" CRLF;
249250
250251 case NGX_SMTP_STARTTLS:
251252 rc = ngx_mail_smtp_starttls(s, c);
253 s->out.len = sizeof(smtp_starttls) - 1;
254 s->out.data = smtp_starttls;
252255 break;
253256
254257 default: