Index: [Article Count Order] [Thread]

Date:  Tue, 24 Jul 2007 21:58:01 -0700
From:  "Ken Marcus - Precision Web Hosting, Inc." <kenmarcus (at mark) precisionweb.net>
Subject:  [coba-e:10435] Re: Dovecot  Authentication failure
To:  <coba-e (at mark) bluequartz.org>
Message-Id:  <17f001c7ce78$612bb440$6700a8c0@OfficeKen>
References:  <000301c7ce6b$bfebc270$7001a8c0@cyberec>
X-Mail-Count: 10435


----- Original Message ----- 
From: "Mon Chan" <mon (at mark) cyberec.com>
To: <coba-e (at mark) bluequartz.org>
Sent: Tuesday, July 24, 2007 8:27 PM
Subject: [coba-e:10434] Dovecot Authentication failure


> Hi blue
>
> Any update for the Dovecot  Authentication failure problem?
> Yesterday my blueq too many ftp login connection (succeed)
> FTP server is going down later many ftp login,
> I check the log, see the dovecot err in same time. I need off the cce and
> run /etc/rc.d/init.d/dbrecover to fix
>
> Any solution for fix?
>
> Thx
>
> Mon
>

Mon

I have this problem on one of my servers. I just set a cron to run the 
script below one a minute


#!/usr/bin/perl
#################################################################
# checks the maillog to see if we need to run dbrecover
#################################################################
$mailprog = '/usr/sbin/sendmail';
$sendto = "someone\ (at mark) something.com";
$problem = "no";
$badipcount = 0;
$serverdomain = "some server";


$count =`tail -300  /var/log/maillog | grep "Disconnected: user=" -c`;

if ($count > 30) {
     $goodlogincount  =`tail -200  /var/log/maillog | grep "Login: user=" -c 
`;
     if ( $goodlogincount < 1) {
       print "No good logins\n";
       system  (" /etc/rc.d/init.d/dbrecover start");
       $problem = "yes";

         open (MAIL, "|$mailprog -t") || &safe_die("Can't open 
$mailprog!\n");
         print MAIL "From: $sendto\n";
         print MAIL "Reply-To: $sendto\n";
         print MAIL "To: $sendto\n";
         print MAIL "Subject:  I ran the dbrecover on $serverdomain \n\n";

         print MAIL " I ran the dbrecover on $serverdomain \n";

        $logentries  =`tail -200  /var/log/maillog | grep "Login: user=" `;
         print MAIL "The log entries are \n\n $logentries \n";
         close (MAIL);
     }
}





----
Ken Marcus
Ecommerce Web Hosting by
Precision Web Hosting, Inc.
http://www.precisionweb.net