Change Default SMTP Port

Modified on Sun, 17 Jul 2016 at 09:19 PM

Symptom:

Metadefender Mail Agent is listening on port 10025 by default

Cause:

This is the Defualt port Mail Agent is configured to use, however this can be changed.


Solution:


To change the Default port of Mail Agent:


  1. Navigate to Opswat install directory (default: "C:\Program Files (x86)\OPSWAT\Metadefender Core 8"), Then navigate to folder "Metadefender Mail Agent"
  2. Open "Metadefender.Email.Engine.Generic.Agent.dll.config" with notepad or any other editor.
  3. Replace the value of port under the line "<setting name="EmailRelayInPort" serializeAs="String">".
  4. Save the file.
  5. Restart the Metadefender Mail Agent Service.
  6. Check to see the server is listening on the desired port. In CMD run the following command: "netstat -na | findstr "port_number"" (the port number could also be seen on metadefender core management console, in Sources -> Mail Agent -> Setup.

* Note: If the port hasn't changed after the services restart, then a repair to the installation is required.


  1. Run the metadefender core setup again and choose repair.
  2. Restart the Server.
  3. Check to see the server is listening on the desired port. In CMD run the following command: "netstat -na | findstr "port_number"" (the port number could also be seen on metadefender core management console, in Sources -> Mail Agent -> Setup.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article