Files still being created in /var/spool/mmdf/lock/home


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Files still being created in /var/spool/mmdf/lock/home
# 1  
Old 03-27-2006
Files still being created in /var/spool/mmdf/lock/home

Hi all

I need help finding a process that is continuing to create files in the above area. There are three sub folder titled addr q.local and msg . I have already found a process called mmdf running and have used the kill command to stop this from running. I have also looked for sendmail or qmail but neither are running.

These files continue to be created and all start with msg and then have very obscure names after the dot. The system in question is also running slow which I can only assume is caused by the same process that it doing this.

The O/S is Sco Unix Release 5. Any help would be appreciated.
# 2  
Old 03-27-2006
Hi,
One approach i can think of is to first list the process ids
1. ps -eaf | tr -s " " | cut -f 1 -d " " > mytemppid.txt
2. sed '1d' mytemppid.txt > mypid.txt //Deleting first line teh header

Now for each process id see what files it has opened using
4. /usr/proc/bin/pfiles <pid>
Where pid is the process-id of the process.
It lists the inode numbers of all the files, opened
by that process.

Since its list inode number you need to know the inode number fo your file .
ls -li gives inode number for your file.

Hope this helps.
Regs,
Reddy
# 3  
Old 03-27-2006
On running ps -eaf | tr -s " " | cut -f 1 -d " " > pidlist I get an empty file, is this because the ps command has something different for SCO? I know that running ps -ef would work but what does the a parameter do?
# 4  
Old 03-27-2006
Quote:
ps -eaf | tr -s " " | cut -f 1 -d " " > pidlist
this should probably give you some listing,
eccentric that you dont get any output
atleast you can try this,
try executing the commands individually and you can find the point

besides,
-a option would eliminate listing of session leaders and process that are not connected to the terminal
# 5  
Old 03-27-2006
mmdf is the SCO mail daemon - the files being created are probably email to be sent. If it's like Sendmail, the mail will still be running even though you killed the mmdf process. This means killing the process doesn't stop email from being created and put into the queue to be sent - it just means you can't receive mail on that server (again, assuming MMD works like Sendmail).

Check what type of files are being put into the directories - file * should list them. If they are type ascii, cat a couple of them. You will probably find they are emails. Check to see if any of the files seem to be spam. You may not have your mmdf set up properly and could be a relay for a spammer.

Killing off the mmdf probably didn't do a thing for you. And if the system is slow (and email isn't going out), then you probably have a problem with DNS (again, this is assuming that mmdf works like Sendmail) OR with someone using your system as a mail relay.

mmdf relay
MMDF overview

Quote from MMDF overview:
Quote:
After parsing the database and determining what channel the message needs to be sent through, the message is place in the appropriate queue directory. These are located in /usr/spool/mmdf/lock/home. There is one directory of the form q.<channel> for each <channel> configured. In addition, there are two other directories here: msg and addr.

The files in q.<channel> are linked to the files in addr and contain administrative information about the message like the sender, recipient and the queue. At first, it may seem odd to have duplicate files, like this. However, this makes sense when you consider the different delivery modes, or "priorities" you can configure MMDF for.
# 6  
Old 03-27-2006
Quote:
Originally Posted by RTM
mmdf is the SCO mail daemon - the files being created are probably email to be sent. If it's like Sendmail, the mail will still be running even though you killed the mmdf process. This means killing the process doesn't stop email from being created and put into the queue to be sent - it just means you can't receive mail on that server (again, assuming MMD works like Sendmail).

Check what type of files are being put into the directories - file * should list them. If they are type ascii, cat a couple of them. You will probably find they are emails. Check to see if any of the files seem to be spam. You may not have your mmdf set up properly and could be a relay for a spammer.

Killing off the mmdf probably didn't do a thing for you. And if the system is slow (and email isn't going out), then you probably have a problem with DNS (again, this is assuming that mmdf works like Sendmail) OR with someone using your system as a mail relay.

mmdf relay
MMDF overview

Quote from MMDF overview:
The files in these folder start with msg. followed by very unusal characters including ASCII line graphics . I will however attempt to view one of these files and thanks for the input on this. The strange part is that this server is not used for emailing so these messages must aimed at the admin?
# 7  
Old 03-27-2006
I have viewed one of these files and it contains the following lines (I have had to edited the details after the @ sign due to it being a security matter)

1143335643m2
mmdf@madeup.domain.com
- m local, , root

Does this help anymore on why this is happening?
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

/var/spool/mail/<username> files' content wipeout impact

Hi Guys!!! ->I am using AIX 6.1. One of the file system full which is /var filesystem. ->/var total size is 5.00 GB. ->And inside the /var file system spool/mail folde is taking around 2.9 GB. ->There 3 big size of file as shown below, which shows that these files are taking more size.... (4 Replies)
Discussion started by: manjusharma128
4 Replies

2. Solaris

/var/spool/mqueue issue

Hi guys . I have a solaris machine serving as a DNS server for my environment. Everytime I go into /var/spool/mqueue , there are an aweful lot of emails with names likes: qfqB6ChrpL006644. When I cat the file , I get the following output: H??Received: from machine.domain.com... (3 Replies)
Discussion started by: Junaid Subhani
3 Replies

3. UNIX for Advanced & Expert Users

Testing privileges -lock lockfile /var/lock/subsys/..- Permission denied

Hi all, I have to test some user priviliges. The goal is to be sure that an unauthorized user can't restart some modules (ssh, mysql etc...). I'm trying to automate it with a shell script but in same cases I got the syslog broadcast message. Is there any way to simply get a return code... (3 Replies)
Discussion started by: Dedalus
3 Replies

4. AIX

/var/spool/mail/ issues

Hi My box is running with AIX 6100-06 and Im the root user of this box My /var gets filled up often to 100% When I investigate I find that it is the below file which increases rapidly /var/spool/mail/pdgadmin I dont know why this file is growing up. Can any one assist me on this.... (2 Replies)
Discussion started by: samsungsamsung
2 Replies

5. Solaris

/var/spool/clientmqueue

Hi, solaris : 9 can we delete the files from this location /var/spool/clientmqueue . I found around 40K files lying in this location. Regards (1 Reply)
Discussion started by: maooah
1 Replies

6. Solaris

Need to know command to delete more than 3 million files from /var/spool/clientmqueue

Hi I need to delete more than 3 million files from /var/spool/clientmqueue. When I give the following command to delete the files, I get the error # pwd /var/spool/clientmqueue # rm -f * /usr/bin/rm: arg list too long Please tell me how can I delete the files (5 Replies)
Discussion started by: sb200
5 Replies

7. UNIX for Dummies Questions & Answers

/var/spool/mail

Hi, How can i get my mail on either /var/spool/mail or /var/mail? I use mail and sendmail command to send mail. But everytime I send mail it comes to my outlook inbox and when I check with mail command I get the message "No mail for siba". (Note siba is my user Id.) (2 Replies)
Discussion started by: siba.s.nayak
2 Replies

8. SCO

lp: cannot lock /usr/spool/lpd/printer1/.seq

Hi. I'm receive thats error on my PC. lp: cannot lock /usr/spool/lpd/printer1/.seq This PC is a Windows pc running lpd on port 515. That its means? Thanks. PD. Sorry for my english! (0 Replies)
Discussion started by: sebpes
0 Replies

9. UNIX for Dummies Questions & Answers

How safe is it to remove files(/var/spool/mail)?

How safe is it to remove these spooler mail files. I need to make some room in the /usr directory? Any ideas? thanks (2 Replies)
Discussion started by: larcom61
2 Replies

10. UNIX for Dummies Questions & Answers

/var/spool/mqueue !!!

I keep having this msg on my SunOS console : Jun 29 08:57:40 bersimis sendmail: NOQUEUE: low on space (have 0, SMTP-DAEMON needs 101 in /var/spool/mqueue) I tried to make some space by deleting the files in it, but the msg came back ... Any tips ? Thanks (3 Replies)
Discussion started by: Wingman21
3 Replies
Login or Register to Ask a Question