Wise Monks, here is a POP3 mystery.

I can use the following code snippet to get POP mail from other servers, but not from the one this code runs on. I have used several versions of the user name, including using the full domain name. The debug output at the end seems to show that the login fails on the password. I have turned on and off dovecot, no effect. Evolution works as does the mail command, but not Net::POP3. This is on Fedora Core 4, with a one week old yum update. I have also used the POP3 apop() method, no effect. I've searched in PM and pickings are thin on Net::POP3. The MTA is sendmail.
Your advice would be most appreciated!

David Drake
#!/usr/bin/perl -w use strict; # File readpop.pl # David Drake use Net::POP3; use Mail::Header; use FileHandle; use Net::SMTP; #to send mail use Time::Local; # for seconds from 1/1/1970 usage # Here we create the pop object and attempt to login my $pop = Net::POP3->new('goodhost.com', Timeout => 10, Debug =>1) or +die "Cant connect to host: $!\n"; #we have connected successuflly my $muser = 'goodname'; my $passwd='goodpass'; $pop->login($muser,$passwd) or die "No Login ",$pop->message; #The above generates the login error die "Success\n"; ************************************************** Here is the output, from the POP3 debug # ./readpop.pl Net::POP3>>> Net::POP3(2.28) Net::POP3>>> Net::Cmd(2.26) Net::POP3>>> Exporter(5.58) Net::POP3>>> IO::Socket::INET(1.27) Net::POP3>>> IO::Socket(1.28) Net::POP3>>> IO::Handle(1.24) Net::POP3=GLOB(0x9ef7988)<<< +OK Hello there. Net::POP3=GLOB(0x9ef7988)>>> USER goodname Net::POP3=GLOB(0x9ef7988)<<< +OK Password required. Net::POP3=GLOB(0x9ef7988)>>> PASS .... Net::POP3=GLOB(0x9ef7988)<<< -ERR Login failed. No Login Login failed.

In reply to Net::POP3 has login failure by diskcrash

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.