[Techtalk] perl mail script troubles :o(

Nicole Zimmerman colby at wsu.edu
Wed Jan 2 21:30:03 EST 2002


> Hmmm. I'm not too familiar with Net::SMTP, so I'm going out on a bit of a 
> limb here...

Unfortunately neither am I. 

> Do you have a way of checking what the SMTP return code is when you send 
> your message? I.e., can you find out if you're returned a "250 OK" or a 
> "550 Relaying Denied" or whatnot?

Aha. I turned on debugging in Net::SMTP and found:

Net::SMTP: Net::SMTP(2.15)
Net::SMTP:   Net::Cmd(2.18)
Net::SMTP:     Exporter
Net::SMTP:   IO::Socket::INET
Net::SMTP:     IO::Socket(1.1603)
Net::SMTP:       IO::Handle(1.1505)

Net::SMTP=GLOB(0x8223aa4)<<< 220
************************************************02*****2002*20*0**0***0*00
Net::SMTP=GLOB(0x8223aa4)>>> EHLO script-machine.domain.com
Net::SMTP=GLOB(0x8223aa4)<<< 500 Unrecognized command
Net::SMTP=GLOB(0x8223aa4)>>> HELO script-machine.domain.com
Net::SMTP=GLOB(0x8223aa4)<<< 250 smtp.domain.com Hello
script-machine.domain.com [192.168.xxx.xxx]
Net::SMTP=GLOB(0x852b664)<<< 220 script-machine.domain.com ESMTP Exim
3.12 #1 Wed, 02 Jan 2002 20:16:14 -0800
Net::SMTP=GLOB(0x852b664)>>> EHLO script-machine.domain.com
Net::SMTP=GLOB(0x852b664)<<< 250-script-machine.domain.com Hello
localhost [127.0.0.1]
Net::SMTP=GLOB(0x852b664)<<< 250-SIZE
Net::SMTP=GLOB(0x852b664)<<< 250-PIPELINING
Net::SMTP=GLOB(0x852b664)<<< 250 HELP
Net::SMTP=GLOB(0x852b664)>>> QUIT
Net::SMTP=GLOB(0x852b664)<<< 221 script-machine.domain.com closing
connection
Net::SMTP=GLOB(0x8223aa4)>>> MAIL FROM:<user at script-machine.domain.com>
Net::SMTP=GLOB(0x8223aa4)<<< 250 <user at script-machine.domain.com> is
syntactically correct
Net::SMTP=GLOB(0x8223aa4)>>> RCPT TO:<>
Net::SMTP=GLOB(0x8223aa4)<<< 501 <>: missing or malformed local part
Net::SMTP=GLOB(0x8223aa4)>>> DATA
Net::SMTP=GLOB(0x8223aa4)<<< 503 Valid RCPT TO <recipient> must precede
DATA
Net::SMTP=GLOB(0x8223aa4)>>> From: <user at script-machine.domain.com>
Net::SMTP=GLOB(0x8223aa4)>>> X-Mailer: Mail::Mailer[v1.18]
Net::SMTP[v2.15]
Net::SMTP=GLOB(0x8223aa4)>>> HASH(0x821decc): 
Net::SMTP=GLOB(0x8223aa4)>>> 
Net::SMTP=GLOB(0x8223aa4)>>> Testing!

... and that's it. What is happening to the TO: address? I don't know!
Something is not being passed right between Mail::Mailer and Net::SMTP as
far as I can tell.

Even if I put the To above the From in my Mail::Mailer %headers, the TO
never comes through. 

Doing a little digging now to see what I can fix... 

-nicole




More information about the Techtalk mailing list