comparison mail_pop3.t @ 1680:e6bf510f5e13

Tests: removed $http_auth_smtp_to from POP3 and IMAP tests.
author Maxim Dounin <mdounin@mdounin.ru>
date Wed, 19 May 2021 04:33:00 +0300
parents 74986ebee2fd
children 994d1b58cbe8
comparison
equal deleted inserted replaced
1679:74986ebee2fd 1680:e6bf510f5e13
56 server_name localhost; 56 server_name localhost;
57 57
58 location = /mail/auth { 58 location = /mail/auth {
59 set $reply ERROR; 59 set $reply ERROR;
60 set $passw ""; 60 set $passw "";
61
62 if ($http_auth_smtp_to ~ example.com) {
63 set $reply OK;
64 }
65 61
66 set $userpass "$http_auth_user:$http_auth_pass"; 62 set $userpass "$http_auth_user:$http_auth_pass";
67 if ($userpass ~ '^test@example.com:secret$') { 63 if ($userpass ~ '^test@example.com:secret$') {
68 set $reply OK; 64 set $reply OK;
69 } 65 }