Subject: | Cygwin: CPANPLUS cannot send test reports but Test::Reporters cpantest utility can |
I get the following error for sending a report from within cpanp shell:
[MSG] DEFAULT 'munge_test_report' HANDLER RETURNING 'sub return value'
[ERROR] Could not send 'pass' report for 'MailTools-1.67': Test::Reporter: Unable to send test report
at /usr/lib/perl5/site_perl/5.8/CPANPLUS/Dist/MM.pm line 577
[ERROR] Failed to send test report for 'Mail::Send' at /usr/lib/perl5/site_perl/5.8/CPANPLUS/Module.pm line 585
Yet the Test::Reporter 1.27 cpantest tool works fine, and the native Win32 CPANPLUS is able to send reports, so I'm pretty sure it's not a firewall issue.
CPANPLUS used to work. This seems to have happened suddenly. My guess is that some prereq that CPANPLUS uses but cpantest does not use interferes with it. It would be nice if there were better diagnostic messages or an option to pass a debug flag to the mailer.
From checking netstat, it seems to be trying to send mail using my cpan mirror as a relay. By hacking Test::Reporter to make debug flag true by default, I have confirmed this:
Show quoted text
> Net::SMTP=GLOB(0x134bc930)<<< 220 saigo.etla.org ESMTP ...
I'm not sure if the problem is Net::SMTP or not. Sometimes it sends to the correct mail server, sometimes not. This may be a bug in Net::SMP since it seems to be getting the correct paramters.