]> git.kaiwu.me - nginx.git/commit
Mail: support SASL EXTERNAL (RFC 4422).
authorRob N ★ <robn@fastmail.com>
Sat, 8 Oct 2016 07:05:00 +0000 (18:05 +1100)
committerRob N ★ <robn@fastmail.com>
Sat, 8 Oct 2016 07:05:00 +0000 (18:05 +1100)
commit66c23edf6308867572d5c4b8341e7a3fe7e97864
treeef7915e431e44d1394d27d3fb70cdcb0d893e467
parenta747089a1dd63f323111c82000debfd83a5e6719
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.
src/mail/ngx_mail.h
src/mail/ngx_mail_auth_http_module.c
src/mail/ngx_mail_handler.c
src/mail/ngx_mail_imap_handler.c
src/mail/ngx_mail_imap_module.c
src/mail/ngx_mail_parse.c
src/mail/ngx_mail_pop3_handler.c
src/mail/ngx_mail_pop3_module.c
src/mail/ngx_mail_smtp_handler.c
src/mail/ngx_mail_smtp_module.c