SID-01105: Net::SMTP error with new ISP
Status: |
Answered |
TWiki version: |
|
Perl version: |
Perl 5.8.6, mod_perl 1.99_08 |
Category: |
CategoryEmail |
Server OS: |
Windows XP 32-bit |
Last update: |
9 years ago |
Hi all,
I have a Twiki installation that I have been running on a Windows XP machine since 2007 without much problem.
Recently I have changed ISP and with it the POP/SMTP details. I've popped these into my Outlook and everything works. What I cannot get to work is Twiki registrations and mailnotify that use Net::SMTP. The error I get is the following:
ERROR: Can't send mail using Net::SMTP. Can't connect to 'smtp.virginmedia.com:465' at D:/twiki/lib/TWiki/Net.pm line 360.
While the previous ISP was using SMTP on port 25 and without encrytpion, while the new one requires SSL encryption and works on port 465, I suspect this is the reason why it all stopped working.
I've checked the configure page of my Twiki installation for the right server address and username/password. What I can't see is how to "tick" an SSL encryption box (is it supported in the standard build?) and enter port information. I've tried appending :465 to the end of the server address but with no luck.
I'm using Apache 2.0.58, Perl 5.8.6, mod_perl 1.99_08
--
FabioMurra - 2011-02-15
Discussion and Answer
It does not look like
CPAN:Net::SMTP supports encryption. Look into
CPAN:Net::SMTP::SSL and
CPAN:Net::SMTP::TLS. There might be other CPAN modules as well.
--
PeterThoeny - 2011-02-16
Hi,
it took me a while to get these modules installed as I had a few problems with the Perl installation. In the end I had to update the whole of CPAN and then install the modules required from scratch. It looks like they are ok now as I'm running the following without errors:
<code>
use Net::SMTP;
use Net::SMTP::SSL;
use Net::SMTP::TLS;
print "Any errors? Hope not!\n";
</code>
However when I go to the configure page to change the SMTP details the page does not load completely.
To see if there are any errors I went to
LocalLig.cfg and set
<code>
$ENV{TWIKI_ASSERTS} = 1;
</code>
Reloading the page now gives me the following error:
<verbatim>
Use of uninitialized value in lc at D:/twiki/lib/TWiki/Configure/Checkers/CGISetup.pm line 212
</verbatim>
That line of code is:
<code>
$grp = lc(qx(sh -c '( id -un ; id -gn) 2>/dev/null' 2>nul ));
</code>
Weirdly I'm getting similar (as in 'use of uninitisalized value in lc') errors when trying to edit pages and save pages now:
<verbatim>
Use of uninitialized value in lc at D:/twiki/lib/TWiki/UI/Save.pm line 420.
at C:/strawberry/perl/lib/CGI/Carp.pm line 354
CGI::Carp::realdie('Use of uninitialized value in lc at D:/twiki/lib/TWiki/UI/Sav...') called at C:/strawberry/perl/lib/CGI/Carp.pm line 439
CGI::Carp::die('Use of uninitialized value in lc at D:/twiki/lib/TWiki/UI/Sav...') called at D:/twiki/lib/TWiki/UI.pm line 84
TWiki::UI::__ANON__('Use of uninitialized value in lc at D:/twiki/lib/TWiki/UI/Sav...') called at D:/twiki/lib/TWiki/UI/Save.pm line 420
TWiki::UI::Save::save('TWiki=HASH(0x10b29bc)') called at D:/twiki/lib/TWiki/UI.pm line 159
TWiki::UI::__ANON__() called at D:/twiki/lib/CPAN/lib//Error.pm line 379
eval {...} called at D:/twiki/lib/CPAN/lib//Error.pm line 371
Error::subs::try('CODE(0x3e911c)', 'HASH(0x15065bc)') called at D:/twiki/lib/TWiki/UI.pm line 199
TWiki::UI::run('CODE(0x97ee94)', 'save', 1) called
</verbatim>
I appreciate that now I'm diverging a little from the initial topic of this support page, but has anyone got any ideas of what happened?
Many Thanks.
--
FabioMurra - 2011-02-26
I am meeting the same problem with gmail account and I don't know how to install modul Net::smtp::tls so any-one can help me.
Thank you
--
TWikiGuest - 2011-03-25
TWikiGuest did a cross post, orginal post at
SID-01136.
--
PeterThoeny - 2011-03-25
Closing this question after more than 30 days of inactivity. Feel free to reopen if needed. Consider engaging one of the
TWiki consultants if you need timely help. We invite you to
get involved with the community, it is more likely you get community support if you support the open source project!
--
PeterThoeny - 2011-05-02
TWiki does not yet support TLS for e-mail. There is a patch however:
SMTPUseTLS
--
Peter Thoeny - 2014-11-04
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.