Help! high spamd processes since installing qmail-scanner
Hi,
Can someone please help me with these questions?
1. How do you set the "required hits" for spamassassin now that I don't have psa-spamassassin in plesk anymore?
The email header spam listing says it is "5" but have no idea where it gets that figure.
2. If an email gets marked as spam and it is not spam how do you remove it being marked as spam?
3. Why am I getting these all the time still by "root"?
10370 root 16 0 37752 36M 1928 S 14.6 3.6 2:04 0 spamd child
This is the only thing that is showing as installed in the plesk updater section:
SPAM blocker for QMail daemon
Is this related to the spamd child listing and should it be removed?
Thanks!
Can someone please help me with these questions?
1. How do you set the "required hits" for spamassassin now that I don't have psa-spamassassin in plesk anymore?
The email header spam listing says it is "5" but have no idea where it gets that figure.
2. If an email gets marked as spam and it is not spam how do you remove it being marked as spam?
3. Why am I getting these all the time still by "root"?
10370 root 16 0 37752 36M 1928 S 14.6 3.6 2:04 0 spamd child
This is the only thing that is showing as installed in the plesk updater section:
SPAM blocker for QMail daemon
Is this related to the spamd child listing and should it be removed?
Thanks!
-
- Forum User
- Posts: 46
- Joined: Thu May 12, 2005 3:50 am
- Location: Sunny California
Hi M,
1. If you edit the file: /etc/mail/spamassassin/local.cf
You will find the SpamAssassin config options. One of them will be:
required_hits 5
(SA normally defaults to 5)
2. Whitelisting: in the same file, you can add lines such as the following:
whitelist_from someone@domain.com
whitelist_from *@domain.com
whitelist_from *@*.domain.com
(and conversely)
blacklist_from *@domain.com
(etc)
3. The 'spamd' process is the SpamAssassin daemon. On your server it appears to be running as user root. I'm not sure if this is normal for CentOS 3.7 or not. Do you also have spamd processes running as user 'popuser' ? If it's not running under multiple user names, then I would not worry about it.
1. If you edit the file: /etc/mail/spamassassin/local.cf
You will find the SpamAssassin config options. One of them will be:
required_hits 5
(SA normally defaults to 5)
2. Whitelisting: in the same file, you can add lines such as the following:
whitelist_from someone@domain.com
whitelist_from *@domain.com
whitelist_from *@*.domain.com
(and conversely)
blacklist_from *@domain.com
(etc)
3. The 'spamd' process is the SpamAssassin daemon. On your server it appears to be running as user root. I'm not sure if this is normal for CentOS 3.7 or not. Do you also have spamd processes running as user 'popuser' ? If it's not running under multiple user names, then I would not worry about it.
-
- Long Time Forum Regular
- Posts: 2813
- Joined: Sat Aug 20, 2005 9:30 am
- Location: The Netherlands
On my qmail-scanner machines spamd processes are running as qmailq, not root. What does /etc/sysconfig/spamassassin look like on your machine? Mine has:
Which is what the installation of qmail-scanner set. The -u qmailq tells your spamd processes to run as user qmailq.
Code: Select all
SPAMDOPTIONS="-d -u qmailq -q -x -c -H /var/qmail "
Lemonbit Internet Dedicated Server Management
Hi,
This is a section from top this morning:
467 root 16 0 34248 33M 2204 R 25.7 3.3 0:07 0 spamd child
864 qmailq 22 0 5612 5612 1936 S 9.9 0.5 0:00 0 /usr/bin/perl -T /var/qmail/bin/qmail-scanner-queue.pl
853 qmailq 16 0 24756 24M 464 S 2.7 2.4 0:00 0 clamd
2998 apache 15 0 14032 9928 3704 S 1.1 0.9 0:18 0 /usr/sbin/httpd
1292 named 15 0 10904 10M 832 S 0.7 1.0 31:50 0 /usr/sbin/named -u named -c /etc/named.conf -u named -t /va
812 qmaild 17 0 1016 1016 816 S 0.7 0.0 0:00 0 /var/qmail/bin/qmail-smtpd /var/qmail/bin/smtp_auth /var/qm
818 root 15 0 1160 1160 892 R 0.3 0.1 0:00 0 top -c
871 qmailq 24 0 556 556 476 R 0.3 0.0 0:00 0 /usr/bin/spamc -c
Am on CentOS 3.7 and Plesk 8 with CentOS 3.6 (2.4.21-40.EL) kernel
This is another spamd child but run as qmailq:
467 qmailq 16 0 34332 33M 2172 R 7.8 3.3 0:12 0 spamd child
1380 qmailq 21 0 24756 24M 464 S 0.7 2.4 0:00 0 clamd
So some of these spamd child processes run as root and some as qmailq...I'm lost as to what this means or to do.
No such file or directory my machine says./etc/sysconfig/spamassassin look like on your machine?
I get nothing ... just goes to the prompt.SPAMDOPTIONS="-d -u qmailq -q -x -c -H /var/qmail "
This is a section from top this morning:
467 root 16 0 34248 33M 2204 R 25.7 3.3 0:07 0 spamd child
864 qmailq 22 0 5612 5612 1936 S 9.9 0.5 0:00 0 /usr/bin/perl -T /var/qmail/bin/qmail-scanner-queue.pl
853 qmailq 16 0 24756 24M 464 S 2.7 2.4 0:00 0 clamd
2998 apache 15 0 14032 9928 3704 S 1.1 0.9 0:18 0 /usr/sbin/httpd
1292 named 15 0 10904 10M 832 S 0.7 1.0 31:50 0 /usr/sbin/named -u named -c /etc/named.conf -u named -t /va
812 qmaild 17 0 1016 1016 816 S 0.7 0.0 0:00 0 /var/qmail/bin/qmail-smtpd /var/qmail/bin/smtp_auth /var/qm
818 root 15 0 1160 1160 892 R 0.3 0.1 0:00 0 top -c
871 qmailq 24 0 556 556 476 R 0.3 0.0 0:00 0 /usr/bin/spamc -c
Am on CentOS 3.7 and Plesk 8 with CentOS 3.6 (2.4.21-40.EL) kernel
This is another spamd child but run as qmailq:
467 qmailq 16 0 34332 33M 2172 R 7.8 3.3 0:12 0 spamd child
1380 qmailq 21 0 24756 24M 464 S 0.7 2.4 0:00 0 clamd
So some of these spamd child processes run as root and some as qmailq...I'm lost as to what this means or to do.
-
- Long Time Forum Regular
- Posts: 2813
- Joined: Sat Aug 20, 2005 9:30 am
- Location: The Netherlands
Strange. It's one of the config files in the spamassassin package on my machines:modom46 wrote:No such file or directory my machine says./etc/sysconfig/spamassassin look like on your machine?
Code: Select all
# rpm -qc spamassassin
/etc/mail/spamassassin/init.pre
/etc/mail/spamassassin/local.cf
/etc/mail/spamassassin/spamassassin-default.rc
/etc/mail/spamassassin/spamassassin-helper.sh
/etc/mail/spamassassin/spamassassin-spamc.rc
/etc/mail/spamassassin/v310.pre
/etc/rc.d/init.d/spamassassin
/etc/sysconfig/spamassassin
It's not a command, it's a list of options that gets passed to the spamd daemon when it's started. But apparently you're missing that file. Maybe you should reinstall spamassassin (check if that gives you /etc/sysconfig/spamassassin), reinstall qmail-scanner (which should set the correct SPAMDOPTIONS in /etc/sysconfig/spamassassin), restart spamassassin and then reconfigure qmail-scanner for good measure.I get nothing ... just goes to the prompt.SPAMDOPTIONS="-d -u qmailq -q -x -c -H /var/qmail "
Lemonbit Internet Dedicated Server Management
Hi Breun,
Before I do this I wanted to post this:
[root@godslove root]# rpm -qc spamassassin
/etc/rc.d/init.d/spamassassin
I found:
/var/qmail/.spamassassin
/etc/mail/spamassassin/local.cf
/etc/mail/spamassassin/init.pre
/etc/mail/spamassassin/v310.pre
/usr/bin/spamassassin
I don't have the rest like your listing.
Have rulesdujour installed and this is plesk 8 with centos 3.7.
Should I uninstall spamassassin first before reinstalling?
Before I do this I wanted to post this:
[root@godslove root]# rpm -qc spamassassin
/etc/rc.d/init.d/spamassassin
I found:
/var/qmail/.spamassassin
/etc/mail/spamassassin/local.cf
/etc/mail/spamassassin/init.pre
/etc/mail/spamassassin/v310.pre
/usr/bin/spamassassin
I don't have the rest like your listing.
Have rulesdujour installed and this is plesk 8 with centos 3.7.
Should I uninstall spamassassin first before reinstalling?
-
- Forum User
- Posts: 46
- Joined: Thu May 12, 2005 3:50 am
- Location: Sunny California
-
- Forum User
- Posts: 46
- Joined: Thu May 12, 2005 3:50 am
- Location: Sunny California
At this point, I would first uninstall qmail-scanner, uninstall spamassassin, then (as Breun posted):
Let us know how it goes...Maybe you should reinstall spamassassin (check if that gives you /etc/sysconfig/spamassassin), reinstall qmail-scanner (which should set the correct SPAMDOPTIONS in /etc/sysconfig/spamassassin), restart spamassassin and then reconfigure qmail-scanner for good measure.
Last edited by jamesyeeoc on Mon Jun 05, 2006 7:16 am, edited 1 time in total.
-
- Long Time Forum Regular
- Posts: 2813
- Joined: Sat Aug 20, 2005 9:30 am
- Location: The Netherlands
You could use rpm -Uvh --force to reinstall a package. Or use --nodeps to disable the dependecy checks (be very careful with that switch) and then install the package you removed right after that.
Lemonbit Internet Dedicated Server Management
Hi,
Errors everywhere so am back at the beginning with the same configs as posted earlier.
Resolving dependencies
....Unable to satisfy dependencies
Package spamassassin needs perl(:MODULE_COMPAT_5.8.0), this is not available.
I ran cpan and then Warning: Cannot install MODULE_COMPAT_5.8.0, don't know what it is.
Try the command
i /MODULE_COMPAT_5.8.0/
to find objects with matching identifiers.
cpan> i /MODULE_COMPAT_5.8.0
Strange distribution name [/MODULE_COMPAT_5.8.0]
No objects found of any type for argument /MODULE_COMPAT_5.8.0
---------------------------------------------
I went back to centos and installed spamassassin and then updated with Art's in the psa-atomic channel and then reinstalled qmail scanner.
I have spamd child showing run as qmailq and root where root is higher in resource use most of the time than qmailq like 22.3, 10, 21.3, 13.9, 22.1, etc.....
Errors everywhere so am back at the beginning with the same configs as posted earlier.
Resolving dependencies
....Unable to satisfy dependencies
Package spamassassin needs perl(:MODULE_COMPAT_5.8.0), this is not available.
I ran cpan and then Warning: Cannot install MODULE_COMPAT_5.8.0, don't know what it is.
Try the command
i /MODULE_COMPAT_5.8.0/
to find objects with matching identifiers.
cpan> i /MODULE_COMPAT_5.8.0
Strange distribution name [/MODULE_COMPAT_5.8.0]
No objects found of any type for argument /MODULE_COMPAT_5.8.0
---------------------------------------------
I went back to centos and installed spamassassin and then updated with Art's in the psa-atomic channel and then reinstalled qmail scanner.
I have spamd child showing run as qmailq and root where root is higher in resource use most of the time than qmailq like 22.3, 10, 21.3, 13.9, 22.1, etc.....