Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have written a Sharepoint 2007 web part that sends a field from a form to a specified email address.

I have got the form working as I require, but at present it can only send to internal email addresses. Sharepoint's email functions use SMTP to send to our Exchange 2003 server, but because our Exchange server is configured to prevent relaying, if the To: address is not at a local domain, it won't deliver the mail.

I don't want to open up our Exchange server to be a completely open relay. What I want is to allow my Sharepoint servers to send mail to addresses outside our domain.

The following seem possible:

  • Allow all mail sent from one of the Sharepoint servers to be relayed
  • Allow all mail from a web application pool account to be relayed (I am not sure that the application pool authenticates to the SMTP server though)
  • A combination of the two

Can anyone advise on the best way of doing this? Is setting up a dedicated SMTP server on the Exchange server (not a separate physical server) the right way of going about this?

EDIT: Note this is for Exchange 2003. There is a post on setting this up in Exchange 2007 which appears to have recognised the frequent requirement to do what I need. It doesn't give much detail on 2003 though. Can anyone expand?

share|improve this question
up vote 0 down vote accepted

Telling Exchange SMTP Connector to allow your SharePoint server IP to relay will be secure/good enough for most situations.

share|improve this answer

If you want to know how to allow application servers to relay in exchange 2007 and exchange 2010 then read this article

share|improve this answer
He isn't looking to relay in 2007. The method for doing that is different from 2003. – DanBig Mar 8 '11 at 15:41

This article is for setting up a relay in Exchange 2000 and 2003.

share|improve this answer
-1 posting a link anyone could find on Google does not add any value – dunxd Mar 9 '11 at 9:31

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.