Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Newbie Mail::Sendmail problems on Windows 1

Status
Not open for further replies.

sloppyhack

Technical User
Apr 17, 2001
111
US
I'm trying to send mail from a machine running W2K Server. I set up the SMTP services on that maching and had the network admin confirm that it's working properly. I get the following error message....

RCPT TO: error (550 5.7.1 Unable to relay for bculler@comcast.net)

when I try to run the following test code....

use Mail::Sendmail;

$mail{smtp} = 'ghx-contperl.corp.myserver.com'; #server running SMTP

$eadd = 'bculler@comcast.net';
$message = "Hello this is a test email";
$subject = "Test";
$from = 'Bryant Culler <bculler@comcast.net>';

%mail = ( To => "$eadd",
From => "$from",
Subject => "$subject",
Message => "$message"
);

sendmail(%mail) or die $Mail::Sendmail::error;

Any ideas?

Cheers,

Sloppyhack
 
Yeah. I've looked there. I'm beginning to think it must be a problem with SMTP setup. I've tried everything.

Cheers,

Sloppyhack
 
Its probably an anti-spam configuration issue. Maybe the mail server requires authentication before relay or maybe it won't accept outbound mail from a domain its not responsible for etc.

I'd move to Net::SMTP, you get MUCH finer grained control over these issues.
 
I had exactly the same problem. I gave up and relayed my mail via another (Linux) box that I already had set up.
Security on the W2K server Exchange is such that it cant be made to relay mail even from its own host. (unless anyone else knows different!)
I agree with the previous poster.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top