mailq mismatch to files in mqueue

mailq mismatch to files in mqueue

am 01.10.2007 19:40:21 von phillip.corchary

Simple one queue sendmail config.

How does this happen ... normally the number of q-files + number of d-
files = mailq total.



# cd /var/spool/mqueue
# mailq | grep Total
Total requests: 150
# ls | wc -l
7662
# ls | grep -c "^q"
158
# ls | grep -c "^Q"
3676
# ls | grep -c "^d"
3829
# ls | grep -c "^D"
0
#

Re: mailq mismatch to files in mqueue

am 01.10.2007 20:16:15 von Bill Cole

In article <1191260421.020004.63230@19g2000hsx.googlegroups.com>,
phillip.corchary@gmail.com wrote:

> Simple one queue sendmail config.
>
> How does this happen ... normally the number of q-files + number of d-
> files = mailq total.
>
>
>
> # cd /var/spool/mqueue
> # mailq | grep Total
> Total requests: 150
> # ls | wc -l
> 7662
> # ls | grep -c "^q"
> 158
> # ls | grep -c "^Q"
> 3676
> # ls | grep -c "^d"
> 3829
> # ls | grep -c "^D"
> 0
> #

Files starting with Q instead of q are queue files for messages (data in
'd' files) that have failed fatally in ways that are rooted in local
config. Look in your logs for "savemail panic" errors to detail the
specific local cause. Sometimes it makes sense to requeue all of those
my renaming them as real queue files, but usually that is pointless.

--
Now where did I hide that website...

Re: mailq mismatch to files in mqueue

am 03.10.2007 02:52:20 von phillip.corchary

On Oct 1, 12:16 pm, Bill Cole wrote:
> In article <1191260421.020004.63...@19g2000hsx.googlegroups.com>,
>
>
>
> phillip.corch...@gmail.com wrote:
> > Simple one queue sendmail config.
>
> > How does this happen ... normally the number of q-files + number of d-
> > files = mailq total.
>
> > # cd /var/spool/mqueue
> > # mailq | grep Total
> > Total requests: 150
> > # ls | wc -l
> > 7662
> > # ls | grep -c "^q"
> > 158
> > # ls | grep -c "^Q"
> > 3676
> > # ls | grep -c "^d"
> > 3829
> > # ls | grep -c "^D"
> > 0
> > #
>
> Files starting with Q instead of q are queue files for messages (data in
> 'd' files) that have failed fatally in ways that are rooted in local
> config. Look in your logs for "savemail panic" errors to detail the
> specific local cause. Sometimes it makes sense to requeue all of those
> my renaming them as real queue files, but usually that is pointless.
>
> --
> Now where did I hide that website...

Thank you. That's helpful indeed, but the maillog entries are not very
illuminating:
Oct 2 17:50:08 hostname sendmail[28330]: l930o7Su028330: Losing ./
qfl930o7Su028330: savemail panic


Do I need loglevel higher than current (9) to get more debug output?

phil

Re: mailq mismatch to files in mqueue

am 03.10.2007 06:12:48 von Bill Cole

In article <1191372740.821919.39140@y42g2000hsy.googlegroups.com>,
Phil wrote:

> On Oct 1, 12:16 pm, Bill Cole wrote:
> > In article <1191260421.020004.63...@19g2000hsx.googlegroups.com>,
> >
> >
> >
> > phillip.corch...@gmail.com wrote:
> > > Simple one queue sendmail config.
> >
> > > How does this happen ... normally the number of q-files + number of d-
> > > files = mailq total.
> >
> > > # cd /var/spool/mqueue
> > > # mailq | grep Total
> > > Total requests: 150
> > > # ls | wc -l
> > > 7662
> > > # ls | grep -c "^q"
> > > 158
> > > # ls | grep -c "^Q"
> > > 3676
> > > # ls | grep -c "^d"
> > > 3829
> > > # ls | grep -c "^D"
> > > 0
> > > #
> >
> > Files starting with Q instead of q are queue files for messages (data in
> > 'd' files) that have failed fatally in ways that are rooted in local
> > config. Look in your logs for "savemail panic" errors to detail the
> > specific local cause. Sometimes it makes sense to requeue all of those
> > my renaming them as real queue files, but usually that is pointless.
> >
> > --
> > Now where did I hide that website...
>
> Thank you. That's helpful indeed, but the maillog entries are not very
> illuminating:
> Oct 2 17:50:08 hostname sendmail[28330]: l930o7Su028330: Losing ./
> qfl930o7Su028330: savemail panic
>
>
> Do I need loglevel higher than current (9) to get more debug output?

Probably not. You probably just need to look at the details for that
message (ew.g. the queue file and other log lines with the same queue
ID) to determine why Sendmail could not do anything reasonable with the
message.

--
Now where did I hide that website...