>> On 27 Jun 2003 16:52:32 -0700,
>> firstname.lastname@example.org (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 email@example.com
> 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.)