<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Karsten Palmvig's blog : SPN</title><link>http://blogs.technet.com/kpalmvig/archive/tags/SPN/default.aspx</link><description>Tags: SPN</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Troubleshoot: CWA publishSelfPresence request error</title><link>http://blogs.technet.com/kpalmvig/archive/2009/10/01/troubleshooting-cwa-publishselfpresence-request-error.aspx</link><pubDate>Thu, 01 Oct 2009 13:52:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3284312</guid><dc:creator>kpalmvig</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.technet.com/kpalmvig/comments/3284312.aspx</comments><wfw:commentRss>http://blogs.technet.com/kpalmvig/commentrss.aspx?PostID=3284312</wfw:commentRss><description>&lt;P&gt;If you encounter the publishSelfPresence request error (Error Code = 0-1-492) in the CWA client, you most likely have a problem with the SPN (Service Principal Name) of the CWA Service Account.&lt;/P&gt;
&lt;P&gt;To correct this problem; open AdsiEdit and navigate to the CWA Service Account, right click and select Properties.&lt;/P&gt;
&lt;P&gt;Scroll down to the servicePrincipalName attribute. The SPN must contain the host name that users are connecting to as well as the physical server. In many scenarios CWA is published as cwa.domain.com while the actual host name may be something like ocscwasrv01.domain.com.&lt;/P&gt;
&lt;P&gt;Double click the servicePrincipalName attribute to edit it and make sure both names are registered like this:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;http/cwa.domain.com &lt;/LI&gt;
&lt;LI&gt;http/ocscwasrv01.domain.com &lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;Note the single slash, do &lt;STRONG&gt;not&lt;/STRONG&gt; type the address as “http://” – and replace host names and domain with your actual values.&lt;/P&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3284312" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/kpalmvig/archive/tags/SPN/default.aspx">SPN</category><category domain="http://blogs.technet.com/kpalmvig/archive/tags/Troubleshooting/default.aspx">Troubleshooting</category><category domain="http://blogs.technet.com/kpalmvig/archive/tags/OCS/default.aspx">OCS</category><category domain="http://blogs.technet.com/kpalmvig/archive/tags/CWA/default.aspx">CWA</category></item><item><title>Troubleshoot: UM voice mails not submitted to Hub Transport</title><link>http://blogs.technet.com/kpalmvig/archive/2007/12/26/troubleshoot-um-voice-mails-not-submitted-to-hub-transport.aspx</link><pubDate>Thu, 27 Dec 2007 01:19:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:2682385</guid><dc:creator>kpalmvig</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.technet.com/kpalmvig/comments/2682385.aspx</comments><wfw:commentRss>http://blogs.technet.com/kpalmvig/commentrss.aspx?PostID=2682385</wfw:commentRss><description>&lt;p&gt;After you have set up the Exchange Server 2007 UM role in a lab or in production and want to test Auto Attendant functionality by leaving voice mails for one or more users, you may experience that the Auto Attendant plays the greeting and asks for your message but the user doesn't receive anything although everything seems fine.&lt;/p&gt;  &lt;p&gt;Voice mails are in fact recorded and will queue up in this directory: C:\Program Files\Microsoft\Exchange Server\UnifiedMessaging\voicemail&lt;/p&gt;  &lt;p&gt;This situation can be identified by the following warning in the Application Event log:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;font face="Lucida Console" size="1"&gt;Event Type:&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Warning        &lt;br /&gt;Event Source:&amp;#160;&amp;#160;&amp;#160; MSExchange Unified Messaging         &lt;br /&gt;Event Category:&amp;#160; UMCore         &lt;br /&gt;Event ID:&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; 1185         &lt;br /&gt;Date:&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; 17-12-2007         &lt;br /&gt;Time:&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; 16:32:06         &lt;br /&gt;User:&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; N/A         &lt;br /&gt;Computer:&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;Servername&amp;gt;         &lt;br /&gt;Description:         &lt;br /&gt;The Unified Messaging server was unable to submit a message to Hub Transport server &amp;quot;&amp;lt;Servername&amp;gt;&amp;quot; because the following error occurred: The Unified Messaging server failed to authenticate to the SMTP server: The specified target is unknown or unreachable. &lt;/font&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;There can be multiple reasons for this, some of these are listed below.&lt;/p&gt;  &lt;h4&gt;SPN's&lt;/h4&gt;  &lt;p&gt;If Service Principal Names (SPN) are not registered correctly for your Hub Transport Servers SMTP service, the UM service may fail to identify a usable receive connector and fail to deliver the voice mail.&lt;/p&gt;  &lt;p&gt;One scenario where SPN's are registered incorrectly is if receive connectors have been installed on multiple servers (e.g. if the Exchange Organization used to be Exchange Server 2003 and mailboxes and services were migrated to Exchange Server 2007).&lt;/p&gt;  &lt;p&gt;To verify that local SPN registration is correct, first run:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;setspn -L &amp;lt;Servername&amp;gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;This will list the locally registered SPN's, there should be only two &amp;quot;&lt;strong&gt;SmtpSvc&lt;/strong&gt;&amp;quot; SPN's:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;SmtpSvc/SERVER      &lt;br /&gt;SmtpSvc/server.domain.ext&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;The more likely situation is that another server that no longer has a receive connector installed still have a &amp;quot;&lt;strong&gt;SmtpSvc&lt;/strong&gt;&amp;quot; SPN registered.&lt;/p&gt;  &lt;p&gt;To search Active Directory for orphan SPN's, use LDP; connect and bind to AD and press Ctrl-S for the search dialog. &lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;Base Dn: DC=domain,DC=ext      &lt;br /&gt;Filter: servicePrincipalName=smtpsvc*&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;This will result in a list like this:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;Getting 2 entries:      &lt;br /&gt;&amp;gt;&amp;gt; Dn: CN=OLDSERVER,CN=Computers,DC=domain,DC=ext       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; 5&amp;gt; objectClass: top; person; organizationalPerson; user; computer;       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; 1&amp;gt; cn: OLDSERVER;       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; 1&amp;gt; distinguishedName: CN=OLDSERVER,CN=Computers,DC=domain,DC=ext;       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; 1&amp;gt; name: OLDSERVER;       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; 1&amp;gt; canonicalName: domain.ext/Computers/OLDSERVER;       &lt;br /&gt;&amp;gt;&amp;gt; Dn: CN=NEWSERVER,CN=Computers,DC=domain,DC=ext       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; 5&amp;gt; objectClass: top; person; organizationalPerson; user; computer;       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; 1&amp;gt; cn: NEWSERVER;       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; 1&amp;gt; distinguishedName: CN=NEWSERVER,CN=Computers,DC=domain,DC=ext;       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; 1&amp;gt; name: NEWSERVER;       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; 1&amp;gt; canonicalName: domain.ext/Computers/NEWSERVER;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;Now use ldp or adsiedit to further drill down on the OLDSERVER object, I find using adsiedit easier as it allows for instant editing if required. &lt;font color="#ff0000"&gt;If you're not familiar with editing directly on AD objects, get assistance from someone who is!&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;List the content of &lt;strong&gt;servicePrincipalName&lt;/strong&gt; and verify that no &lt;strong&gt;SmtpSvc&lt;/strong&gt; entry exists if no SMTP service is running on the machine and verify that only the servers' own name is listed for any SPN.&lt;/p&gt;  &lt;p&gt;After removing any faulty SPN registrations; restart the Microsoft Exchange Transport Service on your Hub Transport Server. Then restart Microsoft Exchange Unified Messaging to pick up voice mails in the queue.&lt;/p&gt;  &lt;h4&gt;Certificates&lt;/h4&gt;  &lt;p&gt;Exchange UM submits the mails with voice content by using TLS, therefore UM may be unable to authenticate to the receive connector on the Hub Transport Server if the servers use the self signed certificate that Exchange supplies upon installation.&lt;/p&gt;  &lt;p&gt;Verify what certificates are installed by running:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;strong&gt;Get-ExchangeCertificate&lt;/strong&gt; | ft services,thumbprint,isselfsigned -auto&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;The result will look somewhat like this:&lt;/p&gt;  &lt;p&gt;&lt;font face="Lucida Console" size="1"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Services Thumbprint&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; IsSelfSigned      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; -------- ----------&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; ------------       &lt;br /&gt;IMAP, POP, UM, IIS, SMTP 1234567890ABCDEF1234567890ABCDEF12345678&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; True&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;As you can see the only existing certificate is self signed.&lt;/p&gt;  &lt;p&gt;Create new certificates for all Exchange Servers in the organization by running this cmdlet:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;strong&gt;New-ExchangeCertificate&lt;/strong&gt; -GenerateRequest -domainname &amp;lt;Server FQDN&amp;gt;, &amp;lt;Server NetBIOS name&amp;gt;[, Server Alias] -FriendlyName &amp;lt;Server FQDN&amp;gt; -privatekeyexportable:$true -keysize 1024 -path c:\certreq.txt&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;Submit the request file to your internal CA (depending on your Public Key Infrastructure) and save the resulting certificate file as c:\certnew.cer&lt;/p&gt;  &lt;p&gt;Then import the certificate by running this cmdlet:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;strong&gt;Import-ExchangeCertificate&lt;/strong&gt; -path c:\certnew.cer | &lt;strong&gt;Enable-ExchangeCertificate&lt;/strong&gt; -services IIS, POP, IMAP, UM, SMTP&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;Verify again what certificates are installed with &lt;strong&gt;Get-ExchangeCertificate&lt;/strong&gt;.&lt;/p&gt;  &lt;p&gt;The result should look like this:&lt;/p&gt;  &lt;p&gt;&lt;font face="Lucida Console" size="1"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Services Thumbprint&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; IsSelfSigned      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; -------- ----------&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; ------------       &lt;br /&gt;IMAP, POP, UM, IIS, SMTP ABCDEF1234567890ABCDEF1234567890ABFDEF12&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/font&gt;&lt;font size="1"&gt;&lt;font face="Lucida Console"&gt;&lt;font face="Lucida Console" size="1"&gt;False          &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; IMAP, POP, UM, SMTP 1234567890ABCDEF1234567890ABCDEF12345678&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/font&gt;&lt;font face="Lucida Console" size="1"&gt;True&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;As you can see, you now have a non self signed certificate in the certificate store. Remove the self signed certificate by running:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;strong&gt;Remove-ExchangeCertificate&lt;/strong&gt; 1234567890ABCDEF1234567890ABCDEF12345678&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;Restart Microsoft Exchange Transport and Microsoft Exchange Unified Messaging services and verify if voice mails are delivered.&lt;/p&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=2682385" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/kpalmvig/archive/tags/UM/default.aspx">UM</category><category domain="http://blogs.technet.com/kpalmvig/archive/tags/SPN/default.aspx">SPN</category><category domain="http://blogs.technet.com/kpalmvig/archive/tags/Certificates/default.aspx">Certificates</category><category domain="http://blogs.technet.com/kpalmvig/archive/tags/Troubleshooting/default.aspx">Troubleshooting</category></item></channel></rss>