[Dovecot] question about dovecot-auth
hello :
i'm new to dovecot-list:
i have a question about dovecot auth:
the database of dovecot-auth is memcached, when i test 200 users login by imap at the same time, there are some error like this: Is there any Parameter matches wrong ?
=====================error=========================
Sep 12 10:14:15 IMAP(q56@t.com): Info: Quota warning: bytes=1048471142 (90%) messages=0 command=/opt/email/bin/dovecot-quota-warning.sh 90 q56@t.com
Sep 12 10:14:15 IMAP(q56@t.com): Info: Quota warning: bytes=1106719539 (95%) messages=0 command=/opt/email/bin/dovecot-quota-warning.sh 95 q56@t.com
Sep 12 10:14:16 auth(default): Info: 1111111111111111111111111111!:id:22 OK q148@t.com username=q148@t.com password={CRYPT}$1$711536ed$Q4xYrsYOS6bVq9mJvNoc40 home=/opt/mail mail=maildir:/opt/mail/t.com/q148/ quota_rule2=*:messages=1111 quota_rule=*:bytes=1164967936 line: OK q148@t.com username=q148@t.com password={CRYPT}$1$711536ed$Q4xYrsYOS6bVq9mJvNoc40 home=/opt/email mail=maildir:/opt/email/t.com/q148/ quota_rule2=*:messages=1111 quota_rule=*:bytes=1164967936 request:23
Sep 12 10:14:16 auth(default): Error: BUG: Worker sent reply with id 22, expected 23
Sep 12 10:14:16 auth(default): Error: worker-server(q92@t.com,127.0.0.1): Aborted: Worker is buggy
Sep 12 10:14:16 auth(default): Info: 1111111111111111111111111111!:id:7 OK q32@t.com {CRYPT}$1$557ecad6$SOQhh76yfMx4zAIp3KKX61 home=/opt/mail mail=maildir:/opt/mail/t.com/q32 quota_rule2=*:messages=1111 quota_rule=*:bytes=1164967936 username=q32@t.com line: OK q32@t.com {CRYPT}$1$557ecad6$SOQhh76yfMx4zAIp3KKX61 home=/opt/mail mail=maildir:/opt/mail/t.com/q32 quota_rule2=*:messages=1111 quota_rule=*:bytes=1164967936 username=q32@t.com request:7
Sep 12 10:14:16 IMAP(q156@t.com): Info: Namespace: type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes
Sep 12 10:14:16 IMAP(q156@t.com): Info: maildir: data=/opt/email/t.com/q156/...ep 12 10:14:21 auth(default): Info: new auth connection: pid=14558
Sep 12 10:14:22 imap-login: Info: Aborted login (auth failed, 1 attempts): user=q92@t.com, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
Sep 12 10:14:23 auth(default): Info: new auth connection: pid=14562
Sep 12 10:17:14 imap-login: Info: Disconnected: Inactivity (auth failed, 1 attempts): user=q148@t.com, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
Sep 12 10:17:15 auth(default): Info: new auth connection: pid=14601
======================concurrent-script========================
my concurrent-login script is:
use strict;
use warnings;
use Net::IMAP::Client;
use Getopt::Long;
use threads;
my %opt = ();
GetOptions(\%opt, 'pth_num|n=s');
my $pths = $opt{pth_num};
my $t1 = 0;
my $passwd = "qwer1234";
sub thread_fun
{
my $j = 0;
my $count = 2;
my $k = $_[0];
my $pid = threads->self()->tid();
while ($count != 0){
my $username = "q$k\@t.com";
print "#####$pid $username $passwd #####\n";
my $imap = Net::IMAP::Client->new(
server => '127.0.0.1',
user => $username,
password => $passwd,
)or die "can not connect:$@";
$imap->login($username, $passwd) or die ('login failed!'. $imap->last_error);
$imap->noop;
$imap->select('INBOX');
$imap->noop;
$imap->noop;
$imap->noop;
$imap->noop;
$imap->logout;
print "------------$username logout------------------\n";
$count--;
sleep(1);
}
print "GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG\n"
}
my $i = 1;
while($pths){
$t1 = threads->create(\&thread_fun, $i);
if($pths != 1){
$t1->detach();
}
print "create $pths\'s threads\n";
$i++; $pths--;
} my $ret = $t1->join(); =========================dovecot.conf====================== my dovecot.conf about auth is:log_path = /var/log/maillog login_processes_count = 128 #listen_start_process login_max_processes_count = 128 login_max_connections = 128 #login_max_connections = 256 max_mail_processes = 1024disable_plaintext_auth = nologin_process_per_connection=yes thanks amandy
participants (1)
-
liuamandy