Re: CPAN::Reporter and SMTP-server
by bingos (Vicar) on Dec 17, 2006 at 16:45 UTC
|
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.
| [reply] |
|
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...
| [reply] |
|
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.
| [reply] |
|
| [reply] |
|
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. | [reply] [d/l] |
Re: CPAN::Reporter and SMTP-server
by xdg (Monsignor) on Dec 18, 2006 at 01:47 UTC
|
I know that this part of using CPAN::Reporter is frustrating and I appreciate the patience and effort people put in to trying to make it work.
There has been some very loose discussion among the Test::Reporter maintainer(s), the perl.org admins, chorny and me of switching to HTTP for submitting reports. I believe chorny has an alpha patch for Test::Reporter for HTTP submission, but doesn't have a gateway to get it into the CPAN Testers inbox. So it's a work in progress.
Note -- This would be an excellent project for a Perl Hackathon somewhere.
In the meantime, if someone would like to provide an example of configuring a local relay, I'd be happy to add the instructions for it to the CPAN::Reporter FAQ.
-xdg
Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.
| [reply] |
Re: CPAN::Reporter and SMTP-server
by socketdave (Curate) on Dec 17, 2006 at 16:39 UTC
|
This modules sends directly to perl.org by default. Have you tried not setting a mail server at all? | [reply] |
|
sure, that's what i find in my log:
refused: Dynamic IP Addresses See: 451 http://www.sorbs.net/lookup.shtml?ip
that's what i get if i don't use a mailserver:
Dec 16 12:53:04 my-computers-hostname postfix/smtp[32033]: 231904AAE8: to=<cpan-testers@perl.org>, relay=mx.develooper.com[63.251.223.176], delay=432669, status=deferred (host mx.develooper.com[63.251.223.176] said: 450 Could not resolve my-computers-hostname.local (in reply to MAIL FROM command))
| [reply] [d/l] [select] |
|
That second message (which you get if you don't use a mailserver) probably means that whatever module is sending mail is sending the message from you@my-computers-hostname.local. If you could fix that, maybe it would send; see which module it's using (somebody suggested two elsewhere in this thread), and see how the mail domain is configured. My first guess would be that it's in /etc/hosts.
Good luck!
| [reply] [d/l] [select] |
|
Re: CPAN::Reporter and SMTP-server
by hesco (Deacon) on Dec 18, 2006 at 20:02 UTC
|
| [reply] |
Re: CPAN::Reporter and SMTP-server
by Scott7477 (Chaplain) on Dec 18, 2006 at 17:01 UTC
|
| [reply] |
|
Both use Test::Reporter to send test reports, so this is a little surprising. Can you tell what differs between the two? What errors are you getting from CPAN::Reporter?
Even something as minor as what return email address is used could be affecting this. (One person found that their ISP was rejecting email when the "From" line didn't match the ISP's account for them.)
-xdg
Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.
| [reply] |