These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for How do I disable Mailman ? on the new forum.
How do I disable Mailman ?
I don't use mailing list but Mailman seems to run 6 times simultaneously when I SSH and do 'top'.
Now I did
/etc/init.d/mailman stop
..and I gained 50Mb RAM on my modest 296Mb VPS with 6 domains. But I am a bit scared it will be back when booting. How do I disable it for good?
And for the VPS experts please, do you see any other unnecessary RAM eaters in my momentary TOP list:
27977 dovecot 15 0 4788 1820 1520 S 0 0.6 0:00.04 imap-login 32683 root 16 0 2116 1052 832 R 0 0.4 0:01.24 top 1 root 16 0 1980 656 568 S 0 0.2 0:01.28 init 20369 root 15 0 1644 572 480 S 0 0.2 0:02.25 syslogd 20372 root 18 0 1588 400 336 S 0 0.1 0:00.00 klogd 20419 root 16 0 7016 1076 688 S 0 0.4 0:01.35 sshd 20430 root 18 0 2636 860 696 S 0 0.3 0:00.00 xinetd 20465 root 19 0 2368 1152 996 S 0 0.4 0:00.00 mysqld_safe 21539 mysql 16 0 136m 20m 4912 S 0 7.1 0:12.39 mysqld 21568 root 15 0 1784 620 496 S 0 0.2 0:05.61 dovecot 21575 root 16 0 7708 2000 1436 S 0 0.7 0:04.71 dovecot-auth 21602 root 16 0 31964 28m 1988 S 0 10.0 0:03.62 spamd 21656 root 16 0 6724 1784 1420 S 0 0.6 0:03.82 master 21666 postfix 16 0 6852 1868 1472 S 0 0.6 0:00.91 qmgr 21681 root 16 0 31964 27m 680 S 0 9.5 0:00.00 spamd 21682 root 16 0 31964 27m 596 S 0 9.5 0:00.00 spamd 21683 root 15 0 41784 20m 9608 S 0 7.3 0:04.26 httpd 21694 root 16 0 3204 1112 576 S 0 0.4 0:00.84 crond 21704 root 18 0 5460 700 432 S 0 0.2 0:00.00 saslauthd 21705 root 18 0 5460 432 164 S 0 0.1 0:00.00 saslauthd 21745 root 16 0 6284 1868 812 S 0 0.6 0:06.91 monit 21785 root 17 0 32756 29m 1560 S 0 10.5 1:31.50 lookup-domain-d 21790 root 16 0 11288 6184 1824 S 0 2.1 0:25.93 miniserv.pl 21808 root 16 0 11540 6380 1808 S 0 2.2 0:03.92 miniserv.pl 13542 dovecot 16 0 4784 1816 1516 S 0 0.6 0:01.63 pop3-login 13543 dovecot 16 0 4784 1816 1516 S 0 0.6 0:01.74 pop3-login 13544 dovecot 16 0 4784 1816 1516 S 0 0.6 0:01.51 pop3-login 13545 dovecot 16 0 4784 1816 1516 S 0 0.6 0:01.58 pop3-login 13546 dovecot 16 0 4784 1816 1516 S 0 0.6 0:01.59 pop3-login 13547 dovecot 16 0 4784 1816 1516 S 0 0.6 0:01.60 pop3-login 20253 postfix 16 0 6780 1780 1408 S 0 0.6 0:00.06 anvil 21818 root 18 0 3744 1432 828 S 0 0.5 0:00.00 crond 21821 root 16 0 2320 1072 956 S 0 0.4 0:00.00 freshclam-sleep 21857 root 18 0 1568 400 348 S 0 0.1 0:00.00 sleep 22303 postfix 15 0 8244 2772 2228 S 0 0.9 0:00.14 smtpd 23755 root 16 0 10088 2972 2320 S 0 1.0 0:00.84 sshd 23775 root 15 0 2512 1380 1116 S 0 0.5 0:00.03 bash 27745 postfix 16 0 6788 1736 1392 S 0 0.6 0:00.00 pickup 27973 dovecot 16 0 4788 1820 1520 S 0 0.6 0:00.04 imap-login 27974 dovecot 15 0 4788 1820 1520 S 0 0.6 0:00.06 imap-login 27975 dovecot 16 0 4788 1820 1520 S 0 0.6 0:00.05 imap-login 27976 dovecot 16 0 4788 1820 1520 S 0 0.6 0:00.03 imap-login 27979 dovecot 15 0 4788 1820 1520 S 0 0.6 0:00.04 imap-login 27980 dovecot 16 0 4788 1820 1520 S 0 0.6 0:00.04 imap-login 27981 dovecot 16 0 4788 1820 1520 S 0 0.6 0:00.04 imap-login 27982 dovecot 15 0 4788 1820 1520 S 0 0.6 0:00.04 imap-login 27983 dovecot 16 0 4788 1820 1520 S 0 0.6 0:00.04 imap-login 27984 dovecot 16 0 4788 1820 1520 S 0 0.6 0:00.04 imap-login 30148 apache 16 0 31116 10m 480 S 0 3.6 0:00.01 httpd 30150 apache 16 0 41920 13m 1704 S 0 4.6 0:00.00 httpd 30151 apache 16 0 41920 13m 1704 S 0 4.6 0:00.00 httpd 1639 postfix 16 0 8244 2752 2228 S 0 0.9 0:00.04 smtpd 3426 apache 16 0 41920 13m 1704 S 0 4.6 0:00.00 httpd
You can modify services by going into Webmin -> Services -> Bootup and Shutdown. You can stop the service from there, as well as prevent it from starting up the next time your server boots.
You'll also want to disable the Mailman feature in Virtualmin by going into Virtualmin -> System Settings -> Features and Plugins, and unchecking the Mailman option. That'll prevent mailman from showing up as a feature in the individual Virtual Servers.
Also, another RAM saving measure would be to go into Email Messages -> Spam and Virus Scanning, and set "SpamAssassin client program" to "spamassassin (standalone program)".
It looks like you're running spamd in daemon mode now. And while that's overall a more efficient way of running it, it's a lot more RAM intensive to run the daemon. Moving to the standalone program will spare a decent amount of RAM at the expense of requiring more CPU, as it launches spamassassin each time an email comes in.
-Eric
Thanks for the reply! Found the mailman link. It's actually here:
Webmin -> System -> Bootup and Shutdown
My Spam setting is already "spamassassin (standalone program)". I am not sure where the spamd comes from, I didn't noticed that before. But I noticed that my SPAM problem was a bit less the last few days.
So how can I switch spamd 'off' - or 'on' again if I want it back later?
Suddenly I get very high memory use with this process:
16365 nobody 22 0 86056 81m 356 S 0 28.4 0:00.00 clamd.virtualmi
I have still no idea how to disable SPAMD completely.
If you're not using the spamassassin daemon, you can disable the daemon from starting that same Bootup and Shutdown area that you stopped Mailman in.
For ClamAV -- unfortunately, Clam (and SpamAssassin, for that matter) both can use a lot of CPU and Memory resources.
It's not abnormal for it's memory use to increase over time.
If you're low on memory, one option would be to restart the daemon each night.
Another option is that, like SpamAssassin, you can choose to run it without the daemon. That requires more CPU, but less RAM if you aren't receiving much email.
-Eric