in reply to Re: IO::Socket::SSL: connect: Connection refused
in thread IO::Socket::SSL: connect: Connection refused

Thanks for your response. I have figured out the the issue. The server that I was running the script was in a data center and they had a firewall in place to prevent outgoing traffic to imap port 993. Once the firewall rule was updated to allow traffic all seem to be working fine.
  • Comment on Re^2: IO::Socket::SSL: connect: Connection refused