2 web servers and 1 domain

Posted on 2006-06-01
Last Modified: 2010-05-18
    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   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.
Question by:strongd
    LVL 51

    Expert Comment

    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?

    Author Comment

    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  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.  
    LVL 51

    Expert Comment

    > ..  all request that have my  
    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.
    LVL 32

    Expert Comment

    You can map to your IP address, and NAT to your webmail machine.


    Author Comment

    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.

    LVL 5

    Accepted Solution

    PAQed with points refunded (125)

    Site Admin

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    A web service ( is a software related technology that facilitates machine-to-machine interaction over a network. This article helps beginners in creating and consuming a web service using the ColdFusion Ma…
    In our day to day coding, how many times have we come across a necessity to check whether a URL is a broken link or not? For those of you that answered countless and are using ColdFusion like myself, then this article is for you.  It will show yo…
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    761 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

    Need Help in Real-Time?

    Connect with top rated Experts

    9 Experts available now in Live!

    Get 1:1 Help Now