Networking Forums

Networking Forums > Computer Networking > Windows Networking > Routing multiple domains to 1 mail server

Reply
Thread Tools Display Modes

Routing multiple domains to 1 mail server

 
 
Yannis
Guest
Posts: n/a

 
      09-21-2008, 12:28 PM
Hello!

I have the following situation:

Currently i have 1 mail server (mdaemon) handling e-mails for mydomain1.com
through a dedicated leased line with 1 real static ip
address.So actually i'm port forwarding port tcp 25 to internal address of
MDaemon.Until now everythinh is ok...

Now, I want to add a second domain which will be handled also by the same
machine on MDaemon(it supports this) let's say mydomain2.com
The e-mails from this domain will be handled by another dedicated leased
line also with 1 real sttic ip address port forward etc.

Now i'm a bit confused about this.How i will setup the mailserver to handle
2 different lines that mail will come from.As i know i can put just 1 default
gateway to the machine so all traffic will be routed to 1 direction only.

Do I need to put 2 nics on the server with diffrent subnets on each one?

Thank you for any answers
John
 
Reply With Quote
 
 
 
 
Mathieu CHATEAU
Guest
Posts: n/a

 
      09-21-2008, 12:48 PM
Hello,

the only way would be to hide the real internet ip of the outside peer,
replacing it by the router ip itself.
So for the mdaemon, the smtp server is routerA IP or router B, anyway
what is the real SMTP server coming from the internet.

your router may not accept this type of NAT. And this will always hide
the true IP of the smtp peer, so RBL,sender id, and all others plugins
that use the ip won't work anymore.

Why having one dedicated line per domain and note one bigger ? If QOS is
in play, use a real QOS solution (packetshaper..), to prevent one flow
to take the whole bandwith..

You can have 2 network card, but the system can only have one default route.

Cordialement,
Mathieu CHATEAU
french blog: http://www.lotp.fr
english blog: http://lordoftheping.blogspot.com


Yannis a écrit :
> Hello!
>
> I have the following situation:
>
> Currently i have 1 mail server (mdaemon) handling e-mails for mydomain1.com
> through a dedicated leased line with 1 real static ip
> address.So actually i'm port forwarding port tcp 25 to internal address of
> MDaemon.Until now everythinh is ok...
>
> Now, I want to add a second domain which will be handled also by the same
> machine on MDaemon(it supports this) let's say mydomain2.com
> The e-mails from this domain will be handled by another dedicated leased
> line also with 1 real sttic ip address port forward etc.
>
> Now i'm a bit confused about this.How i will setup the mailserver to handle
> 2 different lines that mail will come from.As i know i can put just 1 default
> gateway to the machine so all traffic will be routed to 1 direction only.
>
> Do I need to put 2 nics on the server with diffrent subnets on each one?
>
> Thank you for any answers
> John

 
Reply With Quote
 
Yannis
Guest
Posts: n/a

 
      09-21-2008, 01:20 PM
Thank you for your quick answer!

As i see i cannot achieve this with 2 different lines right? excecpt if i
have 2 different servers...

The problem is the following..my company when i started working there had
already this mail server installed by the previous technician.The thing is
that he had registered them a bad domain name.Let's say company is named
"trade",the domain is called now : trade.ispname.com So now they want to
change this naming it trade.com.So i thought better way to do this is to
register domain trade.com buy another dsl line with static ip and point mx
records of trade.com to this ip and put this domain on mdaemon as secondary
so for a period they will receive mail from both domains until that first
trade.ispname.com goes off.

Another option that i think now is putting new domain trade.com to external
hosting
(not on internal mail server) and users retrieve emails externally through
pop3.


 
Reply With Quote
 
Phillip Windell
Guest
Posts: n/a

 
      09-22-2008, 01:31 PM
"Yannis" <(E-Mail Removed)> wrote in message
news:21F13F11-BE52-4F90-9E2B-(E-Mail Removed)...
i'm a bit confused about this.How i will setup the mailserver to handle
> 2 different lines that mail will come from.As i know i can put just 1
> default
> gateway to the machine so all traffic will be routed to 1 direction only.


That is simple.
Each mail domain has its own MX Record in DNS (at the authoritative ISP).
Each MX records points to the *same* location
Configure MDaemon to handle both Domains.

--
Phillip Windell
www.wandtv.com

The views expressed, are my own and not those of my employer, or Microsoft,
or anyone else associated with me, including my cats.
-----------------------------------------------------


 
Reply With Quote
 
Yannis
Guest
Posts: n/a

 
      09-22-2008, 07:20 PM


ISP A
<--------- MX A
DOMAIN A
|----------|ROUTER A|
-----------------
| |-------|SWITCH|------|MAIL
SERVER|
<---------------------|ROUTER B|
------------------
ISP B MX B
DOMAIN B

I want to handle 2 lines to 1 server...how can i achieve this?
 
Reply With Quote
 
Phillip Windell
Guest
Posts: n/a

 
      09-22-2008, 07:46 PM
I'm not going to say it can't be done,...but I am going to say it is such a
bad idea that it shouldn't be done. I,... myself,...I'm just not even going
to go there,..I'm not getting paid enough to put up with the agony,..hmm,
actually I'm not getting paid for this at all. The way I described in the
last post is the best way to go about it.


--
Phillip Windell
www.wandtv.com

The views expressed, are my own and not those of my employer, or Microsoft,
or anyone else associated with me, including my cats.
-----------------------------------------------------

"Yannis" <(E-Mail Removed)> wrote in message
news:678F0515-1270-4467-A1A7-(E-Mail Removed)...
>
>
> ISP A
> <--------- MX A
> DOMAIN A
> |----------|ROUTER A|
> -----------------
> | |-------|SWITCH|------|MAIL
> SERVER|
> <---------------------|ROUTER B|
> ------------------
> ISP B MX B
> DOMAIN B
>
> I want to handle 2 lines to 1 server...how can i achieve this?



 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
One web server, multiple domains sb5309@yahoo.com Linux Networking 10 10-30-2008 08:46 AM
Multiple Domains One Server JJ Windows Networking 3 04-15-2008 04:37 PM
Multiple domains on 1 server? Steven Cooke Windows Networking 2 09-15-2004 07:45 PM
opening firewall ports on multiple IP mail server Dana Netz Windows Networking 8 08-10-2004 02:34 PM
Multiple Mail/HTTP Server in DMZ David Meier Linux Networking 7 07-20-2003 04:29 PM



1 2 3 4 5 6 7 8 9 10 11