How do I set up Exchange to foward to an internal SMTP server?

Posted on 2010-08-27
Last Modified: 2013-11-30
I have another server in the enterprise that has the simple IIS SMTP server installed on it (Server 2008 r2), and it can accept e-mails that I write by hand over telnet to port 25, so I know that it's working. Now I need our Exchange (2003) server to be able to send mails to it. I tried adding a contact in active directory with scc-scsm@scc-scsm (the name of the server with SMTP on it) as the SMTP address, but mails to it bounce back with:
You do not have permission to send to this recipient.  For assistance, contact your system administrator.
            <mailserver #5.7.1 smtp;550 5.7.1 Unable to relay for scc-scsm@scc-scsm>

The purpose of this is to allow people to submit helpdesk tickets via e-mail to this server (SMTP on the server just drops them in the drop folder as .eml files and the helpdesk software picks them up).

What do I need to change in Exchange to make it able to relay messages to this other SMTP server?
Question by:SeniorcareIT
  • 2
  • 2

Expert Comment

ID: 33544470
I would check with the vendor for their documentation as this is a fairly irregular way of accomplishing a helpdesk system.

That or, if this is a free helpdesk system, possibly look into another one?

Just a though to accomplish your goal, however, would be to setup a contact in active directory with a bogus domain.  Then create an SMTP connector in Exchange for any email sent to that domain to forward to the IP address of your IIS server.

In exchange, goto Routing Groups and under First Routing Group, you will see connectors.  Create a new connector.  Set the "Forward all mail through this connector to the following smart hosts" to the IP of IIS server.  Then on the address space tab you would make sure that only one entry existed and that it was an SMTP type with the bogus domain that you defined earlier.

The thing is that I'm not certain what address you should send an email to so that IIS will pick it up.  When you are writing it by hand over telnet, you are entering the RCPT TO: command, I'm sure, so that is what I would define in the contact.

I cannot guarantee any of this will work because it is all hinged on how you got IIS to "answer" and receive an email in your telnet testing.  

Good luck!

Author Comment

ID: 33544678
IIS SMTP won't attempt to deliver any e-mail, and I've selected the setting in it that will just drop it in c:\inetpub\mailroot\Drop.

The helpdesk software is Microsoft System Center Service Manager, and the way it uses e-mails is to scan a folder for .eml files every 60 seconds (changable). Looking at the connectors on exchange, that looks promising as there's a checkbox for 'allow messages to be relayed to these domains', though I still can't get it to work, given the same error. I'm trying scsm.local as the domain, so the contact sends mail to scc-scsm@scsm.local, and the connector has scsm.local as the domain in its address space, forwarding to the 'smart host' at the SCSM server's IP address.

When I do it over telnet, RCPT TO:<scc-scsm> results in it outputting scc-scsm@ and the FQDN of the server, and I can send mail to that.

Accepted Solution

zmorvik earned 125 total points
ID: 33544831
Ah, ok, I understand.

I believe you have it mostly correct, you just need to setup SMTP on the IIS server "answer" to scsm.local.

Rather than re-type all of it, here is a link and a copy/paste

Setup & Configure the SCSM SMTP server

The SMTP server is a functionality on server 2008 (R2) and is configurable via the Internet Information Services (IIS) 6.0 Manager. (So don’t forget to tick this option also when installing the IIS role)

Setup of the SMTP server

    * On the computer that will host the SMTP Server service, on the Windows desktop, click Start, point to Programs, point to Administrative Tools, and then click Internet Information Services (IIS) 6.0 Manager.
    * Right-click the local computer node, select New, and then click SMTP Virtual Server.
    * In the New SMTP Virtual Server Wizard, in the Name field, type the name for the SMTP server, and then click Next. In this example, type helpdesk.demo.local.
    * On the Select IP Address page, click the drop-down list and select the IP address of the computer that is hosting the SMTP Server, and then click Next.
    * On the Select Home Directory page, click Browse and click to the folder for your home directory. For example, select C:\inetpub\mailroot. You will create a share for this folder in the next procedure.
    * On the Default Domain page, type the domain name for this virtual SMTP server, and then click Finish. The domain name you enter must match domain name that is configured on the Exchange server in previous procedure. In our example, type helpdesk.demo.local.

Create a share for the mail root folder

    * On the Windows desktop, right-click the Start button, and then click Explore.
    * In Windows Explorer, drill down to the folder that you specified as the home directory in step 5 from the previous procedure. For example, drill down to C:\inetpub\mailroot. If needed, create two sub folders, Badmail and Drop.
    * Right-click the home folder, and then click Share.
    * In the File Sharing dialog box, select the domain user that you specified for the Service Manager account, click Contributor, click Share, and then click Done.
    * You can double check this account in the SCSM console
          o In the Service Manager console, select Administration.
          o In the Administration pane, expand Administration, security, and then select “Run As Accounts”


    * Make sure that the Simple Mail Transfer Protocol (SMTP) service is set to Automatic and has started

Good luck!

Author Comment

ID: 33545348
Ah! Yes, that did it. Apparently the default SMTP virtual server that was created wasn't sufficient to accept the mail. Making the second one (and since the default can't be deleted, changing it to port 26 and the second one to 25), seems to have made it accept e-mail. Thanks for your help.

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

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

Suggested Solutions

This article lists the top 5 free OST to PST Converter Tools. These tools save a lot of time for users when they want to convert OST to PST after their exchange server is no longer available or some other critical issue with exchange server or impor…
Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

713 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