LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 07-28-2008, 01:43 PM   #1
jbailo
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, 03:08 PM   #2
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,393
Blog Entries: 1

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

Original Poster
Rep: Reputation: 0
Quote:
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 sendmail.cf 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, 08:07 PM   #4
billymayday
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
 
  


Reply


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 09:31 PM
Sendmail with LDAP-based mailboxes hockeystop Linux - Software 0 03-20-2005 04: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 04:43 PM
smtp? mua? mta? lda?postfix? AWWWW hotrodowner Linux - Networking 22 06-13-2003 11:08 AM
Mailboxes rumrat Linux - Distributions 6 05-02-2003 05:56 AM


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

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