Loader

MailArchiva Upgrade
 

Important: Performing a major version update to MailArchiva V11 requires a full reindex of all existing volumes. Reindexing can be time-consuming depending on the size of your archive, so plan your upgrade accordingly. Estimates on expected reindexing times are provided below.

 

Licensing prerequisite

 

Please ensure the period of your support contract ends after the build date of the version of MailArchiva being downloaded. If not, it is necessary to renew your support contract and install an updated license.

 

Upgrade procedures

 

 

Full upgrade

 

A full upgrade is mandatory when performing a major version upgrade (e.g. v7 → v8). It may also be used to perform a minor version update (e.g. v8.11.32 → v8.11.33).

 

Backup

 

Although the installer is designed not to impact your server configuration and data, for rollback purposes, it may prove beneficial to back up your configuration prior to performing a full update.

 
Windows

 

Back up the following directory:

  • C:\ProgramData\MailArchiva — server config, application data, Tomcat

 

Linux

 

Back up the following directories:

 

  • /etc/opt/mailarchiva — server configuration
  • /var/opt/mailarchiva — application data & Tomcat
  • /var/log/mailarchiva/ROOT - logs

 

If upgrading to MailArchiva v11, it may also be prudent to back up your volume store indexes. The index locations can be found in Configuration→Volumes.

 

Windows

 

  1. Download the latest version of MailArchiva from https://bs.stimulustech.io/downloads
  1. Stop the existing MailArchiva service from the Windows Services Applet.
  2. Run the setup by double-clicking the installer. Accept a license agreement.
  3. When prompted to enter the maximum heap size, follow these guidelines. For instance, if 12GB of physical RAM is available, enter 5192m.
  4. If writing data to network shares, edit the MailArchiva Windows service using the Windows Service Manager, and set the logon account with sufficient read/write permissions.
  5. Start the MailArchiva Windows Service in the Windows Service Manager.
  6. Login to the Console by accessing http://localhost:8090 using a browser.
  7. If necessary, install the license key in Configuration→About
Linux

 

  1. Stop the server
systemctl stop mailarchiva

 

If the existing MailArchiva process can not be stopped cleanly, execute:

 

pkill -f mailarchiva

 

Alternatively, force-kill the process as follows:

 

pkill -9 -f mailarchiva

 

  1. Run the installer as indicated below and follow the installer prompts.
curl -sS https://bs.stimulustech.io/api/v1/download/product/maonprem/linux/latest | grep -oP '"downloadUrl": *"\K[^"]*' | xargs curl | tar -xz -C /tmp && cd /tmp/mailarchiva* && ./install


When prompted to enter the maximum heap size, follow these guidelines. For instance, if 12GB of physical RAM is available, enter 5192m.
 

  1. After installation, clean up the /tmp folder.

rm -r /tmp/mailarchiva_dist*

 

  1. Start the MailArchiva service by running:
systemctl start mailarchiva

 

  1. Login to the Console by accessing http://localhost:8090 using a browser.
  2. If the upgrade occurs correctly, the setup wizard will not be displayed.
  3. If necessary, install the license key in Configuration→About
 

Post installation steps

 

Upgrading to MailArchiva V11 from earlier versions


Please perform these post-installation steps:

 

  1. Update TLS Tomcat config — edit Tomcat config to update TLS connector (only if upgrading from MailArchiva v8 or earlier)
  2. Reconfigure authentication — Reconfigure Active Directory / basic authentication (only required if upgrading from MailArchiva v9 or earlier)
  3. Legacy volume format change — Ensure the server is using the latest volume format
  4. Reindex — Major update of search engine included. Therefore, a full reindex is required
  5. Build analytics — Switched analytics database to Duck DB. Rebuild analytics database required.
  6. Update TLS clients — TLS 1.2+ minimum is required for all connecting clients (informational, most clients should support TLS 1.2 by now)

 

Upgrading to MailArchiva V10 from earlier versions


Please perform these post-installation steps:

 

  1. Update TLS Tomcat config — edit Tomcat config to update TLS connector (only if upgrading from MailArchiva v8 or earlier)
  2. Reconfigure authentication — Reconfigure Active Directory / basic authentication (only required if upgrading from MailArchiva v9 or earlier)
  3. Legacy volume format change — Ensure the server is using the latest volume format
  4. Update TLS clients — TLS 1.2+ minimum is required for all connecting clients (informational, most clients should support TLS 1.2 by now)
Upgrading to MailArchiva V9 from earlier versions


Please perform these post-installation steps:

 

  1. Update TLS Tomcat config — edit Tomcat config to update TLS connector (only if upgrading from MailArchiva v8 or earlier)
  2. Legacy volume format change — Ensure the server is using the latest volume format
  3. Update TLS clients — TLS 1.2+ minimum is required for all connecting clients (informational, most clients should support TLS 1.2 by now)
Upgrading to MailArchiva V8.11 from earlier versions


Please perform these post-installation steps:

 

  1. Update Tomcat config — edit Tomcat config to update TLS connector (only if upgrading from v8.0 or earlier)

 

Post installation troubleshooting

 

Refer to the article on post-installation troubleshooting, should the server is having trouble starting, or cannot login, or you are experiencing other post-installation issues,

 

 

Minor update

 

In most cases, minor version updates can be performed via the Auto Update or WAR file method. If neither of these methods work, follow the major version upgrade procedure.
 

WAR upgrade

 
  1. Download the WAR file.
  2. Stop the MailArchiva service.
  3. Delete the contents of [web application] (do not rename this folder under the same location!) .
  4. Rename the WAR file to ROOT.war and copy it to the contents of the [web application].
  5. Start the MailArchiva service
     
Linux WAR upgrade

 

systemctl stop mailarchiva
rm /var/opt/mailarchiva/tomcat/webapps/ROOT.war
rm -rf /var/opt/mailarchiva/tomcat/webapps/ROOT
curl -sS https://bs.stimulustech.io/api/v1/download/product/maonprem/war/latest | grep -oP '"downloadUrl": *"\K[^"]*' | xargs curl -o /var/opt/mailarchiva/tomcat/webapps/ROOT.war
systemctl start mailarchiva
 
 
Windows WAR upgrade
 
Download the latest WAR file from https://stimulusstech.io/downloads and rename it to ROOT.war
Stop MailArchiva Service from Windows Service Manager
Delete the contents of C:\ProgramData\MailArchiva\Tomcat\webapps directory
Copy ROOT.war to C:\ProgramData\MailArchiva\Tomcat\webapps directory
Start MailArchiva Service from Windows Service Manager
 
 
Tips to retrieve other distributions
 
 
Latest (current) Linux build
 
curl -sS https://bs.stimulustech.io/api/v1/download/product/maonprem/linux/latest \
  | grep -oP '"downloadUrl": *"\K[^"]*' | xargs curl -L -o mailarchiva-linux.tar.gz
 
Latest (current) WAR build
 
curl -sS https://bs.stimulustech.io/api/v1/download/product/maonprem/war/latest \
  | grep -oP '"downloadUrl": *"\K[^"]*' | xargs curl -L -o mailarchiva.war
 
Latest v9 Linux
 
curl -sS "https://bs.stimulustech.io/api/v1/download/product/maonprem/linux/latestwithin?lowerVersion=8.99.99&upperVersion=9.9999.9999" \
  | grep -oP '"downloadUrl": *"\K[^"]*' | xargs curl -L -o mailarchiva-v9-linux.tar.gz
 
 
Latest v9 WAR
 
curl -sS "https://bs.stimulustech.io/api/v1/download/product/maonprem/war/latestwithin?lowerVersion=8.99.99&upperVersion=9.9999.9999" \
  | grep -oP '"downloadUrl": *"\K[^"]*' | xargs curl -L -o ROOT-v9.war
 

 

Auto update

 

  1. Login to the MailArchiva console.
  2. Visit Configuration->Auto Update.
  3. Click the Update button.
     
Note:  After the update is downloaded, it may be necessary to wait a while before the update is applied and the service is reloaded.

 

 

Supplementary minor version upgrade notes

 

  • A minor update does not change the app server and Java Runtime software; only the MailArchiva program code.
  • If new versions are not shown in Configuration→Auto Update, try performing a full major version upgrade to reinstall the auto-update application.
  • On rare occasions, the Java runtime may be changed between minor versions. In such situations, a hint will be placed in the changelog, and it may be necessary to perform a full major version upgrade.

 

Legacy upgrade (OSE/V1/V2)

 

  1. Disable archiving on the existing server.

    a) In Configuration→Journal Accounts, uncheck Enabled for all connections.
    b) In Configuration→Listeners, disable SMTP and Milter listeners.
  2. Close the existing Active volume in Configuration→Volumes.

 

Windows
 

  1. Stop the MailArchiva service from Windows Services Applet.
  2. Backup C:\Program Files (x86)\MailArchiva\Server\webapps\ROOT\WEB-INF\conf and C:\Program Files (x86)\MailArchiva\Server\webapps\ROOT\WEB-INF\logs directories using file explorer.
  3. Create a new volume in Configuration→Volumes.
  4. Continue by following the instructions Major Version Upgrade instructions above.
  5.  Login to the Console. Ensure Light stemming is selected in Configuration→Index.
  6. Click Configuration→Volumes→Re-index All to re-index all volumes.

Linux

 

  1. Stop the MailArchiva server.
systemctl stop mailarchiva (Linux)

 

  1. Create a new volume in Configuration→Volumes.
  2. Continue by following the instructions in Major Version Upgrade above.
  3.  Login to the Console. Ensure Light stemming is selected in Configuration->Index.
  4. Click Configuration→Volumes→Reindex All to reindex all volumes.
 

Supplementary major version upgrade notes

 

  • If moving servers and upgrading from MailArchiva v2/OSE at the same time, refer to Move Server for further instructions.
  • All major version upgrades require a valid support contract whose expiry date exceeds the build date of the software being downloaded.
  • If upgrading from OSE/v2, it is recommended to back up your server configuration at /opt/mailarchiva/server/webapps/ROOT/WEB-INF/conf/server.conf or C:\ProgramData\MailArchiva\server\webapps\ROOT\WEB-INF\conf\server.conf.
  • Ensure that volume store directories are not placed anywhere under the MailArchiva program directory (e.g.  C:\Program Files (x86)\MailArchiva or /opt/mailarchiva) as the directory will be recursively deleted during the upgrade process. Volume stores should always reside outside the MailArchiva program directory.
Note: Please refer to Upgrade Issues to resolve common issues related to server upgrades

 

Post Installation Steps

 

Reindex

 

MailArchiva V11 is a once-in-a-decade update that requires a full reindex of your volumes. Depending on how much data there is, and how fast your hardware is, it could take anywhere from an hour to several weeks to complete. Below is a table that gives rough guidance on how long it would take to reindex 1m emails.

 

Est. time taken to reindex 1M emails

 

Storage configuration

Best estimate

Plausible range

Local NVMe (your baseline)

20 min

17–25 min

Local SAS SSD

23 min

20–35 min

Local SAS HDD RAID (8 × 10K)

45 min

30–90 min

Local SAS HDD (single 10K)

120 min

60–240 min

iSCSI 10 GbE, all-flash SAN

23 min

20–40 min

iSCSI 10 GbE, HDD SAN

55 min

30–120 min

iSCSI 1 GbE, all-flash SAN

30 min

22–50 min

iSCSI 1 GbE, HDD SAN

75 min

40–180 min

Fibre Channel, all-flash SAN

22 min

20–35 min

NAS 10 GbE, HDD-backed NFS

60 min

35–130 min

NAS 1 GbE, HDD-backed NFS

90 min

45–240 min

 

After upgrading, go to Configuration→Volumes, click the checkbox to select all volumes, then click Reindex-selected. After doing this, emails will appear in the search results as they are indexed.

 

Build analytics

 

MailArchiva V11 embeds a new analytics database. After upgrading, go to Configuration→Volumes, click the checkbox to select all volumes, then click Build analytics.

 

Re-configure authentication

 

MailArchiva v10 has an entirely overhauled authentication system. No configuration change is necessary if using LDAP, Azure, Google.

 

Active Directory authentication change

 

If using Active Directory authentication, follow the procedure below after upgrading:
 

  1. Access the web console using http://localhost:8090/signonform.do (note: the URL path signonform.do)

  2. Login using the MailArchiva master admin account (i.e. login using admin). Refer to locked out if admin account details are lost.

  3. Create a new service account in Active Directory (e.g., service@business.local), or reuse an existing one. This account can be a regular user with permission to search and read user attributes under the Base DN.

  4. In the MailArchiva console, navigate to Configuration → Logins → Active Directory settings.
    a) In the Default realm, ensure the primary DNS domain name of your AD forest (written in uppercase) is correct. (for example, BUSINESS.LOCAL).
    b) In the FQDN of this server, enter the fully qualified domain name (FQDN) of the MailArchiva server (e.g. mailarchiva.business.local)
    c) Set the service account login (e.g service@business.local) and password to the account created or re-used above (for example, service@business.local).
    d) Verify the Active Directory server address is the FQDN of the AD server
    e) Test the authentication by clicking on Test Login.
    f) Optional: Delete the old computer account from Active Directory (for example, service$@business.local). It is no longer required.
    g) Save the changes.

Basic authentication change

 

After upgrading, if basic authentication is enabled, but the user records have not yet been updated, searches may return the warning:

"Search access is denied. User has no email address."

 

This occurs because a new security restriction now requires each username in Logins → Basic to be a full email address.

 

To resolve this:

 

  1. Go to Logins → Basic.

  2. Edit each user.

  3. Update the username to include the domain (for example, change "joe_blogs" to "joe_blogs@contoso.com").

  4. Log out and test again.

 

Update TLS 1.2+ clients
 

 In accordance with IETF guidelines, a minimum of TLS v1.2+ is now required for all TLS connections. Some older mail servers might not support TLS 1.2+, in which case, this security requirement can be relaxed by setting the Java property "-Dmailarchiva.tls.legacy=true" on server startup. For instance, on Linux, edit CATALINA_OPTS in /opt/mailarchiva/server/startserver and add "-Dmailarchiva.tls.legacy=true". On Windows, right click task tray applet, click configure, select Java tab, and add "-Dmailarchiva.tls.legacy=true" to Java options, thereafter restart MailArchiva.

 

Update Tomcat TLS connector config

 

MailArchiva v9 uses an upgraded version of Tomcat (Version 10) application server. After performing an upgrade from MailArchiva V8 to V9, the server may fail to start due to differences in the manner in which TLS is configured in its server.xml file.

 

Note: As an alternative to modifying your existing Tomcat server.xml (located at C:\ProgramData\MailArchivq\Tomcat\conf\server.xml), if you run into problems, you may simply delete the server.xml file in C:\ProgramData\MailArchivq\Tomcat\conf\server.xml and rerun the setup. The setup will replace the server.xml with a fresh working copy and the server will be accessible on port 8090. You'll obviously need to reconfigure your TLS settings afterward.

 

Edit C:\ProgramData\MailArchiva\Tomcat\conf\server.xml (Windows)
Edit /var/opt/mailarchiva/tomcat/conf/server.xml (Linux) 

 

c) In the TLS connector (if enabled), either replace the entire connector or add the SSLHostConfig tag as shown below.

 

  <Connector port="443" protocol="org.apache.coyote.http11.Http11Nio2Protocol" connectionTimeout="20000" redirectPort="8443" maxParameterCount="1000" URIEncoding="UTF-8" compression="on" noCompressionUserAgents="gozilla, traviata" compressableMimeType="text/html,text/xml,text/css,text/plain,application/javascript,application/json" enableLookups="false"  disableUploadTimeout="true" address="0.0.0.0" SSLEnabled="true" maxThreads="150">
        <SSLHostConfig>
            <Certificate certificateKeystoreFile="/etc/opt/mailarchiva/ROOT/mailarchivacerts" type="RSA" certificateKeystorePassword="##YourKeystorePassword##" certificateKeyAlias="tomcat" />
        </SSLHostConfig>
    </Connector>


Restart the server. If the server still fails to start up, examine the Tomcat startup logs in /var/opt/mailarchiva/tomcat/logs (Linux) or C:\ProgramData\MailArchiva\Tomcat\logs (Windows) and make corrections as needed.

 

Update Tomcat Config

 

When MailArchiva V8.11+ is downloaded and installed over any version prior to V8.11, the server may not start. The reason being, MailArchiva V8.11+ upgrades to Tomcat 9 and the auto-update system has been changed.

 

Edit C:\ProgramData\MailArchiva\Tomcat\conf\server.xml (Windows)
Edit /var/opt/mailarchiva/tomcat/conf/server.xml (Linux) 

 

a) In the host tag, ensure autoDeploy and unpackWARS are set to true.

 

<Host appBase="webapps" autoDeploy="true" name="localhost" unpackWARs="true" startStopThreads="6">

 

b) Remove all update service tag lines as illustrated below:

  <Service name="UpdateService">
    <Engine name="UpdateServiceEngine" defaultHost="localhost">
        <Host name="localhost"  appBase="update"
            unpackWARs="false" autoDeploy="false”> </Host>
    </Engine>
</Service>

 

c) In the TLS connector (if enabled), change the keyPass attribute to keystorePass.

 

<Connector port="443" allowUnsafeLegacyRenegotiation="false"  SSLEnabled="true" scheme="https" secure="true" clientAuth="false" keyAlias="tomcat" keystoreFile="/etc/opt/mailarchiva/ROOT/mailarchivacerts" keyPass="..."] ciphers="TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA,TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384,TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA,TLS_RSA_WITH_AES_128_CBC_SHA256,TLS_RSA_WITH_AES_128_CBC_SHA,TLS_RSA_WITH_AES_256_CBC_SHA256,TLS_RSA_WITH_AES_256_CBC_SHA" sslProtocol="TLS" compression="on" compressionMinSize="2048" noCompressionUserAgents="gozilla, traviata" maxThreads="500" minSpareThreads="25" acceptCount="500" connectionTimeout="20000" URIEncoding="UTF-8" protocol="org.apache.coyote.http11.Http11NioProtocol" compressableMimeType="text/html,text/xml,text/plain,text/javascript,application/javascript,application/json"/>

 

d) Ensure the AJP connector includes address and secretRequired attributes as follows:

 

<Connector port="8011" protocol="AJP/1.3" redirectPort="8443" address="0.0.0.0" secretRequired="false" />

 

Afterward, restart MailArchiva for changes to take effect.

 

Legacy Volume Format Change

 

Note: Starting MailArchiva V9, V1 and V2 volume formats are marked read-only. V4 is the latest volume format.

 

  • Go to Configuration→General→Archive, select volume format to V3/V4 (unless using EXTERNAL, then select EXT2). Save.
  • Click Configuration→Volumes, create a new volume and close the existing Active one.
     

Post Installation Troubleshooting

 

Slow startup

 

If you experience a slow startup, it could mean the server has run out of entropy or the graph database is busy upgrading/repairing itself. In the former case, install Haveged. In the latter case, it may take a while for the server to complete the repair of the graph database. Refer to GraphDB for a resolution. 

 

Invalid license

 

A license file is tied to a specific customer and a major release of MailArchiva. After upgrading, it is necessary to obtain a new license file from our Business Portal and install the license file.

 

Heap space changed

 

When running the installer on Windows, heap space settings may be lost. It is prudent to check the heap space settings after an upgrade. To do this, open the MailArchiva task tray applet from Windows→Program Files→Applet. Right click applet (bottom right corner of Windows task bar), click Configure, select the Java tab, verify that the maximum heap space setting is desirable. Typically, 5G or 6G. 

 

Windows logon account changed

 

The installer may lose the MailArchiva Service Logon Account settings. Therefore, especially in Windows environments that archive to remote storage (e.g. a NAS), after an upgrade it is advisable to reconfigure the logon account of the MailArchiva service. To do this, open Windows Services, right-click the MailArchiva service, change the Logon Account to a Windows account with sufficient privileges to read/write to the NAS. Restart MailArchiva service for changes to take effect.

 

Web console inaccessible

 

If running MailArchiva On-Premise, ensure that there are no extra folders under C:\ProgramData\MailArchiva\ (/etc/opt/mailarchiva) other than ROOT, core and Tomcat. Sometimes, people put backup folders there it breaks the system.

 

Server will not start

 

As of V8.11, MailArchiva won't start if there is any abnormal condition, such as a corrupted graph database. To ascertain why the server won't start, refer to the debug.log files at  /var/log/mailarchiva/ROOT/logs (C:\ProgramData\MailArchiva\ROOT\logs) or /var/log/mailarchiva/core/logs (C:\ProgramData\MailArchiva\core\logs).

 

Corrupted graph database

 

If there is a corrupted graph database, the debug.log file in /var/log/mailarchiva/ROOT/ or C:\ProgramData\MailArchiva\ROOT\logs will contain database-related errors. 

One possible solution is to delete/rename the graph database:

 

Stop MailArchiva service

Delete C:\ProgramData\MailArchiva\ROOT\database\archiva (Windows)

rm /var/opt/mailarchiva/ROOT/database/archiva (Linux)

 

Corrupted queue database

 

If there is a corrupted queue database:

 

Stop MailArchiva service

 

rename C:\ProgamData\MailArchiva\ROOT\queue\receive to C:\ProgamData\MailArchiva\ROOT\queue\restore_receive (Windows)

rename C:\ProgamData\MailArchiva\ROOT\queue\index to C:\ProgamData\MailArchiva\ROOT\queue\restore_index (Windows)

 

mv /var/opt/mailarchiva/ROOT/queue/receive to  /var/opt/mailarchiva/ROOT/queue/restore_receive (Linux)

mv /var/opt/mailarchiva/ROOT/queue/index to  /var/opt/mailarchiva/ROOT/queue/restore_index (Linux)

 

Corrupted audit index

 

If there is a corrupted queue database:


Stop MailArchiva service

delete C:\ProgamData\MailArchiva\ROOT\logs\audit/index (Windows)
rm /var/opt/mailarchiva/ROOT/logs/audit/index (Linux)

 

Restart MailArchiva and reindex the audit log file in Configuration→Logs.


Incorrect memory settings

 

The server may not start if either too much or too little heap space is allocated to MailArchiva. Refer to Heap Space Change and Memory Settings for further information on adjusting heap space within acceptable limits.

 

Web console does not show
 

Incompatible Tomcat server.xml File

 

It is possible that MailArchiva includes a version of Tomcat that is expecting a newer version of its server.xml with a different structure. The installer preserves the old server.xml to protect against losing potential HTTP/S customizations. Assuming this is the case, the resolution is as follows:

 

  • Stop the MailArchiva service
  • Move C:\ProgramData\MailArchiva\Tomcat to C:\Backup\Tomcat or /var/opt/mailarchiva/tomcat to /root/tomcat
  • Rerun the MailArchiva installer

 

Web console GUI looks mangled


Most likely your browser has cached pages. Press Shift + Refresh in your browser to reload the MailArchiva GUI and it should straighten out. 

 

All volumes unmounted

 

MailArchiva doesn't have sufficient privileges to read/write to the volumeinfo file residing at the root of the volume's store. Refer to Windows Logon Account Changed above.

Was this helpful?
© 2005 - 2026 ProProfs

Found this information useful? Visit mailarchiva.com to learn more about MailArchiva.