in reply to CPAN::Reporter and SMTP-server

Hi,

CPAN::Reporter is using Test::Reporter to send the test reports. Test::Reporter in turn uses either Net::SMTP or Mail::Send ( if that is installed ).

AFAIK, Test::Reporter has no way of specifying SMTP credentials, though Net::SMTP does have an auth method to provide SASL authentication.

The best I can suggest is that either try sending test reports directly to the CPAN Testers MX ( which is what Test::Reporter will do if you don't specify an MX ) and see if it works; or, alternatively, configure some sort of SMTP relay locally that will accept reports from CPAN::Reporter/Test::Reporter and forward them to your SMTP gateway with the appropriate authentication.

Replies are listed 'Best First'.
Re^2: CPAN::Reporter and SMTP-server
by tinita (Parson) on Dec 17, 2006 at 18:24 UTC
    try sending test reports directly to the CPAN Testers MX
    sure, i have already tried that.

    configure some sort of SMTP relay locally that will accept reports from CPAN::Reporter/Test::Reporter and forward them to your SMTP gateway with the appropriate authentication.
    i just don't know how... also i think this shouldn't be necessary for cpan-testing.
    the module is great, and i think more people would test if they didn't need to know how to set up a local mailserver for that...
      i just don't know how...
      I have such a system on my machine. If you're interested, then I can show you the scripts tomorrow in the office.

      I've heard rumours that in the future Test::Reporter and CPAN test reporting will be via HTTP, this will mediate that kind of issue

Re^2: CPAN::Reporter and SMTP-server
by Scott7477 (Chaplain) on Mar 16, 2007 at 23:14 UTC
    I have been able to get Test::Reporter to work by hard coding the testers.cpan.org MX record(mx.develooper.com) as follows:
    sub new { my $type = shift; my $class = ref($type) || $type; my $self = { '_mx' => ['mx1.x.perl.org', mx.develooper.com'],
    That is a snippet from near the top of the Test::Reporter module.