comparison src/mail/ngx_mail_auth_http_module.c @ 6774:bcb107bb89cd

Mail: support SASL EXTERNAL (RFC 4422). This is needed to allow TLS client certificate auth to work. With ssl_verify_client configured, the auth daemon can choose to allow the connection to proceed based on the certificate data. This has been tested with Thunderbird for IMAP only. I've not yet found a client that will do client certificate auth for POP3 or SMTP, and the method is not really documented anywhere that I can find. That said, its simple enough that the way I've done is probably right.
author Rob N ★ <robn@fastmail.com>
date Sat, 08 Oct 2016 18:05:00 +1100
parents 0a820872dd4c
children 44ebeeceb70e
comparison
equal deleted inserted replaced
6773:73b451d304c0 6774:bcb107bb89cd
149 ngx_string("plain"), 149 ngx_string("plain"),
150 ngx_string("plain"), 150 ngx_string("plain"),
151 ngx_string("plain"), 151 ngx_string("plain"),
152 ngx_string("apop"), 152 ngx_string("apop"),
153 ngx_string("cram-md5"), 153 ngx_string("cram-md5"),
154 ngx_string("external"),
154 ngx_string("none") 155 ngx_string("none")
155 }; 156 };
156 157
157 static ngx_str_t ngx_mail_smtp_errcode = ngx_string("535 5.7.0"); 158 static ngx_str_t ngx_mail_smtp_errcode = ngx_string("535 5.7.0");
158 159