I`ve found some error in code of Server. In function working with POP3Client for @gmail.com server need add string PORT => 995, my $pop = new Mail::POP3Client( USER => $user, PASSWORD => $pass, HOST => "pop.gmail.com", PORT => 995, USESSL => 'true', );