Enable SMTP request logging

To enable tracing of requests sent to the SMTP server configured in mail settings:

  1. Navigate to the folder where Adaxes service is installed. By default, the folder is C:\Program Files\Softerra\Adaxes 3\Service.

  2. Open the Softerra.Adaxes.Service.dll.config file with a text editor.

  3. Locate the configuration\softerra.adaxes\smtp\trace XML element.

  4. Set the enabled parameter to true and specify the path to the file that will store log records in the outputFilePath parameter. For example:

    <configuration>
        ...
        <softerra.adaxes>
            ...
            <smtp ...>
                <trace enabled="true" outputFilePath="C:\logs\smtp.trace.txt" />
    

    If you specify only the file name in the outputFilePath parameter, the log file will be created in the folder where the Softerra.Adaxes.Service.dll.config file is located.

  5. Save the file.

  6. Restart the Adaxes service.

Permanent logging of SMTP requests consumes resources and affects performance. The log file can grow quickly. It is recommended to enable logging only when it is needed for troubleshooting.