linux - Hit sasl_decode error while sending mail through sendmail server -


having installed sendmail , openwebmail on rhel workstation 6.3, can send email through webmail(cgi-bin/openwebmail/openwebmail.pl), failed interact sendmail server in perl script following:

use net::smtp;  $smtpserver = 'mail.server.com'; $smtpport = 25; $smtpuser   = 'test'; $smtppassword = 'test'; $smtp = net::smtp->new($smtpserver, port=>$smtpport, timeout => 10, debug => 1); die "could not connect server!\n" unless $smtp; $smtp->auth($smtpuser, $smtppassword); $smtp->mail("ann"); $smtp->to("hello\@world.com"); $smtp->data(); $smtp->datasend("to: hello\@world.com\n"); $smtp->quit; 

while running perl script on windows 7, output below:

net::smtp>>> net::smtp(2.31) net::smtp>>>   net::cmd(2.29) net::smtp>>>     exporter(5.64_01) net::smtp>>>   io::socket::inet(1.31) net::smtp>>>     io::socket(1.31) net::smtp>>>       io::handle(1.28) net::smtp=glob(0x2be1e80)<<< 220 mail.server.com esmtp sendmail 8.14.4/8.14.4 ; fri, 11 apr 2014 19:48:30 +0800 net::smtp=glob(0x2be1e80)>>> ehlo localhost.localdomain net::smtp=glob(0x2be1e80)<<< 250-mail.server.com hello [9.110.10.236], please d meet net::smtp=glob(0x2be1e80)<<< 250-enhancedstatuscodes net::smtp=glob(0x2be1e80)<<< 250-pipelining net::smtp=glob(0x2be1e80)<<< 250-8bitmime net::smtp=glob(0x2be1e80)<<< 250-size net::smtp=glob(0x2be1e80)<<< 250-dsn net::smtp=glob(0x2be1e80)<<< 250-etrn net::smtp=glob(0x2be1e80)<<< 250-auth digest-md5 plain net::smtp=glob(0x2be1e80)<<< 250-deliverby net::smtp=glob(0x2be1e80)<<< 250 net::smtp=glob(0x2be1e80)>>> auth digest-md5 net::smtp=glob(0x2be1e80)<<< 334 bm9u... 3vnv5vxb6mlbjehy5tve9iixyzwfsbt0iahv... net::smtp=glob(0x2be1e80)>>> yxv0a... net::smtp=glob(0x2be1e80)<<< 334 cnnwyxv0axodvhoa== net::smtp=glob(0x2be1e80)>>> net::smtp=glob(0x2be1e80)<<< 235 2.0.0 ok authenticated net::smtp=glob(0x2be1e80)>>> mail from:<hello> net::smtp: unexpected eof on command channel @ e:\tool\smtp.pl line 35 

it showed client got authenticated didn't received data after invoking "$smtp->mail()", seems server closed connection @ point.

on server side, there error messages written /var/log/maillog:

apr 11 19:48:30 bill sendmail[16761]: auth=server, relay=[9.110.10.6], authid=test, mech=digest-md5, bits=128 apr 11 19:48:30 bill sendmail[16761]: auth: sasl_decode error=-1 apr 11 19:48:30 bill sendmail[16761]: s3bbmuqj016761: [9.110.10.236] did not issue mail/expn/vrfy/etrn    during connection mta 

maillog showed authentication method digest-md5, it's failed invoke sasl_decode.

anyone can give clue problem? lot.

ps: sendmail.mc pasted @ github

here made guess old versions bugs. please check cpan rt

https://rt.cpan.org/public/bug/display.html?id=58002


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -