PDA

View Full Version : clamav & amavisd


planet_fox
2nd May 2009, 19:15
Hi I have a Problem on a debian lenny vserver with 256 Mb ram.

First when I start clamav, two minute laters stop clamd and courier his service.

When I do this in master.cf

#127.0.0.1:10025 inet n - - - - smtpd

and in the main.cf

#content_filter =amavis[127.0.0.1]:10024

the mailserver work. when I want run only amavis do the same.#

some logs

May 2 16:19:01 server1 /USR/SBIN/CRON[27738]: (root) CMD (/usr/local/ispconfig/server/server.sh > $
May 2 16:19:13 server1 clamd: clamd: client (pid 32057) exited with 1 status
May 2 16:20:01 server1 /USR/SBIN/CRON[24038]: (smmsp) CMD (test -x /etc/init.d/sendmail && /usr/sh$
May 2 16:20:01 server1 /USR/SBIN/CRON[24043]: (getmail) CMD (/usr/local/bin/run-getmail.sh > /dev/$
May 2 16:20:01 server1 /USR/SBIN/CRON[24046]: (root) CMD (/usr/local/ispconfig/server/server.sh > $
May 2 16:20:01 server1 postfix/postqueue[24181]: warning: Mail system is down -- accessing queue d$




May 2 16:36:07 server1 amavis[17993]: (17993-01) (!)FWD via SMTP: <alluring4@metsuites.com> -> <si$
May 2 16:36:07 server1 amavis[17993]: (17993-01) Blocked MTA-BLOCKED, [201.13.133.202] [201.13.133$
May 2 16:36:07 server1 amavis[17995]: (17995-01) (!)FWD via SMTP: <smmsp@server1.de> -> $
May 2 16:36:07 server1 postfix/smtp[22266]: 30FA14E84D6: to=<horst@server1.de>, relay=12$
May 2 16:36:07 server1 amavis[17995]: (17995-01) Blocked MTA-BLOCKED, <smmsp@server1.de>$
May 2 16:36:07 server1 postfix/smtp[22278]: DD2F64E84FE: to=<root@server1.de>, orig_to=<$

till
2nd May 2009, 21:59
Any additional errors in the syslog about missing memory? Also please check the user_beancounter .

planet_fox
3rd May 2009, 14:30
No

cat /proc/meminfo
MemTotal: 262144 kB
MemFree: 173300 kB
Buffers: 0 kB
Cached: 0 kB
SwapCached: 0 kB
Active: 0 kB
Inactive: 0 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 262144 kB
LowFree: 173300 kB
SwapTotal: 0 kB
SwapFree: 0 kB
Dirty: 0 kB
Writeback: 0 kB
AnonPages: 0 kB
Mapped: 88844 kB
Slab: 0 kB
PageTables: 0 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
CommitLimit: 0 kB
Committed_AS: 353008 kB
VmallocTotal: 0 kB
VmallocUsed: 0 kB
VmallocChunk: 0 kB
HugePages_Total: 0
HugePages_Free: 0
HugePages_Rsvd: 0
Hugepagesize: 2048 kB


cat /proc/user_beancounters
Version: 2.5
uid resource held maxheld barrier limit failcnt
105: kmemsize 5644899 6166793 13577273 14935000 2923
lockedpages 0 0 662 662 0
privvmpages 88474 97038 300000 350000 4
shmpages 862 862 10000 10000 0
dummy 0 0 2147483647 2147483647 0
numproc 69 75 330 330 0
physpages 20927 23525 0 2147483647 0
vmguarpages 0 0 55556 2147483647 0
oomguarpages 20927 23525 2147483647 2147483647 0
numtcpsock 19 26 330 330 0
numflock 13 14 528 580 0
numpty 1 1 33 33 0
numsiginfo 0 1 1024 1024 0
tcpsndbuf 230308 230308 4194304 8388608 0
tcprcvbuf 311296 278528 4194304 8388608 0
othersockbuf 190332 224824 1587038 2938718 0
dgramrcvbuf 0 8380 1587038 1587038 0
numothersock 130 143 330 330 1593
dcachesize 0 0 2952699 3041280 0
numfile 2283 2565 200000 200000 0
dummy 0 0 0 0 0
dummy 0 0 0 0 0
dummy 0 0 0 0 0
numiptent 14 14 40 40 54

planet_fox
3rd May 2009, 15:34
ok ia have an error in log

Sun May 3 13:25:40 2009 -> +++ Started at Sun May 3 13:25:40 2009
Sun May 3 13:25:40 2009 -> clamd daemon 0.95.1 (OS: linux-gnu, ARCH: i386, CPU: i486)
Sun May 3 13:25:40 2009 -> Running as user clamav (UID 110, GID 115)
Sun May 3 13:25:40 2009 -> Log file size limit disabled.
Sun May 3 13:25:40 2009 -> Reading databases from /var/lib/clamav
Sun May 3 13:25:40 2009 -> Not loading PUA signatures.
Sun May 3 13:25:41 2009 -> Loaded 548851 signatures.
Sun May 3 13:25:41 2009 -> ERROR: LOCAL: Socket file /var/run/clamav/clamd.ctl is in use by another process.

till
3rd May 2009, 22:12
Looks as if there is already a clamd process running. find the process with ps and kill it. Then try to start clamd again.