Koozali.org: home of the SME Server

My Mail Server issue

Sylvain

My Mail Server issue
« on: August 13, 2003, 05:27:28 PM »
Hello folks,

Since a week I have a hard time with our mail server running SME 5.6U4
Our mail server is running Spamassassin and CLam antivirus + svcan + twiggi from known contribs
It's been find for almost 3 months

Since a week our mail server is running at 100% even though there is no much traffic.

81 processes: 76 sleeping, 5 running, 0 zombie, 0 stopped
CPU states: 17.2% user, 82.7% system,  0.0% nice,  0.0% idle
Mem:  1031432K av,  283240K used,  748192K free,       0K shrd,   51752K buff
Swap:  265064K av,       0K used,  265064K free                  173000K cached

  PID USER     PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME COMMAND
    6 root      15   0     0    0     0 SW   35.8  0.0   3:20 bdflush
   12 root      21   0     0    0     0 RW   31.0  0.0   5:03 kjournald
11720 root      18   0  1008 1008   792 R     8.1  0.0   0:01 top
11723 root      22   0   224  224   176 R     5.7  0.0   0:00 checkpassword
11700 sales     25   0 21776  21M 13960 R     4.7  2.1   0:02 spamd
 1382 ntp       15   0  1812 1812  1616 S     2.3  0.1   1:02 ntpd
11734 sales     17   0   324  324   260 S     1.9  0.0   0:00 qmail-inject
11736 qmailq    20   0   308  308   260 D     1.7  0.0   0:00 qmail-queue
  439 root      16   0   324  324   264 S     1.4  0.0   0:39 svscan
11674 sales     16   0   324  324   260 S     1.4  0.0   0:04 qmail-inject
11190 root      16   0  1764 1764  1508 S     1.1  0.1   0:04 sshd
 2299 root      16   0  1316 1312  1160 S     0.9  0.1   1:13 nmbd
    7 root      16   0     0    0     0 SW    0.7  0.0   0:15 kupdated
 2135 root      15   0  2720 2720  2604 S     0.7  0.2   0:24 httpd-admin
 1546 qmails    16   0   380  380   296 S     0.6  0.0   0:45 qmail-send
 1630 root      15   0  5200 5200  5088 S     0.6  0.5   0:29 httpd
 2286 mysql     16   0  4216 4216  1568 S     0.4  0.4   0:07 mysqld
[root@mail root]#


Here is a list of what running

[root@mail root]#    12 ?        DW     4:58 [kjournald]
bash: 12: command not found
[root@mail root]#   153 ?        SW     0:00 [khubd]
bash: 153: command not found
[root@mail root]#   200 ?        SW     0:00 [kjournald]
bash: 200: command not found
[root@mail root]#   439 ?        S      0:38 /usr/local/bin/svscan /service
bash: 439: command not found
[root@mail root]#   470 ?        S      0:00 supervise smtpfront-qmail
bash: 470: command not found
[root@mail root]#   471 ?        S      0:00 supervise qmail
bash: 471: command not found
[root@mail root]#   472 ?        S      0:00 supervise log
bash: 472: command not found
[root@mail root]#   473 ?        S      0:00 supervise pppoe
bash: 473: command not found
[root@mail root]#   474 ?        S      0:00 supervise log
bash: 474: command not found
[root@mail root]#   475 ?        S      0:00 /usr/local/bin/multilog t s5000000 /var/log/pppoe
bash: 475: command not found
[root@mail root]#   476 ?        S      0:00 /usr/local/bin/multilog t s5000000 /var/log/qmail
bash: 476: command not found
[root@mail root]#   502 ?        S      0:06 syslogd -m 0 -a /home/dns/dev/log
bash: 502: command not found
[root@mail root]#   507 ?        S      0:00 klogd -c 1 -2
bash: 507: command not found
[root@mail root]#  1251 ?        S      0:00 /usr/sbin/oidentd -m -f -u nobody -g nobody
bash: 1251: command not found
[root@mail root]#  1292 ?        S      0:02 crond
bash: 1292: command not found
[root@mail root]#  1327 ?        S      0:12 xinetd -stayalive -reuse -pidfile /var/run/xinetd.pid
bash: 1327: command not found
[root@mail root]#  1382 ?        SL     1:01 ntpd -U ntp
bash: 1382: command not found
[root@mail root]#  1500 ?        S      0:00 /usr/sbin/slapd -u ldap
bash: 1500: command not found
[root@mail root]#  1505 ?        S      0:08 /usr/sbin/slapd -u ldap
bash: 1505: command not found
[root@mail root]#  1506 ?        S      0:00 /usr/sbin/slapd -u ldap
bash: 1506: command not found
[root@mail root]#  1546 ?        S      0:45 qmail-send
bash: 1546: command not found
[root@mail root]#  1548 ?        S      0:00 qmail-lspawn ./Maildir/
bash: 1548: command not found
[root@mail root]#  1549 ?        S      0:01 qmail-rspawn
bash: 1549: command not found
[root@mail root]#  1550 ?        S      0:05 qmail-clean
bash: 1550: command not found
[root@mail root]#  1630 ?        S      0:28 httpd
bash: 1630: command not found
[root@mail root]#  1636 ?        S      0:00 httpd
bash: 1636: command not found
[root@mail root]#  1637 ?        S      0:00 httpd
bash: 1637: command not found
[root@mail root]#  1638 ?        S      0:00 httpd
bash: 1638: command not found
[root@mail root]#  1639 ?        S      0:00 httpd
bash: 1639: command not found
[root@mail root]#  1640 ?        S      0:00 httpd
bash: 1640: command not found
[root@mail root]#  1641 ?        S      0:00 httpd
bash: 1641: command not found
[root@mail root]#  1642 ?        S      0:00 httpd
bash: 1642: command not found
[root@mail root]#  1643 ?        S      0:00 httpd
bash: 1643: command not found
[root@mail root]#  1644 ?        S      0:00 httpd
bash: 1644: command not found
[root@mail root]#  1645 ?        S      0:00 httpd
bash: 1645: command not found
[root@mail root]#  1693 ?        S      0:07 /usr/local/bin/tcpserver -v -U -R -x /etc/tcprules/tc
bash: 1693: command not found
[root@mail root]#  1907 ?        S      0:04 /usr/bin/spamd -d -c -a
bash: 1907: command not found
[root@mail root]#  1955 ?        S      0:01 /usr/sbin/sshd
bash: 1955: command not found
[root@mail root]#  2135 ?        S      0:23 /usr/sbin/httpd-admin -f /etc/httpd/admin-conf/httpd.
bash: 2135: command not found
[root@mail root]#  2138 ?        S      0:00 /usr/sbin/httpd-admin -f /etc/httpd/admin-conf/httpd.
bash: 2138: command not found
[root@mail root]#  2176 ?        S      0:00 /bin/sh /usr/bin/safe_mysqld --defaults-file=/etc/my.
bash: 2176: command not found
[root@mail root]#  2262 ?        S      0:01 /usr/libexec/mysqld --defaults-file=/etc/my.cnf --bas
bash: 2262: command not found
[root@mail root]#  2286 ?        S      0:07 /usr/libexec/mysqld --defaults-file=/etc/my.cnf --bas
bash: 2286: command not found
[root@mail root]#  2287 ?        S      0:00 /usr/libexec/mysqld --defaults-file=/etc/my.cnf --bas
bash: 2287: command not found
[root@mail root]#  2289 ?        S      0:00 smbd -D
bash: 2289: command not found
[root@mail root]#  2299 ?        S      1:11 nmbd -D
bash: 2299: command not found
[root@mail root]#  2301 ?        S      0:00 nmbd -D
bash: 2301: command not found
[root@mail root]#  2304 ?        S      0:00 /usr/libexec/mysqld --defaults-file=/etc/my.cnf --bas
bash: 2304: command not found
[root@mail root]#  2414 ?        S      0:00 /usr/sbin/pptpd -f
bash: 2414: command not found
[root@mail root]#  2415 tty1     S      0:00 /sbin/mingetty tty1
bash: 2415: command not found
[root@mail root]#  2416 ?        S      0:02 login -- root
bash: 2416: command not found
[root@mail root]#  2417 tty3     S      0:00 /sbin/mingetty tty3
bash: 2417: command not found
[root@mail root]#  2418 ?        S      0:00 /usr/sbin/named -f -u dns -t /home/dns
bash: 2418: command not found
[root@mail root]#  2419 ?        S      0:07 /usr/sbin/named -f -u dns -t /home/dns
bash: 2419: command not found
[root@mail root]#  2420 ?        S      1:48 /usr/sbin/named -f -u dns -t /home/dns
bash: 2420: command not found
[root@mail root]#  2421 ?        S      0:08 /usr/sbin/named -f -u dns -t /home/dns
bash: 2421: command not found
[root@mail root]#  2422 ?        S      0:16 /usr/sbin/named -f -u dns -t /home/dns
bash: 2422: command not found
[root@mail root]#  3987 tty2     S      0:00 -bash
bash: 3987: command not found
[root@mail root]# 11190 ?        S      0:03 /usr/sbin/sshd
  8:13am  up  1:04,  2 users,  load average: 7.01, 6.25, 5.72
81 processes: 76 sleeping, 5 running, 0 zombie, 0 stopped
[root@mail root]# ps -ax
  PID TTY      STAT   TIME COMMAND
    1 ?        S      0:15 init [7]
    2 ?        SW     0:01 [keventd]
    3 ?        SW     0:04 [kapmd]
    4 ?        SWN    0:02 [ksoftirqd_CPU0]
    5 ?        SW     0:20 [kswapd]
    6 ?        SW     3:29 [bdflush]
    7 ?        SW     0:16 [kupdated]
    8 ?        SW     0:00 [mdrecoveryd]
   12 ?        RW     5:14 [kjournald]
  153 ?        SW     0:00 [khubd]
  200 ?        SW     0:00 [kjournald]
  439 ?        S      0:40 /usr/local/bin/svscan /service
  470 ?        S      0:00 supervise smtpfront-qmail
  471 ?        S      0:00 supervise qmail
  472 ?        S      0:00 supervise log
  473 ?        S      0:00 supervise pppoe
  474 ?        S      0:00 supervise log
  475 ?        S      0:00 /usr/local/bin/multilog t s5000000 /var/log/pppoe
  476 ?        S      0:00 /usr/local/bin/multilog t s5000000 /var/log/qmail
  502 ?        S      0:06 syslogd -m 0 -a /home/dns/dev/log
  507 ?        S      0:00 klogd -c 1 -2
 1251 ?        S      0:00 /usr/sbin/oidentd -m -f -u nobody -g nobody
 1292 ?        S      0:03 crond
 1327 ?        S      0:13 xinetd -stayalive -reuse -pidfile /var/run/xinetd.pid
 1382 ?        SL     1:04 ntpd -U ntp
 1500 ?        S      0:00 /usr/sbin/slapd -u ldap
 1505 ?        S      0:08 /usr/sbin/slapd -u ldap
 1506 ?        S      0:00 /usr/sbin/slapd -u ldap
 1546 ?        S      0:47 qmail-send
 1548 ?        S      0:00 qmail-lspawn ./Maildir/
 1549 ?        S      0:01 qmail-rspawn
 1550 ?        S      0:05 qmail-clean
 1630 ?        S      0:30 httpd
 1636 ?        S      0:00 httpd
 1637 ?        S      0:00 httpd
 1638 ?        S      0:00 httpd
 1639 ?        S      0:00 httpd
 1640 ?        S      0:00 httpd
 1641 ?        S      0:00 httpd
 1642 ?        S      0:00 httpd
 1643 ?        S      0:00 httpd
 1644 ?        S      0:00 httpd
 1645 ?        S      0:00 httpd
 1693 ?        S      0:08 /usr/local/bin/tcpserver -v -U -R -x /etc/tcprules/tc
 1907 ?        S      0:04 /usr/bin/spamd -d -c -a
 1955 ?        S      0:01 /usr/sbin/sshd
 2135 ?        S      0:25 /usr/sbin/httpd-admin -f /etc/httpd/admin-conf/httpd.
 2138 ?        S      0:00 /usr/sbin/httpd-admin -f /etc/httpd/admin-conf/httpd.
 2176 ?        S      0:00 /bin/sh /usr/bin/safe_mysqld --defaults-file=/etc/my.
 2262 ?        S      0:01 /usr/libexec/mysqld --defaults-file=/etc/my.cnf --bas
 2286 ?        S      0:08 /usr/libexec/mysqld --defaults-file=/etc/my.cnf --bas
 2287 ?        S      0:00 /usr/libexec/mysqld --defaults-file=/etc/my.cnf --bas
 2289 ?        S      0:00 smbd -D
 2299 ?        S      1:17 nmbd -D
 2301 ?        S      0:00 nmbd -D
 2304 ?        S      0:00 /usr/libexec/mysqld --defaults-file=/etc/my.cnf --bas
 2414 ?        S      0:00 /usr/sbin/pptpd -f
 2415 tty1     S      0:00 /sbin/mingetty tty1
 2416 ?        S      0:02 login -- root
 2417 tty3     S      0:00 /sbin/mingetty tty3
 2418 ?        S      0:00 /usr/sbin/named -f -u dns -t /home/dns
 2419 ?        S      0:07 /usr/sbin/named -f -u dns -t /home/dns
 2420 ?        S      1:56 /usr/sbin/named -f -u dns -t /home/dns
 2421 ?        S      0:08 /usr/sbin/named -f -u dns -t /home/dns
 2422 ?        R      0:17 /usr/sbin/named -f -u dns -t /home/dns
 3987 tty2     S      0:00 -bash
11190 ?        R      0:05 /usr/sbin/sshd
11231 pts/0    S      0:02 -bash
11757 ?        S      0:02 /usr/bin/smtpfront-qmail
11861 ?        S      0:01 qmail-popup localhost /bin/checkpassword /var/qmail/b
11862 ?        S      0:15 /var/qmail/bin/qmail-pop3d Maildir
12096 ?        S      0:00 bin/qmail-local -- sylvain /home/e-smith/files/users/
12097 ?        S      0:00 bin/qmail-local -- jmonteiro /home/e-smith/files/user
12098 ?        S      0:00 /usr/bin/procmail /home/e-smith/files/users/sylvain/.
12099 ?        S      0:00 /usr/bin/procmail /home/e-smith/files/users/jmonteiro
12102 ?        S      0:00 /usr/bin/procmail /home/e-smith/files/users/sylvain/.
12103 ?        S      0:00 /usr/bin/procmail /home/e-smith/files/users/jmonteiro
12104 ?        S      0:00 /usr/bin/spamc
12105 ?        S      0:00 /usr/bin/spamc
12106 ?        R      0:01 /usr/bin/spamd -d -c -a
12107 ?        R      0:02 /usr/bin/spamd -d -c -a
12129 ?        S      0:00 bin/qmail-inject -a -- suggestions@service.kitco.com
12130 ?        D      0:00 bin/qmail-queue
12131 ?        D      0:00 bin/qmail-queue
12132 pts/0    R      0:00 ps -ax
[root@mail root]#


I would really appreciate if someone can help me troubleshoot this Dell PIV 2.4 Ghz. It's killing me. I did restore the backup on a new blade, but I have come to worse issu like from the restore blade we cannot send mail out, it llok like the mail does not accept mail, mail client time out. So I always come back to this mail server cause at least it work ...slowly.

Thank you for your time, I feel like writing this mail do release some tension and will help me understand the problem I have to come through.

Sylvain

Re: My Mail Server issue
« Reply #1 on: August 13, 2003, 05:37:25 PM »
I  do notice every process use more cpu than usual, even 'top' is sometime using 19.6 % of CPU and a script like awstat.pl sometime use 40.7 %CPU
all in all it's always close to 100% total and slow me down at the command prompt

I wonder, if there is a better way to find out what is wrong with this server?
It does not drop mail thanks god

Thank you very much

Sylvain

Re: My Mail Server issue
« Reply #2 on: August 13, 2003, 11:44:00 PM »
After I restore my backup on a freshly installed SME 5.6 without patch, I cannot send mail  to the sme server?

I get

Your server has unexpectedly terminated the connection. Possible causes for this include server problems, network problems, or a long period of inactivity. Subject 'test3', Account: '192.168.2.249', Server: '192.168.2.249', Protocol: SMTP, Port: 25, Secure(SSL): No, Error Number: 0x800CCC0F

I did a couple of test unsuccesfully

Thank you