sendmail.cf goes missing & other things


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers sendmail.cf goes missing & other things
# 1  
Old 01-06-2009
sendmail.cf goes missing & other things

well, I came in today to a raft of messages that users couldn't email from UNIX (HP-UX B.11.23 U i64)

/etc/mail/sendmail.cf was missing - just GONE from the directory. Other files were there.
mail was successfully sent at 19:48 last night and unsuccessful at 00:10. At least those are times are are sure about.

So, I thought I'd look in the mail.log.
/var/adm/syslog -- both syslog.log and mail.log had been reset to 0 at 22:17 and 22:18 respectively.

No one with root passwd admits to doing anything, nor would they do anything.

what the heck might have happened ... how can I find out if there is anything else ... how can I explain this ... how can I prevent this ... etc.

I have restored /etc/mail/sendmail.cf from a backup and mail is now working.
But nothing of the outbound mail is showing in /var/adm/syslog/mail.log
it is still:
Quote:
var/adm/syslog> ll
total 0
-rw-r--r-- 1 root root 0 Oct 28 10:35 OLDsyslog.log
-rw-rw-rw- 1 root sys 0 Jan 5 22:17 mail.log
-rw-rw-rw- 1 root sys 0 Jan 5 22:18 syslog.log
# 2  
Old 01-06-2009
It looks like (probably) an sftp user/process signed on and dropped a file in the root filesystem that caused it to fill from ~80% to 100%
our monitoring service was alerted and deleted the file - but not before we got a core dropped in / root directory. Definitely something dropped a file there.

Still not clear what made the sendmail.cf file disappear though - the tech that cleaned up the file also trimmed the logs while he was on but nothing about /etc/mail/sendmail.cf

so that is still a mystery to be solved.

The core file has been sent to HP to see what they can make of it.
# 3  
Old 01-06-2009
The file command
Code:
file core

will tell you the name of the app that dropped the core file.
# 4  
Old 01-06-2009
thanks. We've unfortunately moved it off the server already, but good to know for the future. I can see that the file was owned by root though.
# 5  
Old 01-06-2009
how can I tell what user accounts might have access to drop files at all in the root directory?
# 6  
Old 01-07-2009
just to record the resolution/root cause

OVO (open view monitoring) dropped a core file in the root file system, filling it to 100%
our monitoring company got the 100% alarm and the tech made some room in root - and also looked for files in vg00 that could be deleted and inadvertantly deleted /etc/mail/sendmail.cf

apparently there was also a sendmail.cf-orig and he got them both.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Sendmail - Attachments & Subjects

Hi All, Not been around in a while. However I have been all over tinternet (google) for days looking for a solution. Where I work has decided to use Sendmail on our Linux and Unix estate for sending emails via scripts. So I am hoping to eventually get a working solution for Sendmail and not... (3 Replies)
Discussion started by: dakelly
3 Replies

2. Shell Programming and Scripting

Find list of files missing read & execute permission

Hi, I'm writing a post-upgrade script and I want to find which files don't have read and execute to everyone. I can run a find . ! -perm, but then I have to use a list of the possible permissions (777,775, 755 etc). Is there a more elegant solution? Thanks (2 Replies)
Discussion started by: Catullus
2 Replies

3. Red Hat

/etc/aliases & Sendmail

I've recently migrated a Solaris 10 server, to Redhat. I've migrated all my crons & scripts and now I'm attempting to set all the aliases, to send to the appropriate accounts. I have a particular user defined in /etc/aliases, however, when a particular script is ran in cron, I do not receive any... (2 Replies)
Discussion started by: Nvizn
2 Replies

4. Solaris

Few things related to HBA port & fcinfo command

Hi Gurus I need to know few things related to HBA port & fcinfo command I have a server where there are 4 HBA ports cards are their. Out of 4 ports 2 are in use & 2 are not in use when I check it physicall. Now I want to know the command through which I can get information about all above... (6 Replies)
Discussion started by: girish.batra
6 Replies

5. UNIX for Dummies Questions & Answers

Using Sendmail (& attachment)

Hi, This is my first thread. Iam trying the following: OS: Sun Database: DB2, Informix, Oracle * Get the status of the database (using database command line options) * pipe to a text file * send mail of the text file to receiptents. TODO1: First step i tried to send a test message.... (3 Replies)
Discussion started by: kenkanya
3 Replies

6. UNIX for Advanced & Expert Users

Problem with sendmail procmail spamassasin & relay

I have been working on setting up a mail relay. I have just about everything working except for the procmail part. The configuration is as follows: Internet -> mailrelay -> mail server | spamassassin server I have spamassassin running on a seperate... (3 Replies)
Discussion started by: hardesty
3 Replies

7. Solaris

Sendmail & SMTP

I have searched this forum extensively and can't seem to find a workable solution to my sendmail issue, but that could be down to my own lack of knowledge so please bear with me... I am using a Sun Solaris 9 box to try and send e-mail to external addresses. The Unix box is not an e-mail server.... (9 Replies)
Discussion started by: KenLynch
9 Replies

8. Red Hat

Unable to install & configure Sendmail

Hi All • Regarding installing sendmail pkg in server, I tried to install the pkg but getting the below errors as shown below - any idea on this? • But I have successfully installed sendmail-cf pkg in the server box • But that is not sufficient we also need to install sendmail pkg • Help is... (2 Replies)
Discussion started by: csaha
2 Replies

9. Programming

Sendmail & mail.local + MySQL API

I've searched this message board, and the newgroups THOROUGHLY, in search of any information towards implenting the MySQL API with C... I'm a "beginner" to the C language I suppose, and i've made a few functions in C that can be implemented into the source code of Sendmail/mail.local, so that any... (2 Replies)
Discussion started by: CGrusden19
2 Replies
Login or Register to Ask a Question