Clean Mailman Archive

GNU Mailman

Mailman archive consumes huge disk usage; in this article, we will clean archives on Mailman.

The steps to delete archives on Mailman are as follows:

  1. Disable the Archive Message feature through the Mailman dashboard settings.
  2. Log in to SSH and then navigate to the directory /usr/local/cpanel/3rdparty/mailman/archives/private
    Command:
    cd /usr/local/cpanel/3rdparty/mailman/archives/private
  3. If you want to back up the Mailman archive, you can do so by copying the .mbox file; if not, skip this step.
    Command:
    cp account-name-milis_domain.com.mbox/account-name-milis_domain.com.mbox /home/
  4. Empty the Mailman archive for the mailing list account [email protected]
    Command:
    echo '' > account-name-milis_domain.com.mbox/nama-account-milis_domain.com.mbox.mbox
  5. Wipe Archive
    Command:
    /usr/local/cpanel/3rdparty/mailman/bin/arch --wipe account-name-milis_domain.com
  6. Update Mailman Cache
    Command:
    /scripts/update_mailman_cache

Note:

  1. The use of the name-account-milis_domain.com is the name of the mailing list account you want to delete, for example, using the name domain name: @liteoss.com and wanting to delete the mailman sales archive, then replace it with sales_domain.com.
  2. In Mailman, the character @ is replaced with _
  3. This tutorial is not limited to Mailman users on Cpanel but also includes native Mailman users and Plesk users.
Load comments

Read more