Yesterday June 6, 2023 the module returns a login message "bad username or password error". We check for POP email every 10 minutes.
I'm not the IT person and I don't have admin privileges for our Outlook configuration.
Today we are getting a new problem where the connection variable $conn cannot create a new POP3 server.
I already read some Microsoft documents and it looks like I'm using the right protocols. We do not use SSL. From a POP3 perspective, what am I missing here?
Perl modules and code:
How I connect:
$conn = Net::POP3->new($popserver, Timeout=>480, Port=>995,
Debug=>1);
$msg=$conn->message; # This gets the last message from the server.
This is where $conn is set to undefined and $msg=$conn->message doesn't even work at all. It takes 2.33 minutes to create the $conn Net::POP3 object above.
$msg=$conn=>message;
but $conn is now undefined so that doesn't work.Debug messages from Net::POP3.
Net::POP3>>> Net::POP3(3.15)
Net::POP3>>> Net::Cmd(3.15)
Net::POP3>>> Exporter(5.72)
Net::POP3>>> IO::Socket::IP(0.41)
Net::POP3>>> IO::Socket(1.51)
Net::POP3>>> IO::Handle(1.51)
Net::POP3: Net::Cmd::getline(): **unexpected EOF on command** channel: at /home/chuck/perl/gilson/dataserv/dataserv.pl line 5944.
at /usr/local/share/perl/5.26.1/Net/Cmd.pm line 257.
Net::Cmd::_set_status_closed(Net::POP3=GLOB(0x557a2504dc38), "") called at /usr/local/share/perl/5.26.1/Net/Cmd.pm line 349
Net::Cmd::getline(Net::POP3=GLOB(0x557a2504dc38)) called at /usr/local/share/perl/5.26.1/Net/POP3.pm line 404
Net::POP3::response(Net::POP3=GLOB(0x557a2504dc38)) called at /usr/local/share/perl/5.26.1/Net/POP3.pm line 101
Net::POP3::new("Net::POP3", "outlook.office365.com", "Timeout", 480, "Port", 995, "Debug", 1) called at /home/chuck/perl/gilson/dataserv/dataserv.pl line 5944
Thank you for any help!
EDIT: I turned off TLS and started using SSL and now I get "unknown user name or password" error.
Edit 6/14/23: It does look like it's a problem on Microsoft's end. There are a bunch of links talking about MS getting rid of "basic auth" which includes POP3, IMAP, and possibly SMTP servers. There's not much more that is clear to me.
The links I've found are:
I hope this helps someone else.
It's unlikely that it's a Perl problem.
Mail hosting facilities have recently begun discouraging corporate and government sites from the use of POP3, and moving towards IMAP. My e-mail client (thunderbird)'s POP3 stopped working with 365 at my workplace. Shortly thereafter, Thunderbird under POP3 started failing with my home (non-Microsoft) email as well. In both cases I had to move to IMAP.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With