A
Andres Monroy-Hernandez
Hello,
I have a script that uses Mail::Sendmail, this script works just fine
in 4 different boxes (RedHat and Solaris).
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 (e-mail address removed)
testing
..
</snipet>
As far as I know, mail tries to send emails via the localhost SMTP
just as Mail::Sendmail does.
I also tried changing the host name in Mail::Sendmail from localhost
to the server's IP and host name, but it didn't work either.
Any comments are appreciated.
-Andrés
I have a script that uses Mail::Sendmail, this script works just fine
in 4 different boxes (RedHat and Solaris).
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 (e-mail address removed)
testing
..
</snipet>
As far as I know, mail tries to send emails via the localhost SMTP
just as Mail::Sendmail does.
I also tried changing the host name in Mail::Sendmail from localhost
to the server's IP and host name, but it didn't work either.
Any comments are appreciated.
-Andrés