|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Re: Too Many Open Files (Postfix / Amavis / SpamAssassin / DCC / Razorv2)
From: Postmaster - iMove (postmaster
imoveinc.com)
Date: Mon Mar 01 2004 - 18:44:04 CST
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I've run into this problem (albeit with Apache/PHP/MySQL system, not with
Postfix). You probably need to increase the value in /proc/sys/fs/file-max.
The values in /proc/sys/fs/file-nr will give you an idea of how close your
usage patterns are approaching the file-max limit. See proc(5) for more
details.
Olivier BELLON wrote:
> Hello,
>
>
> I'm working in a university and i have seting up a POSTFIX mail server
> (rpm postfix-2.0.0.2-3 on a RedHat 8.0) with set of tools like
> Amavisd-new/spamassassin / DCC / Razor ... etc ...
> for information the old server was under Sendmail, so, i have kept the
> old /etc/aliases form sendmail tu use it under postfix.
>
> 1/ The first problem is the ".forward" that seems to work differently.
> With sendmail if someone want to forward its mail to an other address
> mail (copy) and keep the orginal in its local "Maildir/", the user
> must enter 2 lines in the $HOME/".forward" :
>
> my_username
yahoo.fr
> my_local_username
hostname.local_domain.org
>
> But, postfix hangs and says something like : "warning: possible alias
> database loop for <user>"
> Why ? How to perform the same thing under postfix ?
>
>
> 2/ The Second problem is about the "Too many open files errors" in the
> "maillog" when i send a mail to all my students.
> In fact, i use an alias in my /etc/poostfix/aliases (same as sendmail)
> to send informations to my students (approx: 800 students max).
> To give you more informations, i've pasted infos :
>
> *postconf -n
> *alias_database = hash:/etc/postfix/aliases
> alias_maps = hash:/etc/postfix/aliases
> command_directory = /usr/sbin
> config_directory = /etc/postfix
> content_filter = smtp-amavis:[127.0.0.1]:10024
> daemon_directory = /usr/libexec/postfix
> debug_peer_level = 2
> default_process_limit = 10
> home_mailbox = Maildir/
> local_command_shell = /bin/bash -c
> mailq_path = /usr/bin/mailq.postfix
> manpage_directory = /usr/share/man
> message_size_limit = 4096000
> mydestination = $myhostname, localhost.$mydomain, $mydomain
> mydomain = our.domain.fr
> myhostname = Our_Server.our.domain.fr
> mynetworks = 192.168.0.0/24, 192.93.219.0/24, 127.0.0.0/8
> myorigin = $mydomain
> newaliases_path = /usr/bin/newaliases.postfix
> queue_directory = /var/spool/postfix
> readme_directory = /etc/postfix/README_FILES
> sample_directory = /etc/postfix/samples
> sendmail_path = /usr/sbin/sendmail.postfix
> setgid_group = postdrop
> smtpd_client_restrictions = permit_mynetworks, reject_rbl_client
> rblserver.domain.extention, permit
> smtpd_helo_required = yes
> smtpd_helo_restrictions = permit_mynetworks,
> reject_unauth_pipelining, reject_non_fqdn_hostname,
> reject_invalid_hostname, permit
> smtpd_recipient_restrictions = permit_mynetworks,
> reject_unauth_destination, reject_invalid_hostname,
> reject_unauth_pipelining, reject_non_fqdn_sender,
> reject_unknown_sender_domain,
> reject_non_fqdn_recipient,
> reject_unknown_recipient_domain, reject_rbl_client
> bl.spamcop.net, reject_rbl_client relays.ordb.org,
> reject_rbl_client list.dsbl.org, reject_rbl_client
> opm.blitzed.org, reject_rbl_client dnsbl.njabl.org,
> reject_rhsbl_client blackhole.securitysage.com, reject_rhsbl_sender
> blackhole.securitysage.com, reject_rbl_client sbl.spamhaus.org,
> permit
> smtpd_sender_restrictions = permit_mynetworks,
> reject_non_fqdn_sender, reject_unknown_sender_domain,
> reject_rhsbl_sender dsn.rfc-ignorant.org, permit
> strict_rfc821_envelopes = yes
> unknown_local_recipient_reject_code = 450
>
> *Maillog content :
> *Mar 1 15:37:25 Our_Server postfix/local[2898]: warning: cannot open
> file /home/etud/icape/.forward: Too many open files
> Mar 1 15:37:25 Our_Server postfix/local[2898]: fatal: socket: Too
> many open files
> Mar 1 15:37:25 Our_Server postfix/local[2897]: warning: cannot open
> file /home/etud/icape/.forward: Too many open files
> Mar 1 15:37:25 Our_Server postfix/local[2897]: fatal: socket: Too
> many open files
> Mar 1 15:37:26 Our_Server postfix/qmgr[30186]: warning: premature
> end-of-input on private/local socket while reading input attribute name
> Mar 1 15:37:26 Our_Server postfix/qmgr[30186]: warning: private/local
> socket: malformed response
> Mar 1 15:37:26 Our_Server postfix/qmgr[30186]: warning: transport
> local failure -- see a previous warning/fatal/panic logfile record for
> the problem description
> Mar 1 15:37:26 Our_Server postfix/cleanup[1951]: warning: premature
> end-of-input on cleanup socket while reading input attribute name
> Mar 1 15:37:26 Our_Server postfix/cleanup[2937]: warning: premature
> end-of-input on cleanup socket while reading input attribute name
> Mar 1 15:37:26 Our_Server postfix/cleanup[742]: warning: premature
> end-of-input on cleanup socket while reading input attribute name
> Mar 1 15:37:26 Our_Server postfix/cleanup[2935]: warning: premature
> end-of-input on cleanup socket while reading input attribute name
> Mar 1 15:37:26 Our_Server postfix/cleanup[2939]: warning: cleanup
> socket: unexpected EOF in data, record type 79 length 20
> Mar 1 15:37:26 Our_Server postfix/master[31840]: warning: process
> /usr/libexec/postfix/local pid 2898 exit status 1
> Mar 1 15:37:26 Our_Server postfix/master[31840]: warning:
> /usr/libexec/postfix/local: bad command startup -- throttling
> Mar 1 15:37:26 Our_Server postfix/qmgr[30186]: 2071764013C:
> to=<students
our.domain.fr>, relay=none, delay=18534, status=deferred
> (unknown mail transport error)
> Mar 1 15:37:26 Our_Server postfix/cleanup[1258]: warning: premature
> end-of-input on cleanup socket while reading input attribute name
> Mar 1 15:37:26 Our_Server postfix/cleanup[2936]: warning: premature
> end-of-input on cleanup socket while reading input attribute name
> Mar 1 15:37:26 Our_Server postfix/cleanup[2934]: warning: premature
> end-of-input on cleanup socket while reading input attribute name
> Mar 1 15:37:26 Our_Server postfix/qmgr[30186]: warning: premature
> end-of-input on private/local socket while reading input attribute name
> Mar 1 15:37:26 Our_Server postfix/qmgr[30186]: warning: private/local
> socket: malformed response
> Mar 1 15:37:26 Our_Server postfix/qmgr[30186]: warning: transport
> local failure -- see a previous warning/fatal/panic logfile record for
> the problem description
> Mar 1 15:37:26 Our_Server postfix/cleanup[2938]: warning: premature
> end-of-input on cleanup socket while reading input attribute name
> Mar 1 15:37:26 Our_Server postfix/cleanup[2940]: warning: cleanup
> socket: unexpected EOF in data, record type 79 length 20
> Mar 1 15:37:26 Our_Server postfix/master[31840]: warning: process
> /usr/libexec/postfix/local pid 2897 exit status 1
>
>
> *ulimit -a
> *core file size (blocks, -c) 0
> data seg size (kbytes, -d) unlimited
> file size (blocks, -f) unlimited
> max locked memory (kbytes, -l) unlimited
> max memory size (kbytes, -m) unlimited
> open files (-n) *65536
> *pipe size (512 bytes, -p) 8
> stack size (kbytes, -s) 8192
> cpu time (seconds, -t) unlimited
> max user processes (-u) 16384
> virtual memory (kbytes, -v) unlimited
>
>
> Could you help me ....
> What more informations do you need to help me ?
> Best regards.
>
> Olivier .B.
>
>
>
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]