Of all the client projects I’ve been on not once was I able to setup outgoing e-mail with SharePoint without having to do some troubleshooting.  I’d like to pass along some basic troubleshooting steps that have helped me diagnose the errors I’ve received.

To configure outgoing E-mail in SharePoint you have 2 options, use Central Admin or STSADM.

The basic info is outgoing SMTP address, from address and reply-to address.

image

The other way is STSADM –o email

As you can see, the setup is pretty simple, here is where the fun begins.  Once you set the SMTP server, SharePoint basically will accept any value you give it whether it can talk to it or not.  Easiest way to test if its working from SharePoint is to add a user to a site and try and send them a welcome email.  If it doesn’t work it will throw you an error telling you that it can’t send the email.

Troubleshooting Tip #1

Talk to your networking/mail team and get the SMTP server address and port

Troubleshooting Tip #2

What I first do is goto the index server and open a command prompt and use the basic old school dos command “telnet”.

telnet smtp.server.com 25

(Typically SMTP operates over port 25, but your company may be different.)

What will happen with this command is one of two things:

If it opens up and basically looks like a blank screen, that means that the SharePoint server can talk to the SMTP server fine.

If it tells you something along the lines of “connect failed”, you know that your SharePoint server can’t talk to the SMTP server.  What you should then do is talk to your networking team and make sure that your SMTP server allows connections from your SharePoint server.  Once that is done, retest your telnet command.

Troubleshooting Tip #3

If your networking team says that you have the server correct, port correct and that there is no reason your server can’t connect to the SMTP, then check your SharePoint server and see if its running any antivirus.  The past few clients have been running McAFee antivirus.  In its Access Prevention Task, "Prevent mass mailing worms from sending mail" has  been enabled and that was blocking the server from connecting to the SMTP server over port 25.  As soon as I disabled that I was able to telnet in without issues and then I was able to send email from SharePoint without issue.

I am not sure about the other antivirus vendors but I am sure they have something similar, so check the settings to see if they block port 25.

Troubleshooting Tip #4

Check to make sure that Windows Firewall is not blocking port 25, if it is, make sure that you add 25 as an exception.

Troubleshooting Tip #5

If the tips above don’t help, check out this link by John Powell.  He provides a small c# console app that attempts to create a mail message and send it through the SMTP server.  Build the app and put it on the SharePoint app server and run it.  Running the app will either send the e-mail or not, and if not, it will provide you with a MUCH better error message than SharePoint gives you.  Take that info and then start tracking it down to see what might be going on.

 

Hopefully one of these tips above will help you solve your outgoing e-mail problems.  If they don’t, feel free to ping me and I will work with you to solve the issue.


Posted in:   Tags:

Comments


United States Roger
May 19. 2009 08:23
Roger
We are using ePolicy Orchestrator 4.0 and McAfee Enterprise 8.x.
Check the following on your server to make sure it is not being blocked:

* In VirusScan Console open Access Protection properties
* Click on 'Anti-Virus Standard Protection'
* Make sure that blocked next to 'Prevent Mass Mailing Worms from sending mail' is not checked.

We updated the policy on our server (using a server group membership change) and removed this block.  I was now able to send emails out when assigning list access to users.

no site


India Srikant
June 3. 2009 04:17
Srikant
Hi Tony,

First of all thanks for all those tips

Actually, The problem which I am facing is little different. What I am doing is sending an email to around 4700 email IDs using the sharepoint designer workflow but I am getting the below error when I see the workflow history

"The e-mail message cannot be sent. Make sure the outgoing e-mail settings for the server are configured correctly."

What I noticed is I am able to send and receive a Test mails just before and after the actual bulk mail sucessfully. And the antivirus program installed is 'Trend micro'.

Could you please give me some hint as to what might be going wrong

-Srikant

no site


January 14. 2010 04:51
web design houston tx
This is a really good read for me, Must admit that you are one of the best bloggers I ever saw.Thanks for posting this informative article.

http://www.smallbusinessfire.com/http://www.smallbusinessfire.com/


January 14. 2010 08:08
George Briggs
Thanks for the data.  It was extraordinarily informative.  Alot of people don't put alot  into subjects like these. Please keep up the good work  <a href='http://www.howtosellclothesforcash.com'>best items to sell on ebay</a>.

http://www.howtosellclothesforcash.com/http://www.howtosellclothesforcash.com/


January 15. 2010 01:40
maze game 2
hey admin, I found this weblog from yahoo and read a couple of your other web pages. They are great. Please keep them coming!! Cheers, Katherina.

http://www.onlineflashgames.org/games/skill/maze-game-2.htmhttp://www.onlineflashgames.org/games/skill/maze-game-2.htm


January 15. 2010 02:24
professional photographer edinburgh
Great post. I felt your blog was extremely intriguing.  I will drop by again very soon.

http://www.johnneed.co.uk/http://www.johnneed.co.uk/


January 15. 2010 03:02
online games
Hey mate, pretty cool article.. Please continue posting!!!!

http://www.arcadeshell.com/http://www.arcadeshell.com/


January 15. 2010 04:01
web directory
Pretty cool blog post!!!

http://awebdir.in/http://awebdir.in/


January 25. 2010 07:18
fast cash loans
We must never cease from exploration. And the end of all our exploring will be to arrive where we began and to know the place for the first time.

http://cashusloans.com/http://cashusloans.com/


January 27. 2010 22:47
troubleshooting guide
great troubleshooting tips....I would also recommend building a temporary asp page using cdosys to test the out going email on that server.  make sure you use the same smtp server as you have configured in central admin.  Also make sure you dont use a username and password on cdosys. Cheers!

http://www.pctechguide.com/tutorials/12_troubleshooting.htmhttp://www.pctechguide.com/tutorials/12_troubleshooting.htm


February 1. 2010 08:08
Loans in CO
If you realize that all things change, there is nothing you will try to hold on to... there is nothing you cannot achieve.

http://superpaydayloan.com/state/Coloradohttp://superpaydayloan.com/state/Colorado


February 8. 2010 05:28
payday loans
It is good to have an end to journey toward; but it is the journey that matters, in the end.

http://cashusloans.com/http://cashusloans.com/

Add comment


(Will show your Gravatar icon)

  Country flag

biuquote
  • Comment
  • Preview
Loading



Search Blog

Blog Roll

    OPMLDownload OPML file

    Recent Posts

    Recent Comments

    Banners

    Theme Grabber
    Disclaimer
    The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

    © Copyright 2010 Tony Testa's World