One of our clients picked up a new Konica Minolta copier (previous blog post).
One of the requirements for the new copier was to have it scan documents and e-mail them to various users on the network. Another requirement was to have the copier scan documents to a folder.
Well, the folder idea was a bit of a pain due to the password rotation policies in place. We would end up either requiring that a restricted user be created with a pass phrase that never changes, or look for another method.
Since the copier was able to scan to e-mail, the simplest solution seemed to be to have it e-mail the attached PDF or other file to a Companyweb SharePoint Library.
The process was much easier said than done, though we managed to get things ironed out this afternoon with a lot of patience on the part of our client contact.
So, here are the steps we took in the order we took them along with a couple of errors we made during the whole process. Because of that, please read the entire post before heading out to make these configuration changes.
Configure the E-mail Enabled SharePoint Library
The first step in this process is to create the new document library that will be the destination for our copier e-mailed attachments.
We need to be logged into a workstation as either the domain admin or with a user account that has admin rights to the Companyweb site.
We click on the Site Actions button near the top right of the site and we create our new library:
- Library name: Scans
- E-mail address: Scans@companyweb
Add a description if need be and click the Create button. Make sure to pay very careful attention to the information inputted in these fields.
Once the library is created, click on the Scans link now below the Fax Center in our own situation to bring it up:
Create a New Receive Connector
Our next step is done on the SBS 2008 server itself.
In the Exchange Management Console, here we are using Windows SBS Native Tools Management, we need to get to the Hub Transport role under the Server Configuration Node:
Right click anywhere under the Receive Connectors list and click on New Receive Connector:
We name the Receive Connector. In our case we called it Copier Send to E-mail.
After clicking next, we will leave the default local SMTP receive settings alone when it comes to the local IP addresses.
Take note however, that the FQDN setting needs to be filled out with the SBS server’s Fully Qualified Domain Name: MY-SBS.MySBSDomain.Local.
Next we have the From IPs. This is where we input the copier’s IP address. We added both copiers if they decided they wanted the other one e-mail enabled,
Once we click Next we are given a summary of the changes about to be made. We then clicked the New button to make it happen.
Receive Connector Properties
Once the Receive Connector has been created, we need to tweak it a bit to allow for anonymous SMTP connections from our two copier IP addresses.
Right click on the Copier Send To E-mail connector and click on Properties.
Click on the Authentication tab and make sure none of the check boxes are checked:
Then click on the Permissions Groups tab and put a check mark beside the Anonymous users setting:
Our last step with regards to our Receive Connector is to run an Exchange Management Shell command to set the anonymous permissions into play:
- Get-ReceiveConnector "Copier Send To E-mail" | Add-ADPermission -User "NT AUTHORITY\ANONYMOUS LOGON" -ExtendedRights "ms-Exch-SMTP-Accept-Any-Recipient"
Open the Exchange Management Shell by right clicking on it and then clicking on Run As Administrator.
Copy and paste the above command into the Management Shell. Note that the name of the Receive Connector in our example needs to be changed to whatever you have named the Receive Connector in order for things to work as expected.
This is what a successful command will look like:
We now have our SBS Exchange set up to allow the copiers to relay e-mail containing any scanned items through it.
Create An E-mail Enabled Contact
Our last step in this process is to create an e-mail enabled contact.
The e-mail address we created for the library was: Scans@companyweb. Companyweb is not a known or enabled e-mail domain anywhere in our SBS setup other than the SharePoint library and Exchange.
There may be a need for users to e-mail content into the library via their Outlook client, so we create the new contact.
Coming back to our open Windows SBS Native Tools Management console with the Exchange Management Console opened, we need to click on the Recipient Configuration node.
In the right hand Actions column click on New Mail Contact.
Fill out the Contact Information taking care to note that the Alias should be the same value as the e-mail address prefix (_____@MySBSDomain.Local):
Click the Edit button next to the pencil to get:
Now for clarification’s sake, have a look at what was typed into the E-mail address field in this pop-up and head back up to the SharePoint library e-mail address. Notice any difference?
When everything was put together we could not get an e-mail to the SharePoint library but we could to the users when a scan was initiated at the copier. Somehow, through the whole process the e-mail address was seemingly case sensitive in Exchange and/or in the SharePoint library. The other possibility was that the address in the copier was different and the copier was case sensitive for e-mail.
- Make sure the e-mail address used is consistent case sensitivity wise throughout the set up process.
With that in mind, our input should have been: Scans@companyweb as it was in the SharePoint library.
Here is the filled out Contact Information step:
After clicking Next we are presented with a summary of the settings. Click the New button and we will now have an e-mail contact that will show up in the GAL thus allowing
Restart the Microsoft Exchange Transport Service
Once we have all of our configuration changes in place, as an extra precaution we restarted the Transport Service:
So, once we have the configuration in place everything should work as expected right?
Well . . . no.
The photocopier folks had their training person in to work with our client’s users on learning the copier and its features.
We did not have the scan to e-mail enabled before they arrived. When things did not work as expected, they made some changes on the copier according to our client contact.
Now, the copier needs to send e-mail to that library. The library uses what is essentially an Internet non-existent e-mail domain.
Here is the setting change that was made:
Notice the problem setting?
Our local Shaw SMTP server setting was put in the place of our client’s SBS IP address.
E-mail would flow to the users but not to the library.
Once we corrected that, we still could not get e-mail to flow.
We fired up the Exchange E-mail tracking to find out if the copier was even connecting to the server:
It was, but the e-mail was not reaching the library.
This is when we figured out that the only anomaly that we could see in the entire chain of events was the case in the e-mail address.
Once we had the e-mail address case settings the same in the:
- Copier address list.
- Exchange e-mail enabled contact.
- SharePoint document library
We had the following result:
Our first PDF scan hits the library!
One of the neat things about this setup is the Alerts feature in SharePoint libraries. If there are one or two folks responsible for keeping the library tidy then anytime an e-mail attachment hits the library they can put the bug in someone’s ear to take care of it.
- Configure the E-mail Enabled SharePoint Library.
- Create a New Receive Connector.
- Modify the Receive Connector's Properties.
- Create an E-mail Enabled Contact.
- Restart the Microsoft Exchange Transport Service.
- Test Scans and Troubleshooting.
The above was brought about via a combination of resources:
- You had me at EHLO: Allowing application servers to relay off Exchange Server 2007
- Microsoft Knowledgebase: KB961300: How to enable Outlook to send email to a SharePoint Document Library on SBS 2008
- Official SBS Blog: How to Configure Trusted SMTP Relay in Exchange on SBS 2008
Microsoft Small Business Specialists
Co-Author: SBS 2008 Blueprint Book