Announcement

Collapse
No announcement yet.

Static route and mail delivery (2003)

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Static route and mail delivery (2003)

    Guys,

    Just a quickie for the pros.

    Currently we have a proxy server internally which applies all of our filtering etc. This machine has its default gateway set to our dedicated mail line (the address for the mail gateway is xxx.xxx.xxx.2) and exchange forwards all of its mail using an SMTP Connector through this proxy and then forwards it all out through the dedicated mail line gateway.

    We also have a dedicated internet line, which all other servers (including exchange) have their default gateway set to. (the address is xxx.xxx.xxx.1) Everything works fine, well, sort of.

    I am currently in the process of moving our mail cleanliness service to an external provider and having our mail go directly to and from our exchange 2003 mail server via two SMTP Connectors to two external MXs which then pass on our mail onto the internet. Now, the mail must all pass through (in and out) the xxx.xxx.xxx.2 gateway (along with several other services which i am yet to add) rather than the xxx.xxx.xxx.1 gateway which the exchange server is set to.

    I need the default gateway of exchange to stay as xxx.xxx.xxx.1 but need all SMTP and POP3S traffic to flow to JUST these two MX servers through the xxx.xxx.xxx.2 gateway.

    My understanding of default gateways is that if it is set to xxx.xxx.xxx.1 but a request comes from the xxx.xxx.xxx.2 gateay the machine will ignore it as it has not come from its standard default gateway?

    Is this something i can rectify using static routes? I can't remember the syntax of static routes either, if I'm honest. I will need to perform this action on anther machine at some point too as it will also host particular services via the second gateway to these two IPs/hostnames.

    I should point out that the traffic routing to the xxx.xxx.xxx.2 gateway is PURELY to the two IPs/hostnames for the MX servers.

    Can anyone help? Hope it makes sense.

  • #2
    Re: Static route and mail delivery (2003)

    I'm pretty sure you can just, like you said, create a persistent route for traffic specifically to that range/ip

    Code:
    route add 83.222.111.0 mask 255.255.255.0 x.x.x.2 /p
    Obviously the above is a /24 so a bit big but you get the idea.
    cheers
    Andy

    Please read this before you post:


    Quis custodiet ipsos custodes?

    Comment


    • #3
      Re: Static route and mail delivery (2003)

      many thanks for the reply.

      i successfully managed to get mail routing out to just the two MX addresses through the xxx.xxx.xxx.2 gateway and all other other traffic through the xxx.xxx.xxx.1 gateway whilst still leaving xxx.xxx.xxx.1 as the default gateway. almost there.

      if i open a port on the xxx.xxx.xxx.2 gateway i can't connect to the mail server however. if i change the mail server's default gateway to xxx.xxx.xxx.2 i CAN connect however.

      is there a way round letting the incoming traffic from xxx.xxx.xxx.2 connect to the mail server while still having its default gateway as xxx.xxx.xxx.1?

      Comment


      • #4
        Re: Static route and mail delivery (2003)

        I assume that the x.x.x.2 cannot find the way directly to the mailserver.
        Check it's routing table.
        Marcel
        Technical Consultant
        Netherlands
        http://www.phetios.com
        http://blog.nessus.nl

        MCITP(EA, SA), MCSA/E 2003:Security, CCNA, SNAF, DCUCI, CCSA/E/E+ (R60), VCP4/5, NCDA, NCIE - SAN, NCIE - BR, EMCPE
        "No matter how secure, there is always the human factor."

        "Enjoy life today, tomorrow may never come."
        "If you're going through hell, keep going. ~Winston Churchill"

        Comment

        Working...
        X