[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

2 web servers and 1 domain

Posted on 2006-06-01
7
Medium Priority
?
204 Views
Last Modified: 2010-05-18
Hello,
    I have my website running on a Linux box with Apache and PHP.   My email server is running on an NT 4.0 server.  Email software has webmail, web server to serve webmail

I downloaded several freeware php programs to use as webmail.  I installed them on the Linux box so it can serve the php webmail pages and have them access my NT 4.0 email server (Using POP).  It fetches the mail fine, the problem is, I can't send using SMTP and PHP.   When I go to my NT box, it has winsock errors using SMTP, but I can use any (LINUX or Windows) client mail software to send emails and that works great, just not with PHP.

My question is:  My email server software on the NT 4.0 has webmail built into it.  The webmail on it works great.   How do I set it up (If possible) so that when a request comes in IE www.mydomain.com/mail   it directs it to my NT 4.0 box. Do I need to setup my router for this?   Is this even possible.

Bascially my Linux box handles everything dealing with web related stuff except my webmail.
0
Comment
Question by:strongd
6 Comments
 
LVL 51

Expert Comment

by:ahoffmann
ID: 16810226
a bit confusing your description ...
Is your problem that webmail on NT is not able to send mails?

I.g. Linux comes with countless good MTA, while NT has none (except you install one). Why do you want to use NT as MTA and not Linux?
0
 

Author Comment

by:strongd
ID: 16810782
No, the webmail on Linux is not able to send email using SMTP through NT.  I am using 602LanSuite as my email server on NT.

The reason I didn't go fully to Linux to run everything is:  I was running out of time.   I had all my servers in my garage and summer was fast approaching.  Because I lack the expertise in Linux, I went ahead and used NT as my email server.   My garage by the middle of May was 95 degree... to warm to run my servers.   Now I shutdown my server in the garage because of the heat, and used my old laptop (NT server - email server) and an old Pentuim 1 - 166mhz running DSL (Damn Small Linux) to work as my webserver.

Because I have not gotten PHP webmail programs to send email through my email server, I want to know if there was a way to have to have my router port forward all request that have my www.mydomain.com/mail  URL that come in to my NT server so I can use webmail built into the email server software.

Now, I have installed PostFix on my Linux box, but haven't had the time to configure it.  I am almost positive that the PHP webmail programs I have, will be able to send mail through postfix once I have it configured.

But until then, I need my webmail.   I was hoping someone else had done something simular.   But I think this is at the router end.  
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 16811219
> ..  all request that have my www.mydomain.com/mail 
if this is an apache, then use mod_rewrite or mod_proxy

> But I think this is at the router end.  
a router works on network level (2, 3), a URL is on application leven (7) which is unknown to a router.
0
Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

 
LVL 33

Expert Comment

by:shalomc
ID: 16835223
You can map mail.mydomain.com to your IP address, and NAT to your webmail machine.

ShalomC
0
 

Author Comment

by:strongd
ID: 16912720
I don't think there is an actual way to get this to work the way I want.  

I will have to live with my PHP webmail for receiving only.   Thanks anyways for the help.


0
 
LVL 5

Accepted Solution

by:
Netminder earned 0 total points
ID: 17169678
PAQed with points refunded (125)

Netminder
Site Admin
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

One of the typical problems I have experienced is when you have to move a web server from one hosting site to another. You normally prepare all on the new host, transfer the site, change DNS and cross your fingers hoping all will be ok on new server…
When it comes to security, close monitoring is a must. According to WhiteHat Security annual report, a substantial number of all web applications are vulnerable always. Monitis offers a new product - fully-featured Website security monitoring and pr…
Loops Section Overview
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…

826 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question