Discussion Locked

Redhat 7.0 problems with Perl Net::SMTP

0 helpful
7 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I have a cgi application that works on one redhat machine (7.0 workstation) but fails on the other (7.0 enterprise).

What fails is the code:
$smtp = Net::SMTP->new('smtp.csulb.edu',Debug=>1) || print "$!";

results in "Operation in progress".It never completes.

I can do "telnet smtp.csulb.edu 25" just fine, so the smtp server is reachable. Sendmail also works just fine. I am stumped.

7 replies

by feacosta

Its sounds like you don't have the perl Module NET:SMTP installed on your 7.0 Enterprise system.

go to this site: search.cpan.org and search for NET::SMTP. download tar'd package and install it.

by wziemer

If Net::SMTP was not installed the error message would be in the compilation stage. The $! returning "Operation in progress" is further evidence that the module is installed.

by wziemer

I have asked around, and there are other people running Redhat 7.x with the exact same problem. The only fix that seems to work is to switch distributions (Debian seems to be the favorite).
I don't have that option, unfortunately.

by maxwell edison

Usually the Operation in Progress error is caused by the following factors:

Incorrect directory address setting in main SPOOL directory.

Incorrect directory for the virtual domain SPOOL directory.

The default SMTP service is running.Incorrect permissions for the services running.

Using DHCP instead of STATIC IP address.

DNS IP address is not specified or not valid on the mailsite host machine.

Make sure that item 4 services are running with system permissions.

maxwell

This discussion is closed to new replies.