Could use some help. I am utterly stuck, been trying to fix this one for a whole week. I have a perl script that acts as an email server. After it sets up 1,020 SSL Sockets, it starts failing every time when for every socket before that works fine. Any suggestions? Why is it saying bad hostname?
The error I get is
Setting up user 1014...DONE!
Setting up user 1015...DONE!
Setting up user 1016...DONE!
Setting up user 1017...DONE!
Setting up user 1018...DONE!
Setting up user 1019...DONE!
Setting up user 1020...ERROR: new_imap: socket(): IO::Socket::SSL: Bad hostname 'imap.gmail.com'
Try 2: ERROR: new_imap: socket(): IO::Socket::SSL: Bad hostname 'imap.gmail.com'
If I turn on DEBUG in IO::Socket::SSL, it spits out a bunch of numbers along with this,
SSL.pm:1201: IO::Socket::INET configuration failederror:00000000:lib(0):func(0):reason(0)