General discussion

Locked

Redhat 7.0 problems with Perl Net::SMTP

By wziemer ·
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.

This conversation is currently closed to new comments.

7 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Redhat 7.0 problems with Perl Net::SMTP

by feacosta In reply to Redhat 7.0 problems with ...

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.

Collapse -

Redhat 7.0 problems with Perl Net::SMTP

by wziemer In reply to Redhat 7.0 problems with ...

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.

Collapse -

Redhat 7.0 problems with Perl Net::SMTP

by wziemer In reply to Redhat 7.0 problems with ...

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.

Collapse -

Redhat 7.0 problems with Perl Net::SMTP

by wziemer In reply to Redhat 7.0 problems with ...

Point value changed by question poster.

Collapse -

Redhat 7.0 problems with Perl Net::SMTP

by maxwell edison In reply to Redhat 7.0 problems with ...

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

Collapse -

Redhat 7.0 problems with Perl Net::SMTP

by wziemer In reply to Redhat 7.0 problems with ...

Thank you very much! I will investigate promptly.

Collapse -

Redhat 7.0 problems with Perl Net::SMTP

by wziemer In reply to Redhat 7.0 problems with ...

This question was closed by the author

Back to Linux Forum
7 total posts (Page 1 of 1)  

Related Discussions

Related Forums