Click here to get back home

Net::SMTP - Unknown callback

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Net::SMTP - Unknown callback S P Arif Sahari Wibowo 05-15-2008
Posted by S P Arif Sahari Wibowo on May 15, 2008, 6:45 pm
Please log in for more thread options
Hi!

I am trying to use Net::SMTP to send e-mail from a CGI script in
a hosting environment (not my own server). The server (which I
have control) requires authentication (naturally), and I already
tested that I can use Net::SMTP from other machine (not that
hosting) to connect and send e-mail through that server.

However, when I uploaded my script to the hosting environment,
the connecting effort dies with the error "Unknown callback:
'authname'. (user|auth|language|pass)".

This can be incompatible module, and I can install my own
module, but first I need to find out which module to install. I
already installed the newest libnet (1.22) and Authen::SASL
(2.11), but they did not help.

The perl version is a bit old - 5.008004 - not sure if this have
any effect. BTW I don't have any power to update that.

Any idea what causing this the error? Any suggestion?


Below is the part of the code doing the connect and
authentication:

if($debug) { print STDERR "going to connect to $ssph->\n"; }
my $smtp= Net::SMTP->new
(Host=> $ssph->,
($ssph-> ? (Port=> $ssph->) : ()),
($debug ? (Debug=> 1) : ())
) || die "open SMTP $ssph->: ".$!;
if($debug) { print STDERR "connected to $ssph->, going to auth\n"; }

if($ssph-> and $ssph->) {
$smtp->auth($ssph->, $ssph->) || die "at auth: ".$smtp->message();
}
if($debug) { print STDERR "auth to $ssph-> successful\n"; }


This is the output:

going to connect to rinjani.parokinet.org
Net::SMTP>>> Net::SMTP(2.31)
Net::SMTP>>> Net::Cmd(2.29)
Net::SMTP>>> Exporter(5.58)
Net::SMTP>>> IO::Socket::INET(1.27)
Net::SMTP>>> IO::Socket(1.28)
Net::SMTP>>> IO::Handle(1.24)
Net::SMTP=GLOB(0x88bdfc8)<<< 220 rinjani.parokinet.org ESMTP Postfix
Net::SMTP=GLOB(0x88bdfc8)>>> EHLO localhost.localdomain
Net::SMTP=GLOB(0x88bdfc8)<<< 250-rinjani.parokinet.org
Net::SMTP=GLOB(0x88bdfc8)<<< 250-PIPELINING
Net::SMTP=GLOB(0x88bdfc8)<<< 250-SIZE 10240000
Net::SMTP=GLOB(0x88bdfc8)<<< 250-VRFY
Net::SMTP=GLOB(0x88bdfc8)<<< 250-ETRN
Net::SMTP=GLOB(0x88bdfc8)<<< 250-AUTH PLAIN LOGIN
Net::SMTP=GLOB(0x88bdfc8)<<< 250-AUTH=PLAIN LOGIN
Net::SMTP=GLOB(0x88bdfc8)<<< 250 8BITMIME
connected to rinjani.parokinet.org, going to auth

(then die with "Unknown callback: 'authname'. (user|auth|language|pass)")


Thanks!

--
(stephan paul) Arif Sahari Wibowo
_____ _____ _____ _____
/____ /____/ /____/ /____
_____/ / / / _____/ http://www.arifsaha.com/

Posted by =?ISO-2022-JP?B?GyRCJEskNyRgJG on May 28, 2008, 7:57 pm
Please log in for more thread options
I met same problem on SUSE Linux 10.1 last week.

Net::SMTP::SSL=GLOB(0x84d7d84)<<< 250-SIZE 28311552
Net::SMTP::SSL=GLOB(0x84d7d84)<<< 250-8BITMIME
Net::SMTP::SSL=GLOB(0x84d7d84)<<< 250-AUTH LOGIN PLAIN
Net::SMTP::SSL=GLOB(0x84d7d84)<<< 250 ENHANCEDSTATUSCODES
Unknown callback: 'authname'. (user|auth|language|pass)

My perl script run normally on windows vista.

I installed Authen::SASL 2.10 by CPAN on SUSE Linux 10.1.

But my server already be installed perl-Authen-SASL-2.09-11.i586.rpm.
Maybe confuse and perl used old version.

So, I uninstalled this package. Then resolved it.
I don't know workaround on hosting server.
but maybe refer to incorrect Authen::SASL module.

-- Yasuo NISHIMURA(PBC00756@gmail.com)

Similar ThreadsPosted
OLE- LDAP - uSNChanged - Returns Unknown OLE Object July 21, 2004, 1:35 pm
Callback from threaded c-library February 21, 2005, 3:18 pm
LWP::Parallel callback question January 28, 2006, 12:43 am
Subclassing 'Math::BigFloat' gives 'Unknown round mode' error July 9, 2004, 4:54 pm
SMTP::new() October 11, 2005, 2:36 am
Net::SMTP July 25, 2006, 8:44 am
net smtp help October 24, 2006, 4:02 pm
Net::Telnet and SMTP June 13, 2005, 11:01 am
Question on NET::SMTP new() October 11, 2005, 2:32 am
SMTP: "to" or/and "recipient" question. November 11, 2005, 8:52 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap