in reply to Re^3: Net::SMTP::SSL ACK!!
in thread Net::SMTP::SSL ACK!!

> But that requires at least IO::Socket::SSL 2.007 and that is well above the version 1.79 that Perl 5.8.8 seems to support. Or at least above the version that I can get CPanel to install.
> So, any hints on how to explicitly tell Net::SMTP 3.03 that it's supposed to tell IO::Socket::SSL 1.79 to start starttls.

I think that if you are still using a system with 5.8.8 then you will probably run into more problems, like missing support for newer TLS versions etc. Apart from that current IO::Socket::SSL should still run with 5.8.8 but you have to install it and probably even newer versions of Net::SSLeay. Trying to enforce use of the very old version 1.79 will not work because it needs features of the newer versions.

I guess your problems are more related to the use of very old and for years unsupported code and you better should upgrade instead of trying to work around all these problems.

Replies are listed 'Best First'.
Re^5: Net::SMTP::SSL ACK!!
by Dandello (Monk) on Feb 03, 2016 at 05:44 UTC

    My home Perl workspace is currently on ActiveState 5.16.3 The production server is using cPanel on VPS - and depending on the OS configuration on the server, cPanel STILL ships with Perl 5.8.8. (And I believe Plesk does the same.) What I'm writing has to work at least adequately on 5.8.8 and up because this code is going into an app that has to run on 5.8.8 and up.

    The version of cPanel that ships with Perl 5.8.8 also ships with a 3rd-party install of Perl 5.14 - but the problem there is that you can't update the installed modules in the 3rd-party install. (Although I may have figured out a way to work around that annoyance - needs some testing, though, and it doesn't help other users using installing the app who are on all sorts of different servers.)

    So Net::SMTPS works for this problem. Hopefully by the time it stops working, cPanel will be shipping with a more current version of Perl.

      depending on the OS configuration on the server, cPanel STILL ships with Perl 5.8.8.

      A cursory read of the cPanel documentation shows that not to be the case. Rather it is bundled with 5.14.4. If you use the vendor perl rather than the cPanel-bundled perl that is your (or your hoster's) choice and you cannot blame cPanel for it.

        The vendor 5.14.4 version does not (as of a couple months ago at least) allow for the upgrade of modules within its lib. (Yes, I know there are ways around this limitation.)

        But that aside, many many hosting services are still using old versions of Perl and are not willing and/or able to upgrade for their clients - many of whom are using the app.

        So, knowing that on cPanel and Plesk, the Perl at the standard shebang may be 5.8.8 and also knowing this app has been packaged with cPanel's added software section in the past and I want this to continue, I'm going to play very nice with cPanel and have this app run with a minimum Perl version of 5.8.8.

        I didn't originate this app, but I'm going to make sure it works.