> 
> I've not seen this for a long time. Please post your complete sendmail.mc and 
> clamav.conf
> 
> - -Nigel
> 


Hello again.
My complete clamav.conf and sendmail.mc is at the end.

I have another problem (probably continuation my earlier problem)

This morning clamav-milter has died completely and I didn't start it 
again.
# /etc/init.d/clamav-milter start (restart) didn't work until I restarted 
clamav.
After this clamav-milter began work.

In maillog I found this, and much more:
Oct 22 06:13:31 melmak clamav-milter[23181]: clamfi_connect: connection from 
[69.6.27.97] [69.6.27.97]
Oct 22 06:13:32 melmak clamav-milter[23181]: hit max-children limit (504 >= 40): 
waiting for some to exit
Oct 22 06:13:47 melmak clamav-milter[30065]: ClamAv: accept() returned invalid socket 
(Too many open files), try again
Oct 22 06:13:51 melmak clamav-milter[23106]: pthread_cond_timedwait: (rc = 110) U^P^H
Oct 22 06:13:55 melmak clamav-milter[23198]: clamfi_connect: connection from 
mta04ps.bigpond.com [144.135.25.158]
Oct 22 06:13:55 melmak clamav-milter[23198]: hit max-children limit (505 >= 40): 
waiting for some to exit
Oct 22 06:14:07 melmak clamav-milter[30065]: ClamAv: accept() returned invalid socket 
(Too many open files), try again
Oct 22 06:14:08 melmak clamav-milter[30065]: ClamAv: accept() returned invalid socket 
(Too many open files), try again
Oct 22 06:14:10 melmak clamav-milter[30065]: ClamAv: accept() returned invalid socket 
(Too many open files), try again
Oct 22 06:14:18 melmak clamav-milter[23176]: pthread_cond_timedwait: (rc = 110) 
\230N^P^H
Oct 22 06:14:19 melmak clamav-milter[30065]: ClamAv: accept() returned invalid socket 
(Too many open files), try again
Oct 22 06:14:25 melmak clamav-milter[23161]: pthread_cond_timedwait: (rc = 110) PT^P^H
Oct 22 06:14:32 melmak clamav-milter[23181]: pthread_cond_timedwait: (rc = 110) X[^P^H
Oct 22 06:14:55 melmak clamav-milter[23198]: pthread_cond_timedwait: (rc = 110) hS^P^H
Oct 22 06:15:01 melmak clamav-milter[30065]: ClamAv: accept() returned invalid socket 
(Too many open files), try again
Oct 22 06:15:07 melmak clamav-milter[30065]: ClamAv: accept() returned invalid socket 
(Too many open files), try again
Oct 22 06:15:15 melmak clamav-milter[30065]: ClamAv: accept() returned invalid socket 
(Too many open files), try again

There was above 500!!!! clamav-milter processes (they ate 1GB my server's 
memory !!!!!)

I must run amavis or mailscanner :((

Maciek




clamav.conf
***********

##
## Example config file for the Clam AV daemon
## Please read the clamav.conf(5) manual before editing this file.
##


# Comment or remove the line below.
#Example

# Uncomment this option to enable logging.
# LogFile must be writable for the user running the daemon.
# Full path is required.
LogFile /var/log/clamd.log

# By default the log file is locked for writing - the lock protects 
against
# running clamd multiple times (if want to run another clamd, please
# copy the configuration file, change the LogFile variable, and run
# the daemon with --config-file option). That's why you shouldn't 
uncomment
# this option.
#LogFileUnlock

# Maximal size of the log file. Default is 1 Mb.
# Value of 0 disables the limit.
# You may use 'M' or 'm' for megabytes (1M = 1m = 1048576 bytes)
# and 'K' or 'k' for kilobytes (1K = 1k = 1024 bytes). To specify the size
# in bytes just don't use modifiers.
#LogFileMaxSize 2M

# Log time with an each message.
LogTime

# Use system logger (can work together with LogFile).
LogSyslog

# Enable verbose logging.
#LogVerbose

# This option allows you to save the process identifier of the listening
# daemon (main thread).
PidFile /var/run/clam/clamd.pid

# Path to a directory containing .db files.
# Default is the hardcoded directory (mostly /usr/local/share/clamav,
# it depends on installation options).
#DataDirectory /var/lib/clamav

# The daemon works in local or network mode. Currently the local mode is
# recommended for security reasons.

# Path to the local socket. The daemon doesn't change the mode of the
# created file (portability reasons). You may want to create it in a 
directory
# which is only accessible for a user running daemon.
LocalSocket /tmp/clamd

# Remove stale socket after unclean shutdown.
FixStaleSocket

# TCP address.
# By default we bind to INADDR_ANY, probably not wise.
# Enable the following to provide some degree of protection
# from the outside world.
#TCPAddr 127.0.0.1

# TCP port address.
#TCPSocket 3310

# Maximum length the queue of pending connections may grow to.
# Default is 15.
#MaxConnectionQueueLength 30

# When activated, input stream (see STREAM command) will be saved to disk 
before
# scanning - this allows scanning within archives.
StreamSaveToDisk

# Close the connection if this limit is exceeded.
StreamMaxLength 10M

# Maximal number of a threads running at the same time.
# Default is 5, and it should be sufficient for a typical workstation.
# You may need to increase threads number for a server machine.
MaxThreads 20

# Thread (scanner - single task) will be stopped after this time 
(seconds).
# Default is 180. Value of 0 disables the timeout. SECURITY HINT: Increase 
the
# timeout instead of disabling it.
ThreadTimeout 500

# Maximal depth the directories are scanned at.
MaxDirectoryRecursion 15

# Follow a directory symlinks.
# SECURITY HINT: You should have enabled directory recursion limit to
# avoid potential problems.
#FollowDirectorySymlinks

# Follow regular file symlinks.
#FollowFileSymlinks

# Do internal checks (eg. check the integrity of the database structures)
# By default clamd checks itself every 3600 seconds (1 hour).
#SelfCheck 600

# Execute a command when virus is found. In the command string %v and %f 
will
# be replaced by the virus name and the infected file name respectively.
#
# SECURITY WARNING: Make sure the virus event command cannot be exploited,
#                   eg. by using some special file name when %f is used.
#                   Always use a full path to the command.
#                   Never delete/move files with this directive !
#VirusEvent /usr/local/bin/send_sms 123456789 "VIRUS ALERT: %f: %v"

# Run as selected user (clamd must be started by root).
# By default it doesn't drop privileges.
User clamav

# Initialize the supplementary group access (for all groups in /etc/group
# user is added in. clamd must be started by root).
#AllowSupplementaryGroups

# Don't fork into background. Useful in debugging.
#Foreground

# Enable debug messages in libclamav.
#Debug

##
## Mail support
##

# Uncomment this option if you are planning to scan mail files.
ScanMail

##
## Archive support
##


# Comment this line to disable scanning of the archives.
ScanArchive


# By default the built-in RAR unpacker is disabled because the code
# terribly leaks, however it's probably a good idea to enable it.
#ScanRAR


# Options below protect your system against Denial of Service attacks
# with archive bombs.

# Files in archives larger than this limit won't be scanned.
# Value of 0 disables the limit.
# WARNING: Due to the unrarlib implementation, whole files (one by one) in 
RAR
#          archives are decompressed to the memory. That's why never 
disable
#          this limit (but you may increase it of course!)
ArchiveMaxFileSize 10M

# Archives are scanned recursively - e.g. if Zip archive contains RAR 
file,
# the RAR file will be decompressed, too (but only if recursion limit is 
set
# at least to 1). With this option you may set the recursion level.
# Value of 0 disables the limit.
ArchiveMaxRecursion 5

# Number of files to be scanned within archive.
# Value of 0 disables the limit.
ArchiveMaxFiles 1000

# Use slower decompression algorithm which uses less memory. This option
# affects bzip2 decompressor only.
#ArchiveLimitMemoryUsage

##
## Clamuko settings
## WARNING: This is experimental software. It is very likely it will hang
##          up your system !!!
##

# Enable Clamuko. Dazuko (/dev/dazuko) must be configured and running.
#ClamukoScanOnLine

# Set access mask for Clamuko.
ClamukoScanOnOpen
ClamukoScanOnClose
ClamukoScanOnExec

# Set the include paths (all files in them will be scanned). You can have
# multiple ClamukoIncludePath options, but each directory must be added
# in a seperate option. All subdirectories are scanned, too.
ClamukoIncludePath /home
#ClamukoIncludePath /students

# Set the exclude paths. All subdirectories are also excluded.
#ClamukoExcludePath /home/guru

# Limit the file size to be scanned (probably you don't want to scan your 
movie
# files ;))
# Value of 0 disables the limit. 1 Mb should be fine.
ClamukoMaxFileSize 1M

# Enable archive support. It uses the limits from clamd section.
# (This option doesn't depend on ScanArchive, you can have archive support
# in clamd disabled).
ClamukoScanArchive

******************************************************************************

sendmail.mc
***********

divert(-1)
include(`../m4/cf.m4')
define(`confDEF_USER_ID',``8:12'')
define(`PROCMAIL_MAILER_PATH', `/usr/bin/procmail')
dnl define(`confEBINDIR', `/usr/sbin/smrsh')
OSTYPE(linux)dnl
DOMAIN(generic)dnl
undefine(`UUCP_RELAY')
undefine(`BITNET_RELAY')
TRUST_AUTH_MECH(`EXTERNAL LOGIN PLAIN GSSAPI KERBEROS_V4 DIGEST-MD5 
CRAM-MD5')dnl
define(`confAUTH_MECHANISMS', `EXTERNAL LOGIN PLAIN GSSAPI KERBEROS_V4 
DIGEST-MD5 CRAM-MD5')dnl
define(`confDEF_CHAR_SET', `iso-8859-2')dnl
dnl define(`confMAX_MESSAGE_SIZE', `2097152')dnl Denial of Service Attacks
define(`confFORWARD_PATH', `$z/.forward:/etc/mail/forward-files/$u')dnl
define(`confMAX_RCPTS_PER_MESSAGE', `120')dnl Denial of Service Attacks
define(`confSINGLE_LINE_FROM_HEADER', `True')dnl
define(`confSMTP_LOGIN_MSG', `$j')dnl
define(`confRELAY_MSG', `550 Przekazywanie poczty zabronione. Uzyj 
autoryzacji.')dnl
define(`confREJECT_MSG', `550 Twoj mail zostal odrzucony.')dnl
define(`confPRIVACY_FLAGS', 
`authwarnings,novrfy,noexpn,goaway,restrictmailq,restrictqrun,needmailhelo')dnl

define(`confTO_CONNECT', `1m')
dnl define(`confTRY_NULL_MX_LIST',true)
define(`confDONT_PROBE_INTERFACES',true)
define(`ALIAS_FILE', `/etc/mail/aliases, /etc/mail/majordomo')
define(`confCW_FILE', `/etc/mail/sendmail.cw')
define(`_FFR_MILTER', `true')
INPUT_MAIL_FILTER(`RAVMilter',`S=local:/var/opt/rav/run/RAVMilter.sock,F=R,T=S:20s;R:10m;E:10m')
INPUT_MAIL_FILTER(`clamav',`S=local:/var/run/clamav-milter.sock,F=,T=S:4m;R:4m')
define(`confINPUT_MAIL_FILTERS',`RAVMilter,clamav')

FEATURE(`delay_checks')dnl
FEATURE(`generics_entire_domain')dnl
FEATURE(`nouucp', `reject')dnl
dnl FEATURE(`relay_based_on_MX')dnl
FEATURE(`relay_entire_domain')dnl
FEATURE(`virtuser_entire_domain')dnl

FEATURE(dnsbl,`blackholes.mail-abuse.org',` Mail from $&{client_addr} rejected; see 
http://mail-abuse.org/cgi-bin/lookup?$&; {client_addr}')dnl
FEATURE(dnsbl,`dialups.mail-abuse.org',` Mail from dial-up rejected; see 
http://mail-abuse.org/dul/enduser.htm')dnl

dnl FEATURE(`no_default_msa')dnl
dnl DAEMON_OPTIONS(`Port=smtp, Name=MTA')dnl
FEATURE(`domaintable',`hash -o /etc/mail/domaintable')
FEATURE(`genericstable',`hash -o /etc/mail/genericstable')
FEATURE(`mailertable',`hash -o /etc/mail/mailertable')
FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable')
FEATURE(relay_entire_domain)
FEATURE(redirect)
FEATURE(use_ct_file)
FEATURE(use_cw_file)
FEATURE(local_procmail)
dnl FEATURE(`smrsh',`/usr/sbin/smrsh')
FEATURE(`access_db')
FEATURE(`blacklist_recipients')
FEATURE(`accept_unresolvable_domains')
MAILER(local)
MAILER(smtp)
MAILER(procmail)

****************************************************************************




-------------------------------------------------------
This SF.net email is sponsored by OSDN developer relations
Here's your chance to show off your extensive product knowledge
We want to know what you know. Tell us and you have a chance to win $100
http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54
_______________________________________________
Clamav-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/clamav-users

Reply via email to