LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-02-2008, 04:36 PM   #1
dskv
LQ Newbie
 
Registered: Apr 2008
Posts: 3

Rep: Reputation: 0
Question Perl/Web (www) server needs to use mail server for sending forms.


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?
 
Old 04-03-2008, 11:09 AM   #2
datopdog
Member
 
Registered: Feb 2008
Location: JHB South Africa
Distribution: Centos, Kubuntu, Cross LFS, OpenSolaris
Posts: 806

Rep: Reputation: 41
This has nothing to do with the apache/perl config. What you should be looking at the the actual code of the websites that are sending the mail and see how the sending part is implemented.

If it points to an smtp server then you can just modify the code to point to your mail server, if the sending is being done using the sendmail command you need to setup a light server to actually deliver these messages to your mail server.
 
Old 04-07-2008, 02:27 PM   #3
dskv
LQ Newbie
 
Registered: Apr 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Thumbs up

Quote:
Originally Posted by datopdog View Post
This has nothing to do with the apache/perl config. What you should be looking at the the actual code of the websites that are sending the mail and see how the sending part is implemented.

If it points to an smtp server then you can just modify the code to point to your mail server, if the sending is being done using the sendmail command you need to setup a light server to actually deliver these messages to your mail server.
Yes we have the sendmail command. How do I set up a light server to actually deliver these messages to my mail server? I never heard of a light mail server. Any place I can look that up on how to do that?
 
Old 04-08-2008, 02:37 AM   #4
datopdog
Member
 
Registered: Feb 2008
Location: JHB South Africa
Distribution: Centos, Kubuntu, Cross LFS, OpenSolaris
Posts: 806

Rep: Reputation: 41
By Light i mean the MTA will only deliver mail submitted by that host, it will not accept any connections from the network.

Usually out of the box sendmail is capable of doing this, you may just need to configure masquerading if you don't want the host part in the email address.
 
Old 04-08-2008, 12:34 PM   #5
dskv
LQ Newbie
 
Registered: Apr 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Thumbs up Fixed


OK, like always it was a simple problem. As most IT Techs will tell you. "Have you tried turning it OFF and ON."
Not that easy but close. Even though I was using sendmail with my cgi I didnt have sendmail installed on the website host server. A simple 'sudo apt-get install sendmail' and the problem was fixed.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How the DNS-server is connected to work of a web-server and a mail-server? ukrainet Linux - Newbie 2 01-10-2005 09:18 PM
can we configure a Linux server with mail server,file server and web server kumarx Linux - Newbie 5 09-09-2004 06:21 AM
setting up password protected web forms on an apache web server AZDAVE Linux - Security 3 07-07-2004 12:03 PM
dns and web server without www in address bbqdude Linux - Networking 8 02-05-2004 08:40 PM
Setup a linux server, DNS, WEB, FTP, and Mail Server Help watermelon_lee Linux - Networking 1 08-26-2003 03:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:46 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration