On Mon, Jun 29, 2009 at 06:21:02PM +0900, Jorgen Lundman wrote:
> 
> 
> You sure it is not just process limit, ulimit/limits depending on your 
> sehll.
> 
> 
> Clifton Royston wrote:
> > On Sun, Jun 28, 2009 at 10:36:00PM -0600, The Doctor wrote:
> >> Right I have
> >>
> >> su -m clamav -c '/usr/contrib/sbin/amavisd  debug'
> >> Jun 28 22:15:08.330 mail.nk.ca /usr/contrib/sbin/amavisd[18551]: starting. 
> >>  /usr/contrib/sbin/amavisd at mail.nk.ca amavisd-new-2.6.3 (20090422), 
> >> Unicode aware
> >> Jun 28 22:15:08.386 mail.nk.ca /usr/contrib/sbin/amavisd[18551]: user=28, 
> >> EUID:
> >> 28 (28);  group=, EGID: 28 28 28 (28 28 28)
> >> Jun 28 22:15:08.386 mail.nk.ca /usr/contrib/sbin/amavisd[18551]: Perl 
> >> version
> >>             5.010000
> >> Jun 28 22:15:08.649 mail.nk.ca /usr/contrib/sbin/amavisd[18551]: 
> >> SpamControl: attempting to load scanner SpamAssassin, module 
> >> Amavis::SpamControl::SpamAssassin
> >> Jun 28 22:15:08.650 mail.nk.ca /usr/contrib/sbin/amavisd[18551]: 
> >> SpamControl: scanner SpamAssassin, module Amavis::SpamControl::SpamAssassin
> >> Out of memory!          
> > 
> 


Point well taken.

I have for my /etc/login.conf:


---- START ----


#       BSDI login.conf,v 2.33 2002/08/21 17:24:26 polk Exp
#
# Sample login.conf file.
#

#
# Standard default entry.  Use compiled in system defaults.
# Enable all the various login programs
#
# krb-or-pwd    First try kerberos password, then local password file
# passwd        Use only the local password file
# kerberos      Use only the kerberos password
# chpass        Do not authenticate, but change users password (change
#               the kerberos password if the user has one, else change
#               the local password)
# lchpass       Do not authenticate, but change users local password
#
# rpasswd       Password auth using /etc/rpasswd.db instead of /etc/passwd
# rchpass       Do not authenticate, but change password in /etc/rpasswd.db
#
# skey          Use S/Key MD5 authentication
# activ         ActivCard X9.9 token authentication
# crypto        CRYPTOCard X9.9 token authentication
# snk           Digital Pathways SecureNet Key authentication
# token         Generic X9.9 token authentication
#
# DO NOT ALTER the following lines:
#
auth-bsdi-defaults:auth=krb-or-pwd,kerberos,passwd,activ,crypto,snk,chpass,lchpass,token:
auth-ftp-bsdi-defaults:auth-ftp=passwd,activ,crypto,snk,token:
radius-bsdi-defaults:auth-radius=rpasswd,activ,crypto,snk,token:

# 
# The default values
# To alter the default authentication types change the line:
#       :tc=auth-bsdi-defaults:\
# to be read something like: (enables passwd, "myauth", and activ)
#       :auth=passwd,myauth,activ:\
# Any value changed in the daemon class should be reset in default
# class.
#
default:\
        :path=/bin /usr/bin /usr/contrib/bin /usr/X11/bin:\
        :datasize-max=infinity:\
        :datasize-cur=32M:\
        :maxproc-max=128:\
        :maxproc-cur=64:\
        :openfiles-cur=64:\
        :radius-challenge-styles=activ,crypto,skey,snk,token:\
        :stacksize-cur=2M:\
        :tc=auth-bsdi-defaults:\
        :tc=auth-ftp-bsdi-defaults:

#
# Settings used by /etc/rc and root
# This must be set properly for daemons started as root by inetd as well.
# Be sure reset these values back to system defaults in the default class!
#
daemon:\
        :path=/sbin /usr/sbin /bin /usr/bin /usr/contrib/sbin /usr/contrib/bin 
/usr/X11/bin:\
        :widepasswords:\
        :ignorenologin:\
        :datasize=infinity:\
        :maxproc=infinity:\
        :openfiles-cur=128:\
        :stacksize-cur=8M:\
        :umask=022:\
        :tc=default:

#
amavis:\
        :path=/sbin /usr/sbin /bin /usr/bin /usr/contrib/sbin /usr/contrib/bin 
/usr/X11/bin:\
        :widepasswords:\
        :ignorenologin:\
        :datasize=infinity:\
        :maxproc=infinity:\
        :openfiles-cur=128:\
        :stacksize-cur=8M:\
        :umask=022:\
        :tc=default:

#
# Settings used by rc.local to start netnews (INN)
#
news:\
        :path=/bin /usr/bin /usr/contrib/bin /var/news/bin:\
        :datasize=infinity:\
        :maxproc=256:\
        :openfiles-cur=256:\
        :stacksize-cur=16M:\
        :tc=default:

#
# To alter the list of styles, replace the line 
#       :tc=radius-bsdi-defaults:
# with something like:
#       :auth-radius=passwd,myauth,rpasswd:\
#
RADIUS:\
        :tc=radius-bsdi-defaults:
#
# full default system settings
# Note that entries like "cputime" set both "cputime-cur" and "cputime-max"
# Several hard limits are determined by the system configuration (amount
# of memory and max users) and are not reflected here.
#
full-default:\
        :auth=passwd:\
        :coredumpsize=infinity:\
        :cputime=infinity:\
        :datasize-cur=16M:\
        :datasize-max=infinity:\
        :filesize=infinity:\
        :maxproc-max=128:\
        :maxproc-cur=64:\
        :memorylocked-cur=10M:\
        :openfiles-cur=64:\
        :priority=0:\
        :requirehome:\
        :stacksize-cur=2M:\
        :stacksize-max=16M:\
        :term=unknown:\
        :umask=022:

#
# Staff have fewer restrictions and can login even when nologins are set
# All login methods are enabled
#
staff:\
        :datasize-cur=64M:\
        :datasize-max=infinity:\
        :ignorenologin:\
        :requirehome@:\
        :tc=default:

#
# The dialer class should be used for PPP and SLIP login account.
# This will suppress login messages
#
dialer:\
        :hushlogin:\
        :widepasswords:\
        :requirehome@:\
        :tc=default:


## Web Hosting

www:\
        :path=/bin /usr/bin /usr/contrib/bin /usr/X11/bin:\
        :datasize=infinity:\
        :maxproc=128:\
        :openfiles-cur=256:\
        :stacksize-cur=16M:\
        :tc=default:



#
# The restricted class lowers limits
# requires the use of kerberos
# only allows 1 1/2 hours of CPU time
# The C-name entries are samples of entries, remove the C- to enable them
#
restricted:\
        :C-approve=/usr/local/bin/approve:\
        :C-copyright=/etc/copyright-local:\
        :C-shell=/usr/local/bin/meta-shell:\
        :C-welcome=/etc/motd-restricted:\
        :auth=passwd:\
        :coredumpsize=8M:\
        :cputime=1h 30m:\
        :datasize=8M:\
        :filesize=8M:\
        :maxproc=20:\
        :memorylocked=4M:\
        :memoryuse=8M:\
        :nologin=/etc/nologin-restricted:\
        :openfiles=20:\
        :path=/bin /usr/bin /usr/contrib/bin /usr/local/bin /usr/X11/bin:\
        :priority=4:\
        :requirehome:\
        :stacksize=2M:\
        :umask=0027:\
        :tc=default:

------ END -----

-- 
Member - Liberal International  This is doc...@nl2k.ab.ca
Ici doc...@nl2k.ab.ca God, Queen and country! Beware Anti-Christ rising!
Never Satan President Republic!
Rudeness is the weak man's imitation of strength.  -Eric Hoffer 

------------------------------------------------------------------------------
_______________________________________________
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/amavis-user 
 AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 
 AMaViS-HowTos:http://www.amavis.org/howto/ 

Reply via email to