Category Archives: mailman

Delete mailman archieves

If required take backup of the archives

$ cp -a /var/lib/mailman/archives/private/<listname>/* <backup_directory>

Remove the archives

$ rm -rf <listname>/*

Once it is removed recreate the html archive files

$ mailman/bin/arch <listname>

./arun

Remove held messages from mailman queue

If you have too many mails/spams tend to pending moderator requests in mailman queue it can be removed by:

$ cd ~mailman
$ bin/discard /var/lib/mailman/data/heldmsg--*

And if the no. of argument list exceeds you can try:

$ find /var/lib/mailman/data -name heldmsg--* -print | xargs bin/discard

* the path of mailman depends on your implementation anyway.