Brijesh's profileBrijesh's spacePhotosBlogLists Tools Help

Blog


    May 08

    Incoming e-mail feature in SharePoint 2007

    I am pretty excited about enabling incoming e-mail feature in our SharePoint production environment in this week ends finally. We have really tested it thoroughly in our SharePoint stage environment before enabling it in production envionment. In fact, we follow this process all the time to be on safe side :-)

    Alright, so we will talk about incoming e-mail feature and e-mail enabled lists and libraries in SharePoint 2007 today.

    Before I start, let me tell you that we do NOT have MS Exchange server setup in our organization for e-mail routing but we have unix based mail routing system called - Majordomo. So it may differ from configuring incoming e-mail feature in MOSS 2007 with Microsoft recommended mail routing system- MS Exchange.

    As you all know we can enable incoming e-mail in MOSS 2007 by going to Central Administration > Operations > Incoming E-Mail Settings. Here is how we have configured it,

    1. Enable sites on this server to receive e-mail? Yes

    2. Settings mode: Automatic

    3. Use the SharePoint Directory Management Service to create distribution groups and contacts? Yes

    Note: This setting is required ONLY if you want contacts to be created in your organization's user directory allowing people to find e-mail enabled SharePoint lists in their address book. This service also provides support for the creation and management of e-mail distribution groups from SharePoint sites. If you don't want contacts to be created in your organization's user directory you can choose "No". Incoming e-mail feature will work regardless of what you select for this option.

    If you have selected "Yes", you need to provide additional information. If you are not sure of this information, please contact the person who manages Active Directory and domain services for your organization. For example, we have

    4. Active Directory container where new distribution groups and contacts will be created: OU=SPOU, OU=Organization, OU=ControlledObjects, DC=hq, DC=MyDomainName, DC=com

    Note: I have changed few settings to keep the privacy.

    5. SMTP mail server for incoming mail: MOSSServer1.hq.MyDomainName.com

    6. Accept messages from authenticated users only? Yes (We have enabled incoming e-mail feature for intranet use only however we don't want any spam e-mails in our system when we enable it for external accounts so it is always safe to select "Yes" option here.

    7. Allow creation of distribution groups from SharePoint sites? Yes

    8. Distribution group request approval settings: Create new distribution group and Delete distribution group are selected.

    9. E-mail server display address: sharepoint.hq.MyDomainName.com

    Note: This option is little tricky to provide a custom address here. Please note that the SMTP server name for incoming mail is "MOSSServer1" however we want contacts for e-mail enabled lists and libraries with suffix "@sharepoint.hq.MyDomainName.com". We can do this by adding another domain alias in IIS for SMTP Virtual Server. Here are the steps to add the domain alias for SMTP Virtual Server,

    (i) Open IIS, where you have SMTP Virtual Server installed.
    (ii) Expand Default SMTP Virtual Server.
    (iii) Right click on Domains and select New => Domain.
    (iv) Select Alias.
    (v) Provide Name (Another Alias of this SMTP Virtual Server e.g. we have used sharepoint.hq.MyDomainName.com and click Finish button.

    Note: MS Exchange or your mail distribution system (Majordomo in our case) must be configured to route all emails that suffix with @sharepoint.hq.MyDomainName.com to C:\Inetpub\mailroot\Drop folder of SMTP Virtual Server installed on MOSSServer1.

    10. Safe E-Mail Servers: Accept mail from all e-mail servers is selected.

    That's it, incoming e-mail feature for MOSS 2007 is configured...Congratulations!

    Now, Let's talk about testing this feature...(Please keep in mind that we have Unix based Majordomo mail distribution system in our organization) Most of the time it worked fine for receiving e-mails in SharePoint however we stopped receiving e-mails after 2-3 days of testing. We were unable to telnet into server on port 25. SharePoint server(with Virutal SMTP Server installed) was not listening on port 25. We checked “Connection” property under “Access” tab of SMTP Virtual Server properties and noticed that SMTP server is accepting connection only from 196.X.X.123 server however we configured to receive e-mails from any e-mail server. So We removed that IP Address (196.X.X.123) from the “Computers” tab and set connection settings to “All except the list below” by keeping “Computers” tab empty. After this change, we started receiving e-mails in SharePoint as normal but question was how this change was occurred and who made changes to “Connection” settings? and here is the answer :-)

    While testing incoming e-mail feature in SharePoint, we set “Accept mails from these safe e-mail servers” with the above IP Address (196.X.X.123) and that changed “Connection” settings of SMTP Virtual Server in IIS. This was the root cause of this issue. So be very careful when you make any configuration changes to your incoming e-mail settings.

    As I mentioned before I am pretty excited about announcing this feature in our SharePoint production enviornment however here are the few things what I am concerned about,

    How can we manage undelivered emails?

    1. What happens to emails, which are sent to wrong email addresses? SharePoint logs refer that as Unknown Alias. How does SMTP server handles it? Is there anyway we(or SharePoint Admin email account) can get notified for undelivered email messages? We tried to set email account in SMTP server properties for Undelivered emails but that didn't help. We would like sender to receive bounce back email when email is sent to wrong email address or at least SharePoint administrator account get notified when email is not delivered to SharePoint.

    2. We have Distribution List set for different groups. Let's say for example, dl-spadmins has all email accounts of SharePoint administrators. If we add email address for SharePoint document library in this DL and then send email to dl-spadmins, all members of that DL receive email but SharePoint document library does NOT receive this email. Is there anyway to troubleshoot this issue?

    Why we want to add email address for SharePoint document library to Distribution List (DL)? Because we can not find those contacts in SharePoint even though we have configured Directory Management Service for incoming email feature in SharePoint and that is because we have Majordomo mail distribution system instead of MS Exchange (I believe this is the reason, we can not find those contacts in MS Outlook but I am not sure) So if we add contacts for important SharePoint document libraries to DL of relevant department (Site Collection), anybody can send email to DL, which will send email/document to all the members of DL as well as SharePoint document library and nobody needs to remember email address of SharePoint document library. All they need to do is, just send an email to DL and it will reach both the members of DL and SharePoint document library, which these members are going to access later.

    When you add email address of email enabled Document Library to Distribution List(DL), permissions for email must be set to "Accept e-mail messages from any sender" in order to receive email in SharePoint and yes, It shows "System Account" for those messages or the documents received in Document Library. This is already been discussed in this Blog and unfortunately we are still struggling for an appropriate solution. If you set "Save all attachments in folders grouped by e-mail sender" , it creates a new folder for each new sender and then add attachments to that folder however it still shows "System Account" under "Modified By" field but at least it gives you an idea (by looking at the folder name) who sent that email/documents to your Document Library.

    If you set "Accept e-mail messages based on document library permissions" then the email will not be received in SharePoint.

    One more thing...

    If you set "Accept e-mail messages based on document library permissions" option for your Document Library and if somebody, who doesn't have permissions on your Document Library sends an email to your Document Library, it never arrives in your Document Library. Also Sender will not receive any bounce back. So Sender assumes that he has successfully sent an email to your Document Library and you never receive it. Now, this issue might be specific to Majordomo(Unix based) email distribution system and may work well with MS Exchange configuration. I have tested this in my Lab with MS Exchange and I believe it sends the bounce back message if you don't have permissions on the Document Library but I am not 100% sure. :-(

    Finally here is the matrix for reusing same contact name for same library or different library in SharePoint,

    Reuse_Contact_in_Email_Enabled_Lists_and_Libraries

    References:
    http://www.combined-knowledge.com/Downloads%202007.htm
    http://www.toddklindt.com/blog/Lists/Posts/Post.aspx?ID=31

    Comments (9)

    Please wait...
    Sorry, the comment you entered is too long. Please shorten it.
    You didn't enter anything. Please try again.
    Sorry, we can't add your comment right now. Please try again later.
    To add a comment, you need permission from your parent. Ask for permission
    Your parent has turned off comments.
    Sorry, we can't delete your comment right now. Please try again later.
    You've exceeded the maximum number of comments that can be left in one day. Please try again in 24 hours.
    Your account has had the ability to leave comments disabled because our systems indicate that you may be spamming other users. If you believe that your account has been disabled in error please contact Windows Live support.
    Complete the security check below to finish leaving your comment.
    The characters you type in the security check must match the characters in the picture or audio.

    To add a comment, sign in with your Windows Live ID (if you use Hotmail, Messenger, or Xbox LIVE, you have a Windows Live ID). Sign in


    Don't have a Windows Live ID? Sign up

    au7 batterywrote:
    http://www.bestlaptopbattery.com.au/sony/pcga-bp2e.htm Sony pcga-bp2e battery
    http://www.bestlaptopbattery.com.au/sony/pcga-bp2s.htm Sony pcga-bp2s battery
    http://www.bestlaptopbattery.com.au/sony/pcga-bp2t.htm Sony pcga-bp2t battery
    http://www.bestlaptopbattery.com.au/sony/pcga-bp2v.htm Sony pcga-bp2v battery
    http://www.bestlaptopbattery.com.au/sony/pcga-bp3t.htm Sony pcga-bp3t battery
    http://www.bestlaptopbattery.com.au/sony/pcga-bp4v.htm Sony pcga-bp4v battery
    http://www.bestlaptopbattery.com.au/sony/pcg-gr100.htm Sony pcg-gr100 battery
    http://www.bestlaptopbattery.com.au/sony/pcg-gr150.htm Sony pcg-gr150 battery
    http://www.bestlaptopbattery.com.au/sony/pcg-gr250.htm Sony pcg-gr250 battery
    http://www.bestlaptopbattery.com.au/sony/pcg-gr270.htm Sony pcg-gr270 battery
    http://www.bestlaptopbattery.com.au/sony/pcg-tr1.htm Sony pcg-tr1 battery
    http://www.bestlaptopbattery.com.au/sony/pcg-tr2.htm Sony pcg-tr2 battery
    http://www.bestlaptopbattery.com.au/sony/pcg-tr3.htm Sony pcg-tr3 battery
    http://www.bestlaptopbattery.com.au/sony/pcg-v505.htm Sony pcg-v505 battery
    http://www.bestlaptopbattery.com.au/sony/pcg-z1.htm Sony pcg-z1 battery
    http://www.bestlaptopbattery.com.au/sony/vgn-tx.htm Sony vgn-tx battery
    http://www.bestlaptopbattery.com.au/sony/vgp-bp2ea.htm Sony vgp-bp2ea battery
    http://www.bestlaptopbattery.com.au/sony/vgp-bpl2.htm Sony vgp-bpl2 battery
    http://www.bestlaptopbattery.com.au/sony/vgp-bpl2c.htm Sony vgp-bpl2c battery
    http://www.bestlaptopbattery.com.au/sony/vgp-bpl5a.htm Sony vgp-bpl5a battery
    http://www.bestlaptopbattery.com.au/sony/vgp-bps2.htm Sony vgp-bps2 battery
    http://www.bestlaptopbattery.com.au/sony/vgp-bps2a.htm Sony vgp-bps2a battery
    http://www.bestlaptopbattery.com.au/sony/vgp-bps2b.htm Sony vgp-bps2b battery
    http://www.bestlaptopbattery.com.au/sony/vgp-bps2c.htm Sony vgp-bps2c battery
    http://www.bestlaptopbattery.com.au/sony/vgp-bps5.htm Sony vgp-bps5 battery
    http://www.bestlaptopbattery.com.au/sony/vgp-bps5a.htm Sony vgp-bps5a battery
    http://www.bestlaptopbattery.com.au/toshiba/12-cell-pa3206u-1bas.htm Toshiba 12-cell pa3206u-1bas battery
    http://www.bestlaptopbattery.com.au/toshiba/12-cell-pa3206u-1brs.htm Toshiba 12-cell pa3206u-1brs battery
    http://www.bestlaptopbattery.com.au/toshiba/1800.htm Toshiba 1800 battery
    http://www.bestlaptopbattery.com.au/toshiba/4000.htm Toshiba 4000 battery
    http://www.bestlaptopbattery.com.au/toshiba/8-cell-nb100.htm Toshiba 8-cell nb100 battery
    http://www.bestlaptopbattery.com.au/toshiba/8-cell-pa3689u-1bas.htm Toshiba 8-cell pa3689u-1bas battery
    http://www.bestlaptopbattery.com.au/toshiba/8-cell-pabas155.htm Toshiba 8-cell pabas155 battery
    http://www.bestlaptopbattery.com.au/toshiba/a200.htm Toshiba a200 battery
    http://www.bestlaptopbattery.com.au/toshiba/a50.htm Toshiba a50 battery
    http://www.bestlaptopbattery.com.au/toshiba/a55.htm Toshiba a55 battery
    http://www.bestlaptopbattery.com.au/toshiba/a70.htm Toshiba a70 battery
    http://www.bestlaptopbattery.com.au/toshiba/abas098.htm Toshiba abas098 battery
    http://www.bestlaptopbattery.com.au/toshiba/abas099.htm Toshiba abas099 battery
    http://www.bestlaptopbattery.com.au/toshiba/b404.htm Toshiba b404 battery
    http://www.bestlaptopbattery.com.au/toshiba/b493.htm Toshiba b493 battery
    http://www.bestlaptopbattery.com.au/toshiba/ba1405.htm Toshiba ba1405 battery
    http://www.bestlaptopbattery.com.au/toshiba/dynabook-ss-m40.htm Toshiba dynabook ss m40 battery
    http://www.bestlaptopbattery.com.au/toshiba/nb100.htm Toshiba nb100 battery
    Nov. 19
    http://www.toplaptopbatteries.com/acer/as07b31.htm acer as07b31 battery
    http://www.toplaptopbatteries.com/acer/as07b41.htm acer as07b41 battery
    http://www.toplaptopbatteries.com/acer/as07b42.htm acer as07b42 battery
    http://www.toplaptopbatteries.com/acer/as07b51.htm acer as07b51 battery
    http://www.toplaptopbatteries.com/acer/aspire-5100.htm acer aspire 5100 battery
    http://www.toplaptopbatteries.com/acer/aspire-5520.htm acer aspire 5520 battery
    http://www.toplaptopbatteries.com/acer/aspire-5920.htm acer aspire 5920 battery
    http://www.toplaptopbatteries.com/acer/batbl50l6.htm acer batbl50l6 battery
    http://www.toplaptopbatteries.com/acer/btp-arj1.htm acer btp-arj1 battery
    http://www.toplaptopbatteries.com/acer/travelmate-3260.htm acer travelmate 3260 battery
    http://www.toplaptopbatteries.com/apple/a1175.htm apple a1175 battery
    http://www.toplaptopbatteries.com/apple/a1185-white.htm apple a1185 white battery
    http://www.toplaptopbatteries.com/compaq/nc6000.htm compaq nc6000 battery
    http://www.toplaptopbatteries.com/compaq/nx9005.htm compaq nx9005 battery
    http://www.toplaptopbatteries.com/compaq/nx9010.htm compaq nx9010 battery
    http://www.toplaptopbatteries.com/compaq/tc4200.htm compaq tc4200 battery
    http://www.toplaptopbatteries.com/dell/1501.htm dell 1501 battery
    http://www.toplaptopbatteries.com/dell/d400.htm dell d400 battery
    http://www.toplaptopbatteries.com/dell/e1405.htm dell e1405 battery
    http://www.toplaptopbatteries.com/dell/e1505.htm dell e1505 battery
    http://www.toplaptopbatteries.com/dell/e1705.htm dell e1705 battery
    http://www.toplaptopbatteries.com/dell/g1947.htm dell g1947 battery
    http://www.toplaptopbatteries.com/dell/gd761.htm dell gd761 battery
    http://www.toplaptopbatteries.com/dell/inspiron-1000.htm dell inspiron 1000 battery
    http://www.toplaptopbatteries.com/dell/inspiron-1200.htm dell inspiron 1200 battery
    http://www.toplaptopbatteries.com/dell/inspiron-1300.htm dell inspiron 1300 battery
    http://www.toplaptopbatteries.com/dell/inspiron-1520.htm dell inspiron 1520 battery
    http://www.toplaptopbatteries.com/dell/inspiron-1720.htm dell inspiron 1720 battery
    http://www.toplaptopbatteries.com/dell/inspiron-2200.htm dell inspiron 2200 battery
    http://www.toplaptopbatteries.com/dell/inspiron-5100.htm dell inspiron 5100 battery
    http://www.toplaptopbatteries.com/dell/inspiron-6000.htm dell inspiron 6000 battery
    http://www.toplaptopbatteries.com/dell/inspiron-6400.htm dell inspiron 6400 battery
    http://www.toplaptopbatteries.com/dell/inspiron-700m.htm dell inspiron 700m battery
    http://www.toplaptopbatteries.com/dell/inspiron-710m.htm dell inspiron 710m battery
    http://www.toplaptopbatteries.com/dell/inspiron-9300.htm dell inspiron 9300 battery
    http://www.toplaptopbatteries.com/dell/inspiron-9400.htm dell inspiron 9400 battery
    http://www.toplaptopbatteries.com/dell/inspiron-b130.htm dell inspiron b130 battery
    http://www.toplaptopbatteries.com/dell/kd476.htm dell kd476 battery
    http://www.toplaptopbatteries.com/dell/latitude-131l.htm dell latitude 131l battery
    http://www.toplaptopbatteries.com/dell/latitude-d510.htm dell latitude d510 battery
    http://www.toplaptopbatteries.com/dell/latitude-d531.htm dell latitude d531 battery
    http://www.toplaptopbatteries.com/dell/latitude-d600.htm dell latitude d600 battery
    http://www.toplaptopbatteries.com/dell/latitude-d620.htm dell latitude d620 battery
    http://www.toplaptopbatteries.com/dell/latitude-d630.htm dell latitude d630 battery
    http://www.toplaptopbatteries.com/dell/latitude-d820.htm dell d820 battery
    http://www.toplaptopbatteries.com/dell/latitude-d830.htm dell d830 battery
    http://www.toplaptopbatteries.com/dell/original-inspiron-1525.htm dell original inspiron 1525 battery
    http://www.toplaptopbatteries.com/dell/precision-m65.htm dell precision m65 battery
    http://www.toplaptopbatteries.com/dell/vostro-1000.htm dell vostro 1000 battery
    http://www.toplaptopbatteries.com/dell/vostro-1500.htm dell vostro 1500 battery
    http://www.toplaptopbatteries.com/dell/vostro-1700.htm dell vostro 1700 battery
    http://www.toplaptopbatteries.com/dell/xps-m1330.htm dell xps m1330 battery
    http://www.toplaptopbatteries.com/dell/xps-m140.htm dell xps m140 battery
    Oct. 22
    Dipanjanwrote:
    Interesting post on how to debug incoming email
    http://home.dzeee.net/blogs/sp/Lists/Posts/Post.aspx?ID=14
    Thanks,
    Dip
    Apr. 13
    Heather Burkwrote:
    I am having a problem with SharePoint 2007 and distribution lists in Outlook.  I set up my document library to accept incoming email.  When I send it directly to the document library everything works as expected; however, when I add the SP document library email address to a distribution list in Outlook SharePoint will not accept the email.  This has happened on our main siteand our test site.  Any advise would be greatly appreciated.
    Nov. 12
    No namewrote:

    Hi,Do you have used LCDs, second hand LCDs, used flat screens and used LCD monitors? Please go here:www.sstar-hk.com(Southern Stars).We are constantly buying re-usable LCD panels and working for LCD recycling.The re-usable panels go through strictly designed process of categorizing, checking, testing, repairing and refurbishing before they are re-used to make remanufactured LCD displays and TV sets.Due to our recent breakthrough in testing and repairing technology of LCD, we can improve the value for your LCD panels. website:www.sstar-hk.com[jdffgjjbdjjcb]

    Oct. 23
    No namewrote:

    Hi,Do you have second hand lcds, used laptop lcds and used LCD displays? Please go here:www.sstar-hk.com(Southern Stars).We are constantly buying re-usable LCD panels.We recycled LCDs.The re-usable panels go through strictly designed process of categorizing, checking, testing, repairing and refurbishing before they are re-used to make remanufactured LCD displays and TV sets.Due to our recent breakthrough in testing and repairing technology of LCD, we can improve the value for your LCD panels. website:www.sstar-hk.com[ccafbiiedfegbf]

    Sept. 27
    No namewrote:

    Hi,Do you need advertising displays, digital signages, advertising player and LCD displays? Please go Here:www.amberdigital.com.hk(Amberdigital).we have explored and developed the international market with professionalism. We have built a widespread marketing network, and set up a capable management team dedicated to provide beyond-expectation services to our customers.

    amberdigital Contact Us

    E-mail:sstar@netvigator.com
    website:www.amberdigital.com.hk
    alibaba:amberdigital.en.alibaba.com[dhhagcfcf

    Sept. 7
    Rameshwrote:
    Hi,
     
    Just to add another question, how do we take care of following situation when the server goes down where we have setup the SMTP server and how do we setup fault tolerance?
     
    What does Microsoft recommends in this and above situations? 
     
    Thanks
    Ramesh
    Aug. 5
    Brad Cotewrote:
    Brijesh -
     
    Thanks for the lengthy post. I'm also worried emails not being returned.
     
    bcote
    June 17

    Trackbacks

    The trackback URL for this entry is:
    http://brijesh.spaces.live.com/blog/cns!BFBD772FBDA58C6D!148.trak
    Weblogs that reference this entry
    • None