Net::SMTP - Unknown callback



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

if($ssph->{user} and $ssph->{pass}) {
$smtp->auth($ssph->{user}, $ssph->{pass}) || die "at auth: ".$smtp->message();
}
if($debug) { print STDERR "auth to $ssph->{host} 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/
.



Relevant Pages

  • Re: IIS Config Help - This is a hard one - Migration from Linux to Win2K
    ... Migrate Apache Settings and Configure IIS in a UNIX-to-Windows ... > I am migrating a website from a Linux server to a Win2k server. ... > to a CGI script. ... > pop-up the binary data in a new browser page. ...
    (microsoft.public.inetserver.iis.security)
  • Re: Ho can I get output of a command in web page?
    ... Do I need to write a cgi script for this, or can a simple SSI be made to work? ... I did think of an automated procedure which was less inclined to error, which was a startup script that wrote the warning about being on the wrong server if it was not the main server. ... I was initially dismissing that as too much work, ... I've not tried the bit to write the data based on the hostname, but the following puts the hostname into an environment variable and prints it. ...
    (uk.net.web.authoring)
  • Re: Concern for storage of payment gateway key
    ... > another server, the passphrase to decrypt the file, and the login access to ... I think your confusion is due to an error in what the CGI script requires. ... The authentication server needs read access to the file ...
    (comp.security.unix)
  • Re: Fork / Disconnect question
    ... My variables are sent via an html forum to a cgi script. ... i need to have the multiple processes initiate within the cgi script ... >> Once the spawn process to the server is complete, ... >> I would like to know if i can use fork and disconnect to start the ...
    (comp.lang.tcl)
  • Re: CGIHTTPServer threading problems
    ... print "XBOX Server started on port %s. ... The browser that requests on the cgi script tends ... I checked multi-threaded cgi ...
    (comp.lang.python)