OK this is not another Perl and Apache installation or config problem. Everything works fine, to a point. Here is where the problem is;
Everything used to be fine when we had one server hosting websites and being a mail server. Now we got 2 servers. One to host the sites, the other one just for mail. When we had one server doing everything the perl scrips would execute the forms and email them to me when the person would fill them out online.
NOW, My Apache hosts the websites no problem on "server1". I installed Perl on "server1" as well to run my scripts and forms. The forms execute great, no errors, no problems. My mail server "server2" is on a different server then my website server and the mail server works well, I send and receive emails no problem. So we have 2 servers doing two different things. The problem is that I dont get the forms mailed to me now.
I think this is because the webserver "server1" is trying to use itself to send the email but it needs to use the mailserver "server2" to send the mail out. This was not a problem before because the mail and web servers was one machine and now its two different machines.
I am sure there is a configuration for this somewhere but where? This has to do something with "server1" the web/perl machine but what config files do I need to look at? Is it the Apache config, the perl config, the mail(not used) config?