Slow SMTP Connections to SmarterMail

If you are experiencing slow incoming SMTP connections to SmarterMail and the server uses a multi-core processor, we recommend changing the mode that the .NET Garbage Collector runs in to "Server mode". What this does is provide each CPU on the server, with its own object heap and garbage collection thread so, it can run the process in parallel. This should significantly speed up SMTP processing.

Applies to SmarterMail 8.x - 15.x

In order to implement this change do the following:

  1. In Notepad, create a file called MailService.exe.config in the same folder as MailService.exe. By default, this folder is located at C:\program files\smartertools\smartermail\service)
  2. Paste the following configuration (remove spaces from opening chevrons):
<?xml version="1.0"?>
<configuration>
<runtime>
<gcServer enabled="true"/>
<loadFromRemoteSources enabled="true">< /loadFromRemoteSources>
</runtime>
<system.runtime.remoting>
<customErrors mode="Off">< /customErrors>
</system.runtime.remoting>
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
</startup>
</configuration>
  1. Save the file.
  2. Stop and restart the SmarterMail service.

 

Learn more about SmarterMail's enterprise email features and benefits.

Feedback

Add Feedback
I`m using the 11.6 version and the connection get slow after "MAIL FROM:" statement. The .config file has been already with the code above and it is still slow.
Allan Zeidler (November 12, 2013 at 6:56 AM)
Allan, this is one way to optimize a multi-core server, but there could be another issue causing slow SMTP sessions on your server. Best bet is to contact our technical support staff or try posting in our forums.
Derek Curtis (November 12, 2013 at 8:29 AM)

Add Feedback