Sponsored Content
Top Forums UNIX for Advanced & Expert Users sendmails works, but opens 43 file handles per email -> problem Post 302481253 by ZX81 on Friday 17th of December 2010 04:12:39 AM
Old 12-17-2010
Hi Jim,
thank you for the information.

> The beauty of shared libraries is that they are usually memory resident, shared among all processes

This is my understanding, too - otherwise lots of processes (not only sendmail) would crash every server. These are the libs used:

[root]# ldd /usr/lib/sendmail
libssl.so.6 => /lib64/libssl.so.6 (0x00002ab174bca000)
libcrypto.so.6 => /lib64/libcrypto.so.6 (0x00002ab174e16000)
libnsl.so.1 => /lib64/libnsl.so.1 (0x00002ab175167000)
libwrap.so.0 => /lib64/libwrap.so.0 (0x00002ab175380000)
libhesiod.so.0 => /usr/lib64/libhesiod.so.0 (0x00002ab175589000)
libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00002ab17578d000)
libdb-4.3.so => /lib64/libdb-4.3.so (0x00002ab1759c6000)
libsasl2.so.2 => /usr/lib64/libsasl2.so.2 (0x00002ab175cbc000)
libldap-2.3.so.0 => /usr/lib64/libldap-2.3.so.0 (0x00002ab175ed5000)
liblber-2.3.so.0 => /usr/lib64/liblber-2.3.so.0 (0x00002ab176110000)
libc.so.6 => /lib64/libc.so.6 (0x00002ab17631e000)
libresolv.so.2 => /lib64/libresolv.so.2 (0x00002ab176675000)
libgssapi_krb5.so.2 => /usr/lib64/libgssapi_krb5.so.2 (0x00002ab17688b000)
libkrb5.so.3 => /usr/lib64/libkrb5.so.3 (0x00002ab176ab9000)
libcom_err.so.2 => /lib64/libcom_err.so.2 (0x00002ab176d4e000)
libk5crypto.so.3 => /usr/lib64/libk5crypto.so.3 (0x00002ab176f51000)
libdl.so.2 => /lib64/libdl.so.2 (0x00002ab177176000)
libz.so.1 => /usr/lib64/libz.so.1 (0x00002ab17737a000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00002ab17758f000)
/lib64/ld-linux-x86-64.so.2 (0x00002ab17465b000)
libkrb5support.so.0 => /usr/lib64/libkrb5support.so.0 (0x00002ab1777aa000)
libkeyutils.so.1 => /lib64/libkeyutils.so.1 (0x00002ab1779b2000)
libselinux.so.1 => /lib64/libselinux.so.1 (0x00002ab177bb5000)
libsepol.so.1 => /lib64/libsepol.so.1 (0x00002ab177dcd000)


Sendmail is running:

root 28089 0.0 0.0 62812 2320 ? Ss Dec10 0:33 sendmail: accepting connections
smmsp 28097 0.0 0.0 57692 1780 ? Ss Dec10 0:00 sendmail: Queue runner@01:00:00 for /var/spool/clientmqueue

Do you think setting the Sendmail DeliveryMode to 'interactice' would help? I read the sendmail documentation, but I'm still not sure what risks it would involve.

Best,
Andreas
 

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

File Handles

Hi, perhaps you can answer my question.....;) How can I check, how many file handles are used and how can i increase the value for maximum file handles??? (3 Replies)
Discussion started by: sjaeger
3 Replies

2. Shell Programming and Scripting

SSH in batch mode and File-Handles in a loop

Hi all I try to execute SSH commands on several hosts in a while-loop. There seems to be a problem with file-handle, first cycle works correct but no other one will follow due to the while condition is false even that there are many more host entries (lines) in all_hosts.dat. ... (3 Replies)
Discussion started by: DaveCutler
3 Replies

3. Shell Programming and Scripting

perl help with pipes and file handles (simple issue)

Hello, I have a program which opens a pipe for communication using file handle and forks 5 child processes. @waitlist = (1,2,3,4,5); foreach $item (@waitlist) { pipe *{$item},RETHAND; unless ($pid = fork()) { # Child process print RETHAND... (1 Reply)
Discussion started by: the_learner
1 Replies

4. Shell Programming and Scripting

Monitor open file handles used by a process

We have a process that is running out of file handles. Is there some command line way to determine this that we can include into a cron script? Please let me know JAK (3 Replies)
Discussion started by: jakSun8
3 Replies

5. UNIX for Dummies Questions & Answers

Selectionbox, script which opens more than one file at once?

hello everybody I´m very new at shell and programming :eek: and i have the following question/problem: I need a script for framemaker (based on shell) which opens a new document from a template (.fm). Then imports a .doc file and then save it as a .mif. Actually my script works with one... (3 Replies)
Discussion started by: tio86
3 Replies

6. Shell Programming and Scripting

Position to last line when vi opens a file.

Any Idea without entering any keystroke I can go to end of line in vi when I opening the file. When I am opening Vi I want to goto last line. when I give vi + filename it does not work. Any clue why it does not work. Thanks. (3 Replies)
Discussion started by: ekb
3 Replies

7. OS X (Apple)

Programatically change which opens a file type

Hi there, If we have 2 apps on our customers machines that can both open files of a certain file extension, is there any way via shell commands to set which application should be the default? Essentially, I'm hoping to replicate Get Info > Open With > Change All, but using a script. Thanks... (0 Replies)
Discussion started by: davewg
0 Replies

8. UNIX for Advanced & Expert Users

How UNIX/AIX handles a file deep down, say it's being read while another one tries to rename it?

Hi Thinkers, On AIX 5.3, we have a monitor program that reads the log file and searching for a certain string pattern that we define(say "transactionException"), if it sees it then it will raise an alert by sending an email. Because the log file XXX.log is rolling into XXX.log.0, XXX.log.1,... (2 Replies)
Discussion started by: TheGunMan
2 Replies

9. UNIX for Dummies Questions & Answers

Script to leak file handles

This is a strange one. We have an issue where our system is leaking SCTP file handles. There are people working on this and in the mean time we have a monitoring script that alarms when we need to perform actions to manually clear them. For testing purposes I want to write a script that... (0 Replies)
Discussion started by: RECrerar
0 Replies
MAILSTATS(8)						      System Manager's Manual						      MAILSTATS(8)

NAME
mailstats - display mail statistics SYNOPSIS
mailstats [-c] [-o] [-p] [-P] [-C cffile] [-f stfile] DESCRIPTION
The mailstats utility displays the current mail statistics. First, the time at which statistics started being kept is displayed, in the format specified by ctime(3). Then, the statistics for each mailer are displayed on a single line, each with the following white space separated fields: M The mailer number. msgsfr Number of messages from the mailer. bytes_from Kbytes from the mailer. msgsto Number of messages to the mailer. bytes_to Kbytes to the mailer. msgsrej Number of messages rejected. msgsdis Number of messages discarded. msgsqur Number of messages quarantined. Mailer The name of the mailer. After this display, a line totaling the values for all of the mailers is displayed (preceded with a ``T''), separated from the previous information by a line containing only equals (``='') characters. Another line preceded with a ``C'' lists the number of TCP connections. The options are as follows: -C Read the specified file instead of the default sendmail configuration file. -c Try to use submit.cf instead of the default sendmail configuration file. -f Read the specified statistics file instead of the statistics file specified in the sendmail configuration file. -P Output information in program-readable mode without clearing statistics. -p Output information in program-readable mode and clear statistics. -o Don't display the name of the mailer in the output. The mailstats utility exits 0 on success, and >0 if an error occurs. FILES
/etc/mail/sendmail.cf The default sendmail configuration file. /var/log/mail/statistics The default sendmail statistics file. SEE ALSO
mailq(1), sendmail(8) $Date: 2002/06/27 22:47:29 $ MAILSTATS(8)
All times are GMT -4. The time now is 11:34 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy