?
Solved

mailq returns empty, but ls /var/spool/mqueue returns 1022 entries

Posted on 2003-03-18
5
Medium Priority
?
1,301 Views
Last Modified: 2013-12-17
Hi,
  I have a server running solaris 2.8, mailq returns /var/spool/mqueue is empty,
but ls /var/spool/mqueue at least 1000 entries.  I thought these two should be
the same.   Why is this?

thanks in advance
0
Comment
Question by:siunix
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
5 Comments
 
LVL 15

Accepted Solution

by:
samri earned 200 total points
ID: 8179795
In the mqueue directory, there would be files, and the naming format would be like this (http://source.mawk.de/oreilly-bookshelf/sendmail/ch23_02.htm),

File  Description
df Section 23.2.2, "The Data (Message Body) File: df" Data (message body)
lf Section 23.2.3, "The Lock File (obsolete as of V5.62): lf" Lock file (obsolete as of V5.62)
nf Section 23.2.4, "The ID Creation File (obsolete as of V5.62): nf" ID creation file (obsolete as of V5.62)
tf Section 23.2.6, "The Temporary qf Rewrite Image: tf" Temporary qf rewrite image
xf Section 23.2.7, "The Transcript File: xf" Transcript file
qf Section 23.2.5, "The Queue Control File: qf" Queue control file (and headers)

So before printing the mqueue directory, it will scan for "qf" file.

>>Before printing the queue's contents, sendmail prereads all the qf files in the queue and sorts the mail messages internally. This is done so that the queue's contents are displayed in the same order in which the messages will be processed during a queue run.

http://source.mawk.de/oreilly-bookshelf/sendmail/ch23_04.htm

So in you case, check if you had qfXXXXX, in addition to other dfXXXXX, etc.

cheers.
0
 
LVL 15

Expert Comment

by:samri
ID: 12015488
my explanation should give a method to verify -- however, its hard to be sure that this is the case the asker is experiencing.

I would think that it should work (the URL reference is no longer valid :(.

Cheers.
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Microsoft has released various new features which are capable of handling various tasks. One of these tasks is ‘Migration from pop3 to Exchange Server’. Pop3 data stores various data along mailboxes like contacts, tasks, etc. So, it becomes the need…
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Suggested Courses

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question