How to remove Mailman list from command line

Find rmlist binary file under  /usr/local/cpanel/3rdparty/mailman/bin folder

For more info run:

[email protected] [/usr/local/cpanel/3rdparty/mailman/bin]# ./rmlist --help

rmlist [-a] [-h] listname

Remove the list’s archives too, or if the list has already been
deleted, remove any residual archives.

Print this help message and exit.

Read the rest

How to disable Mailman archiving

Sudenly you may find that your mailing list archive has grown too large.

So you need to decide if you’re really need to keep your archives and if not then go ahead and disable it:

- Login your cPanel 
- 'Maillist'
- select your mail list
- 'Archiving Options'
- set 'Archive messages?'
Read the rest

How to install/reinstall mailman on cPanel server

Check Tweak Settings, should be ‘0’

cat /var/cpanel/cpanel.config |grep skipmailman


Deprecated scripts

/usr/local/cpanel/bin/mailman-install --force

To install mailman run the following:

/usr/local/cpanel/scripts/update_local_rpm_versions --edit target_settings.mailman installed
/usr/local/cpanel/scripts/check_cpanel_rpms --fix --targets=mailman

Run upcp:

/scripts/upcp --force
systemctl start mailman.service

Job for mailman.service failed because a configured resource limit was exceeded.

Read the rest

How to remove mailman archives on cPanel server

Find your mbox files

ls -la /usr/local/cpanel/3rdparty/mailman/archives/private/
ls -la /usr/local/cpanel/3rdparty/mailman/archives/private/

Backup *.mbox files if needed and empty them:

truncate -s 0 /usr/local/cpanel/3rdparty/mailman/archives/private/
truncate -s 0 /usr/local/cpanel/3rdparty/mailman/archives/private/

Go to bin/ folder and wipe as following:

cd /usr/local/cpanel/3rdparty/mailman/bin

./arch --wipe
./arch --wipe
Read the rest