Difference between revisions of "Troubleshooting Catglobe Sink Setup"

From Catglobe Wiki
Jump to: navigation, search
(II. RegisterSink.bat)
Line 1: Line 1:
== Catglobe Smtp Event Sink<br> ==
+
== <br> ==
  
=== I. CatGlobeSmtpEventSink.dll.config <br>  ===
+
== I. CatGlobeSmtpEventSink.dll.config <br>  ==
<source lang="xml">
 
<?xml version="1.0" encoding="utf-8" ?>
 
<configuration>
 
  <appSettings>
 
      <add key="Debug" value="true" />
 
      <add key="LogPath" value="C:\Temp\CGSink_58.log" />
 
      <add key="Impersonate" value="true" />
 
      <add key="domain" value="" />
 
      <add key="userName" value="ASPNET_Impersonated" />
 
      <add key="password" value="Catglobe" />
 
      <add key="ConnectionString" value="connect timeout=60;server=servername;uid=username;pwd=password;database=CatGlobeAdministration"/>        
 
      <add key="BlockedDomains" value="abcxyz.com"/>
 
  </appSettings>
 
</configuration>
 
</source>
 
  
=== II. RegisterSink.bat <br>  ===
+
&lt;source lang="xml"&gt; &lt;?xml version="1.0" encoding="utf-8"&nbsp;?&gt; &lt;configuration&gt;
<source lang="vb">
 
C:\Windows\Microsoft.NET\FrameWork64\v2.0.50727\regasm CatGlobeSmtpEventSink.dll /codebase
 
cscript smtpreg.vbs /add 1 OnArrival CatGlobeMailTransportSubmission_'''VersionName''' CatGlobeSmtpEventSink_Heisenberg.CatGlobeMailTransportSubmission "RCPT TO=*@*.catglobe.com"
 
cscript smtpreg.vbs /setprop 1 OnArrival CatGlobeMailTransportSubmission_'''VersionName''' "Source" Priority 20000
 
</source>
 
  
=== III. UnRegisterSink.bat <br>  ===
+
  &lt;appSettings&gt;
 +
      &lt;add key="Debug" value="true" /&gt;
 +
      &lt;add key="LogPath" value="C:\Temp\CGSink_58.log" /&gt;
 +
      &lt;add key="Impersonate" value="true" /&gt;
 +
      &lt;add key="domain" value="" /&gt;
 +
      &lt;add key="userName" value="ASPNET_Impersonated" /&gt;
 +
      &lt;add key="password" value="Catglobe" /&gt;
 +
      &lt;add key="ConnectionString" value="connect timeout=60;server=servername;uid=username;pwd=password;database=CatGlobeAdministration"/&gt;        
 +
      &lt;add key="BlockedDomains" value="abcxyz.com"/&gt;
 +
  &lt;/appSettings&gt;
  
cscript smtpreg.vbs /remove 1 OnArrival CatGlobeMailTransportSubmission_<span style="color: rgb(153, 51, 0);">VersionName</span><br>REM "if you are going to uninstall the sink on a 32bit Windows 2003 Server, remove the REM tag from the below line"<br>REM C:\Windows\Microsoft.NET\FrameWork\v2.0.50727\regasm CatGlobeSmtpEventSink.dll /unregister<br>REM "if you are going to uninstall the sink on a 64bit Windows 2003 Server, remove the REM tag from the below line"<br>C:\Windows\Microsoft.NET\FrameWork64\v2.0.50727\regasm CatGlobeSmtpEventSink.dll /unregister<br>
+
&lt;/configuration&gt; &lt;/source&gt;
  
=== IV. Other config files: RestartSMTP.bat &amp; StartSMTP.bat &amp; StopSMTP.bat  ===
+
== II. RegisterSink.bat <br> ==
  
1. RestartSMTP.bat<br>
+
&lt;source lang="vb"&gt; C:\Windows\Microsoft.NET\FrameWork64\v2.0.50727\regasm CatGlobeSmtpEventSink.dll /codebase cscript smtpreg.vbs /add 1 OnArrival CatGlobeMailTransportSubmission_'''VersionName''' CatGlobeSmtpEventSink_Heisenberg.CatGlobeMailTransportSubmission "RCPT TO=*@*.catglobe.com" cscript smtpreg.vbs /setprop 1 OnArrival CatGlobeMailTransportSubmission_'''VersionName''' "Source" Priority 20000 &lt;/source&gt;
  
call StopSMTP.bat<br>call StartSMTP.bat<br>
+
== III. UnRegisterSink.bat <br> ==
  
2. StartSMTP.bat<br>
+
cscript smtpreg.vbs /remove 1 OnArrival CatGlobeMailTransportSubmission_<span style="color: rgb(153, 51, 0);">VersionName</span><br>REM "if you are going to uninstall the sink on a 32bit Windows 2003 Server, remove the REM tag from the below line"<br>REM C:\Windows\Microsoft.NET\FrameWork\v2.0.50727\regasm CatGlobeSmtpEventSink.dll /unregister<br>REM "if you are going to uninstall the sink on a 64bit Windows 2003 Server, remove the REM tag from the below line"<br>C:\Windows\Microsoft.NET\FrameWork64\v2.0.50727\regasm CatGlobeSmtpEventSink.dll /unregister<br>  
  
net start iisadmin<br>net start w3svc<br>net start smtpsvc<br>
+
== IV. Other config files: RestartSMTP.bat &amp; StartSMTP.bat &amp; StopSMTP.bat  ==
  
3. StopSMTP.bat<br>
+
1. RestartSMTP.bat<br>  
  
net stop iisadmin /y<br><br>
+
call StopSMTP.bat<br>call StartSMTP.bat<br>
 +
 
 +
2. StartSMTP.bat<br>
 +
 
 +
net start iisadmin<br>net start w3svc<br>net start smtpsvc<br>
 +
 
 +
3. StopSMTP.bat<br>
 +
 
 +
net stop iisadmin /y<br><br>  
  
 
[[Category:Network_Setup]]
 
[[Category:Network_Setup]]

Revision as of 08:28, 25 November 2009


I. CatGlobeSmtpEventSink.dll.config

<source lang="xml"> <?xml version="1.0" encoding="utf-8" ?> <configuration>

  <appSettings>
     <add key="Debug" value="true" />
     <add key="LogPath" value="C:\Temp\CGSink_58.log" />		
     <add key="Impersonate" value="true" />
     <add key="domain" value="" />
     <add key="userName" value="ASPNET_Impersonated" />
     <add key="password" value="Catglobe" />
     <add key="ConnectionString" value="connect timeout=60;server=servername;uid=username;pwd=password;database=CatGlobeAdministration"/>	        
     <add key="BlockedDomains" value="abcxyz.com"/>
  </appSettings>

</configuration> </source>

II. RegisterSink.bat

<source lang="vb"> C:\Windows\Microsoft.NET\FrameWork64\v2.0.50727\regasm CatGlobeSmtpEventSink.dll /codebase cscript smtpreg.vbs /add 1 OnArrival CatGlobeMailTransportSubmission_VersionName CatGlobeSmtpEventSink_Heisenberg.CatGlobeMailTransportSubmission "RCPT TO=*@*.catglobe.com" cscript smtpreg.vbs /setprop 1 OnArrival CatGlobeMailTransportSubmission_VersionName "Source" Priority 20000 </source>

III. UnRegisterSink.bat

cscript smtpreg.vbs /remove 1 OnArrival CatGlobeMailTransportSubmission_VersionName
REM "if you are going to uninstall the sink on a 32bit Windows 2003 Server, remove the REM tag from the below line"
REM C:\Windows\Microsoft.NET\FrameWork\v2.0.50727\regasm CatGlobeSmtpEventSink.dll /unregister
REM "if you are going to uninstall the sink on a 64bit Windows 2003 Server, remove the REM tag from the below line"
C:\Windows\Microsoft.NET\FrameWork64\v2.0.50727\regasm CatGlobeSmtpEventSink.dll /unregister

IV. Other config files: RestartSMTP.bat & StartSMTP.bat & StopSMTP.bat

1. RestartSMTP.bat

call StopSMTP.bat
call StartSMTP.bat

2. StartSMTP.bat

net start iisadmin
net start w3svc
net start smtpsvc

3. StopSMTP.bat

net stop iisadmin /y