>> On 27 Jun 2003 16:52:32 -0700,
>> email@example.com (Andres Monroy-Hernandez) said:
> Hello, I have a script that uses Mail::Sendmail, this
> script works just fine in 4 different boxes (RedHat and
> Nevertheless, there is this Solaris machine where it
> doesn't work, and this is the error I get in the
> $Mail::Sendmail::error variable:
> connect to localhost failed (Connection refused)
> The thing that puzzles me, is that in the same machine,
> the mail command works just fine.
> <snipet> 39 sfx@et2:ver_2> mail firstname.lastname@example.org
> testing . </snipet>
This just requires a locally installed sendmail (or some
other MTA like postfix) into which mail/mailx can inject
the message. It doesn't require an SMTP service.
I'd wager there's an SMTP server running on all the other
machines (probably sendmail -bd) but not on this one, or
the other boxes are configured as clients to a local mail
hub, and this one isn't.
(If so, we've wandered out of perl territory. You
probably want to take a step back and re-think your local
mail setup first.)