Announcement

Collapse
No announcement yet.

SMTP Relay with Exchange 2003

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

  • SMTP Relay with Exchange 2003

    Hi experts,

    I currently run an Exchange 2003 server, but what I would like to do is set up an SMTP relay on another server so all email goes through this server (both out/inbound) and then on to/from my exchange server. The only snag is that I use my ISP's SMTP server as a smarthost to route outgoing email through at the moment and when I set up the relay server I would like to still be able to do this. I have tried to install the smtp service in IIS6.0 to use as my smtp relay server, on another server, but there doesn't appear to be a connector facility to be able to route outbound email through my ISP within this.

    Can anyone recommend a smtp relay program that allows me to route smtp outbound mail through my ISP's smtp server?

    Many thanks in advance,

    Tel

  • #2
    Re: SMTP Relay with Exchange 2003

    I don't know if i gotten the whole story straight.
    You have two mail servers, and one server (server a) routes its outside mail trough the ISP SMTP server. You want the other server (server b) to forward its outside mail to server a, which will forward it to the ISP?

    I would say, configure allow SMTP relaying on the IP address of server b on the SMTP virtual server on server a. Create a SMTP connector on server B (For * domain) to server a.
    [Powershell]
    Start-DayDream
    Set-Location Malibu Beach
    Get-Drink
    Lay-Back
    Start-Sleep
    ....
    Wake-Up!
    Resume-Service
    Write-Warning
    [/Powershell]

    BLOG: Therealshrimp.blogspot.com

    Comment


    • #3
      Re: SMTP Relay with Exchange 2003

      Hi,

      Thanks for the reply. I don't think that I explained myself at all well.

      At the moment I have 1 Exchange 2003 server with a smtp connector setup that routes all outgoing mail through my ISP's smtp server. What I would like to do is setup a smtp gateway relay server on another PC, so that all incoming email is received by the smtp gateway relay server and passed on to my exchange server and all outgoing mail is sent from my exchange server to this gateway smtp server and this gateway server then sends the outgoing mail to my ISP's smtp server for processing. The reason why I would like to set up a smtp gateway relay server is for security as I can install AV/Antispam programs on this gateway server and let this take care of the scanning before any email is forwarded to my Exchange server.

      I have installed the smtp service from within IIS on the PC that I would like to act as the smtp gateway, the only problem is I cannot see anyway to send outbound email received from my Exchange server to my ISP's smtp server for processing.

      I'm I doing something wrong or do I need a more fully featured smtp gateway relay server program that can send email received from my Exchange server to my ISP's smtp server (which need to be authenticated) for processing if so any recommedations of a program that can do this?

      Many thanks in advance,

      Tel

      Comment


      • #4
        Re: SMTP Relay with Exchange 2003

        Can anyone help?

        Comment


        • #5
          Re: SMTP Relay with Exchange 2003

          I don't get your problem.

          Configure an SMTP server running Linux/Windows in the DMZ.

          Configure it to relay from the Exchange's IP to the ISP's IP.

          Configure it to accept email from the world and fwd it to the Exchange server.

          Configure the relay's IP address as a smart host on the SMTP connector.

          Bingo.
          Cheers,

          Daniel Petri
          Microsoft Most Valuable Professional - Active Directory Directory Services
          MCSA/E, MCTS, MCITP, MCT

          Comment


          • #6
            Re: SMTP Relay with Exchange 2003

            It can be done with plain Windows 2003 server.
            See my guide here: http://exchange.sembee.info/network/smtp-gateway.asp

            From a security point of view, the key is ensuring that you have the relaying settings set correctly, so the server doesn't become an open relay.
            Otherwise you have to be very careful with the domain configuration so that email flows correctly.

            Simon.
            Last edited by Sembee; 14th May 2012, 15:24. Reason: URL Correction
            --
            Simon Butler
            Exchange MVP

            Blog: http://blog.sembee.co.uk/
            More Exchange Content: http://exchange.sembee.info/
            Exchange Resources List: http://exbpa.com/
            In the UK? Hire me: http://www.sembee.co.uk/

            Sembee is a registered trademark, used here with permission.

            Comment


            • #7
              Re: SMTP Relay with Exchange 2003

              Many thanks for all the help guys, but I can't seem to set up a virtual server that sends email to my isp's smtp server on the relay server. I can set up the default smtp virtual server that will just route email over the internet via smtp, no problem. But I can't seem to set up one that will route through my isp's smtp server that uses authentication.

              I've read excellent page at http://exchange.sembee.info/network/smtp-gateway.asp but I am still having problems.

              Can anyone advise?
              Last edited by Sembee; 14th May 2012, 15:24. Reason: URL Correction

              Comment


              • #8
                Re: SMTP Relay with Exchange 2003

                If you are using an ISPs server as a smart host, why don't you just send email to it directly using an SMTP connector?

                If you continue to want to use the gateway machine then you have to set the Smart host on the SMTP virtual server, Delivery, Advanced and then set the authentication settings on the Outbound Security button, disabling anonymous and integrated authentication.

                You will also need to ensure that anonymous is disabled on the Access, Authentication tab, so that the machine isn't a relay to your ISP.

                Simon.
                --
                Simon Butler
                Exchange MVP

                Blog: http://blog.sembee.co.uk/
                More Exchange Content: http://exchange.sembee.info/
                Exchange Resources List: http://exbpa.com/
                In the UK? Hire me: http://www.sembee.co.uk/

                Sembee is a registered trademark, used here with permission.

                Comment


                • #9
                  Re: SMTP Relay with Exchange 2003

                  Many thanks for all your help and patience with me, I greatly appreciate it.

                  I've setup a smarthost pointing to my isp's smtp server (mail.bulldoghome.com) on my IIS smtp relay and setup an connector in exchange that forwards emails to the computer running the IIS smtp server, but when I try and sent mail from outlook 2003, I get the following message:

                  Unable to deliver the message because the originator prohibited redirection to an alternate recipient or the message was encrypted

                  What am I doing wrong?

                  Comment


                  • #10
                    Re: SMTP Relay with Exchange 2003

                    First, drop the internal SMTP mail relay. Leave it. Try to forward directly to the ISP's smart host, and do it on the SMTP Connector level. See if that works.

                    If it does, see what was wrong with your SMTP server.
                    Cheers,

                    Daniel Petri
                    Microsoft Most Valuable Professional - Active Directory Directory Services
                    MCSA/E, MCTS, MCITP, MCT

                    Comment


                    • #11
                      Re: SMTP Relay with Exchange 2003

                      setup a connector in ESM to send emal to my isp's smtp server an this routes email through my isp's smtp server fine. It's just the IIS smtp server to route through my isp's smtp server with authentication that I having problems with

                      Comment


                      • #12
                        Re: SMTP Relay with Exchange 2003

                        The message you are getting is an authentication error generated by the server to the next hop. Therefore you have something wrong on the SMTP connector in Exchange.

                        You should have an account on the relay server that can relay and that account is what you put in to the SMTP connector. You must set the SMTP connector to authenticate when sending and it must be in basic authentication to work.

                        Simon.
                        --
                        Simon Butler
                        Exchange MVP

                        Blog: http://blog.sembee.co.uk/
                        More Exchange Content: http://exchange.sembee.info/
                        Exchange Resources List: http://exbpa.com/
                        In the UK? Hire me: http://www.sembee.co.uk/

                        Sembee is a registered trademark, used here with permission.

                        Comment

                        Working...
                        X