Toggle menu
862
3.8K
30.2K
279.1K
Catglobe Wiki
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Troubleshooting Catglobe Sink Setup: Difference between revisions

From Catglobe Wiki
No edit summary
Line 2: Line 2:


=== I. CatGlobeSmtpEventSink.dll.config <br>  ===
=== I. CatGlobeSmtpEventSink.dll.config <br>  ===
 
<source lang="xml">
<source lang="xml">&gt;<br>
<?xml version="1.0" encoding="utf-8" ?>
&lt;?xml version="1.0" encoding="utf-8"&nbsp;?&gt;<br>&lt;configuration&gt;<br> &lt;appSettings&gt;<br> &lt;add key="Debug" value="true" /&gt;<br> &lt;add key="LogPath" value="C:\Temp\CGSink_58.log" /&gt; <br> &lt;add key="Impersonate" value="true" /&gt;<br> &lt;add key="domain" value="" /&gt;<br> &lt;add key="userName" value="ASPNET_Impersonated" /&gt;<br> &lt;add key="password" value="Catglobe" /&gt;<br> &lt;add key="ConnectionString" value="connect timeout=60;server=SERVERNAME;uid=USER;pwd=PASSWORD;database=CatGlobeAdministration"/&gt; <br> &lt;add key="BlockedDomains" value="abcxyz.com"/&gt;<br> &lt;/appSettings&gt;<br>&lt;/configuration&gt;
<configuration>
</source>;<br>
  <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=catproc;uid=username;pwd=password;database=CatGlobeAdministration"/>        
      <add key="BlockedDomains" value="abcxyz.com"/>
  </appSettings>
</configuration>
</source>


=== II. RegisterSink.bat <br>  ===
=== II. RegisterSink.bat <br>  ===

Revision as of 07:15, 25 November 2009

Catglobe Smtp Event Sink

I. CatGlobeSmtpEventSink.dll.config

<?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=catproc;uid=username;pwd=password;database=CatGlobeAdministration"/>	        
      <add key="BlockedDomains" value="abcxyz.com"/>
   </appSettings>
</configuration>

II. RegisterSink.bat

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

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