How do I disable Mailman ?

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.

25687 root      16   0  2116 1036  828 R    0  0.4   0:00.02 top
    1 root      16   0  1980  656  568 S    0  0.2   0:00.03 init
16111 root      16   0  1644  572  480 S    0  0.2   0:00.02 syslogd
16114 root      17   0  1588  400  336 S    0  0.1   0:00.00 klogd
16148 named     19   0  107m 3032 1848 S    0  1.0   0:00.00 named
16179 root      15   0  7016 1076  688 S    0  0.4   0:00.00 sshd
16192 root      17   0  2636  860  696 S    0  0.3   0:00.00 xinetd
16245 root      19   0  2368 1152  996 S    0  0.4   0:00.00 mysqld_safe
16301 mysql     16   0  133m  18m 4628 S    0  6.6   0:00.21 mysqld
16344 root      16   0  1784  612  496 S    0  0.2   0:00.04 dovecot
16346 root      16   0  7708 1952 1436 S    0  0.7   0:00.04 dovecot-auth
16361 dovecot   16   0  4788 1820 1520 S    0  0.6   0:00.01 imap-login
16362 dovecot   16   0  4788 1820 1520 S    0  0.6   0:00.02 imap-login
16365 nobody    22   0 86056  81m  356 S    0 28.4   0:00.00 clamd.virtualmi
17420 root      16   0 31964  28m 1988 S    0 10.0   0:01.43 spamd
17500 root      15   0  6724 1784 1420 S    0  0.6   0:00.03 master
17507 postfix   16   0  6788 1736 1392 S    0  0.6   0:00.00 pickup
17508 postfix   16   0  6852 1860 1472 S    0  0.6   0:00.01 qmgr
17526 postfix   16   0  8244 2756 2228 S    0  0.9   0:00.05 smtpd
17529 root      16   0 34768  13m 8120 S    0  4.7   0:00.23 httpd
17535 postfix   15   0  6780 1732 1380 S    0  0.6   0:00.00 anvil
17537 apache    15   0 22932 3400  488 S    0  1.2   0:00.01 httpd
17547 root      16   0  3204 1104  576 S    0  0.4   0:00.00 crond
17563 root      18   0  5460  700  432 S    0  0.2   0:00.00 saslauthd
17564 root      18   0  5460  432  164 S    0  0.1   0:00.00 saslauthd
17577 root      16   0  6284 1848  796 S    0  0.6   0:00.04 monit
17578 postfix   16   0  8244 2760 2228 S    0  0.9   0:00.06 smtpd
17592 apache    16   0 39172  13m 4404 S    0  4.9   0:00.24 httpd
17593 apache    16   0 34768 6488  876 S    0  2.2   0:00.00 httpd
17594 apache    18   0 34768 6488  876 S    0  2.2   0:00.00 httpd
17605 root      16   0 31964  27m  680 S    0  9.5   0:00.00 spamd
17607 root      16   0 31964  27m  596 S    0  9.5   0:00.00 spamd
17608 root      16   0 11264 6012 1740 S    0  2.1   0:00.11 miniserv.pl
17620 root      17   0 32688  29m 1560 S    0 10.5   0:01.47 lookup-domain-d
17637 root      16   0 11540 6340 1808 S    0  2.2   0:00.10 miniserv.pl
17687 root      16   0 10088 2972 2320 S    0  1.0   0:00.17 sshd
17936 root      16   0  2512 1436 1132 S    0  0.5   0:00.18 bash
24484 dovecot   15   0  4784 1820 1520 S    0  0.6   0:00.00 pop3-login
24486 dovecot   16   0  4784 1820 1520 S    0  0.6   0:00.00 pop3-login
24517 postfix   16   0  6792 2036 1648 S    0  0.7   0:00.00 trivial-rewrite
24521 postfix   16   0  6908 2192 1764 S    0  0.7   0:00.00 cleanup
24523 postfix   15   0  6876 2136 1748 S    0  0.7   0:00.00 local
24532 dovecot   15   0  4784 1832 1524 S    0  0.6   0:00.00 pop3-login
25690 dovecot   15   0  4788 1820 1520 S    0  0.6   0:00.00 imap-login
25715 dovecot   18   0  4784 1816 1516 S    0  0.6   0:00.00 pop3-login

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