Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 07-28-2008, 12:43 PM   #1
LQ Newbie
Registered: Aug 2003
Posts: 15

Rep: Reputation: 0
Understanding sendmail, LDA , mailboxes

I had a problem where an application server that periodically checks a pop3 mailbox could not read a message (different format than expected).

Consequently the mailbox filled up. I tried to delete the 1st message in the mailbox, but when quiting the "mail" command, the os threw a segment fault. I decided I would save off the mail file and create a new one and deal with the backed up messages later.

I stopped sendmail with "sendmail stop".

[This is a redhat 7.3 machine, and 8.11 sendmail.]

Then I waited for all the sendmail daemons to disappear from the process list.

Then I did a cp and rm to the mail file.

However, even with sendmail stopped, the mailbox continued to fill up with mail.

I am trying to figure out what process continued to fill the mailbox, even with sendmail completely stopped.

Is it the LDA...procmail?

Is there something that empties the mail queue that is not sendmail?

I have also read that the files in /var/mail are hard links to /var/spool/mail. Was it just rebuilding the file from /var/spool/mail?

Right now there are also what look like "temp" files in both /var/spool/mail and /var/mail left over from the time when the problem occurred. They look like "_ZZH*.MYSERVER.MYDOMAIN.COM". What are these files? Can they be recovered?
Old 07-28-2008, 02:08 PM   #2
Senior Member
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,428
Blog Entries: 1

Rep: Reputation: 66
Do you have a fetchmail running, maybe ?
Old 07-28-2008, 07:03 PM   #3
LQ Newbie
Registered: Aug 2003
Posts: 15

Original Poster
Rep: Reputation: 0
Originally Posted by marozsas View Post
Do you have a fetchmail running, maybe ?
I do not see fetchmail in the process list.

And according to my file, procmail is my LTA.

But since procmail is run from within sendmail (I think) and sendmail was stopped...I don't see how procmail could have been running and putting messages in the mail file either...
Old 07-28-2008, 07:07 PM   #4
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
There should be something in your mail logs telling you whats being delivered, and presumably, by what.

btw, RH7.3 is so old you can't have had any security updates in years and really need to upgrade


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
sendmail question: how to move user mailboxes to /home krasl Linux - Server 3 03-14-2008 08:31 PM
Sendmail with LDAP-based mailboxes hockeystop Linux - Software 0 03-20-2005 03:40 AM
How do you view which mailboxes are locked in sendmail and how do you remove the lock mikeyr Linux - Newbie 7 01-22-2004 03:43 PM
smtp? mua? mta? lda?postfix? AWWWW hotrodowner Linux - Networking 22 06-13-2003 10:08 AM
Mailboxes rumrat Linux - Distributions 6 05-02-2003 04:56 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:55 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration