Commander Webmail Settings.

Commander Webmail Settings.

This article provides a detailed walkthrough for editing Webmail settings in the Commander interface. This is helpful for those using an Exchange server and getting errors with tools such as Outlook or Thunderbird connecting to Webmail or a way to change the Reply-to Address of sent emails. The configuration file webmail.ini needs to be edited and placed in the Commander directory (default: C:\Program Files (x86)\JAM Software\Commander)

for the changes to take effect. This article assumes you have already installed and configured Webmail services using Commander. The sample webmail.ini file is attached to this article for reference.

This article will cover the following:

Where it is located?

Editing webmail.ini to set your Reply-to Address

Editing webmail.ini to change authentication with Exchange servers

Configuring Commander Webmail for multiple domains in Exchange

Where it is Located?

Open Commander and go to File → Open → Webmail Settings File.

In the Open window, browse to C:\ProgramData\JAM Software\WebMailSettings.ini, where C:\ProgramData is usually the C:\ drive unless you have changed it. Click on OK. When applied, webmail.ini will be saved into that directory and all settings found there will be applied.

Editing webmail.ini to use a Reply-to Address

Most mail programs find the Reply-to Address by looking for an email header named “Reply-To:”, and if it is found, this address will be used as the sender of any auto-generated replies such as password resets or one-time link emails. If your Reply-to Address is not set correctly, then mail programs will likely get an error when trying to send a reply.

Open webmail.ini with Notepad or another plain text editor and find the [General] section.

You can change the Reply-to Address by simply entering in your Reply-To email address.

The Reply-to email address does not have to be the same as the one from receiving mail. This can be a secondary email used just for sending replies from webmail without changing your primary receiving email address. Save and close webmail.ini when you are finished editing it.

Editing webmail.ini to change the authentication method

Commander uses Basic Auth by default to query your Exchange server. If you are receiving an error querying your Exchange server, then you can try using NTLM instead of Basic Auth by changing webmail.ini as follows:

For Outlook Web App or OWA connections, find the following section near the top of webmail.ini:

; For Exchange 2007, change to NTLM instead of Basic Auth

For Exchange 2010 or newer, find the following section near the top of webmail.ini:

; For Exchange 2007 and older, set AuthenticationType=BasicAuth

If you are not sure or still receive an error, try both methods and use whichever works.

Configuring Commander Webmail for Multiple Domains in Exchange

Many users will have Outlook or OWA configured to connect to an email address that is different than the primary receiving email address. The primary receiving email address will be set as the default Reply-to Address when sending emails from Commander, but if the user’s email client is set to connect to a different address, then this will be used instead.

Must Read: Commander Webmail

An example of this would be an administrator who has both their work email address and personal email address connected to Outlook or OWA. The administrator’s Commander Reply-to Address may be set as [email protected], but when they are at work they may be using their work email address ([email protected]).

The easiest way to configure Commander for multiple domains is to use a wildcard for the Reply-to Address so it will match all and any Reply-to Addresses. This can be done as follows:

If you have multiple domains set up in your Exchange server, open webmail.ini and find the [General] section.

If you do not see any, then you can add one as follows:

; Add your domains here separated by a comma

; Do not remove the default setting [email protected]

ReplyToAddress=*.example.com

You will need to change “example.com” to your domain name here without the quotes. This will set the Reply-to Address to be any email address ending in example.com so if someone sends you an email with the address [email protected] it will respond from that email address instead of [email protected] or whatever was originally configured as the Reply-to address.

Changing the SMTP port for webmail

When you configure your mail program to use Commander Webmail as a relay, it will usually ask you which port to connect. If you are using an alternate or nonstandard port, then you can specify the port under [General] in webmail.ini by replacing 465 with your port number as follows:

SMTPPort=465

This setting works the same as the Port command in Outlook Web App for Exchange which can be found under OWA Options at Tools->E-mail Accounts. You can also enter a comma-separated list of alternative ports so if you need to test sending some emails from different ports, then this is an easy way to do that. Note that if you add multiple ports such as [General]

SMTPPort=465,98

then both ports will be used when connecting and you must make sure the mail program has the proper credentials configured for each port.

Editing webmail.ini to change default settings

You can also make changes to Commander Webmail such as changing the Reply-to Address, Sender Name, and other settings. When you do this it will apply those changes for all users as long as they are not overwritten by a user-specific webmail.ini file in their home directory. However if your email program does not send emails correctly, then you may need to enter your changes in a user-specific webmail.ini file instead of the global one. If that still does not work, then send us an email and we can help you further.