Emails are getting stuck in the mqueue.in directory

Denis Beauchemin Denis.Beauchemin at USHERBROOKE.CA
Mon Apr 11 21:23:31 IST 2005


    [ The following text is in the "ISO-8859-1" character set. ]
    [ Your display is set for the "US-ASCII" character set.  ]
    [ Some characters may be displayed incorrectly. ]

Danny Beland wrote:

> I'm running Linux with sendmail v8.12.10, MailScanner v4.40.11, ClamAV 
> and McAfee command line scanner. The problem we have is that emails 
> get stuck in the mqueue.in folder. When there is new messages, we can 
> see that there is some getting stuck . In the log below we can see 
> that it only gets 4 messages out but there is still 34 left, but after 
> it is done scanning, it doesn't go to grab the 34 messages left.  The 
> content of the mqueue.in folder is listed after the mailscanner log. I 
> was using flock as the lock type before, but the same problem occurs.  
> There is also nothing in the incoming folders. I am not sure if it is 
> a setting that is causing this or it is a bug. Thanks!!
>
> ...
> hound2:/var/spool/mqueue.in # date
> Mon Apr 11 11:09:24 EDT 2005
> hound2:/var/spool/mqueue.in # ls -la
> total 8847
> drwx------   3 root root    2448 Apr 11 11:04 .
> drwxr-xr-x  14 root root     392 Mar  7 07:08 ..
> drwx------   2 root root      48 Apr  1 11:37 .hoststat
> -rw-------   1 root mail       0 Mar 23 11:18 dfj2NEI6xL013577
> -rw-------   1 root mail   28672 Mar 23 10:00 dfj2NEiZxL000663
> -rw-------   1 root mail   49152 Mar 23 10:30 dfj2NFNDxL027390
> -rw-------   1 root mail    8192 Mar 23 10:27 dfj2NFNRxL027535
> -rw-------   1 root mail  933888 Mar 23 11:27 dfj2NGR3xL009916
> -rw-------   1 root mail   45056 Mar 23 11:38 dfj2NGZbhN013223
> -rw-------   1 root mail   36864 Mar 23 11:52 dfj2NGiFhN018441
> -rw-------   1 root mail   16384 Mar 23 11:54 dfj2NGnNhN021755
> -rw-------   1 root mail   12288 Mar 23 12:19 dfj2NHG4hN005200
> -rw-------   1 root mail   36864 Mar 23 12:33 dfj2NHRChN011805
> -rw-------   1 root mail   32768 Mar 23 12:34 dfj2NHTAhN012967
> -rw-------   1 root mail   12288 Mar 23 12:37 dfj2NHY3hN016085
> -rw-------   1 root mail   20480 Mar 23 12:45 dfj2NHiPhN022029
> -rw-------   1 root mail   28672 Mar 23 12:55 dfj2NHpkhN026568
> -rw-------   1 root mail   49152 Mar 23 13:10 dfj2NHsnhN028287
> -rw-------   1 root mail 1294336 Mar 23 13:11 dfj2NHv6hN029541
> -rw-------   1 root mail 2375680 Mar 23 13:11 dfj2NHv6hN029542
> -rw-------   1 root mail   24576 Mar 23 13:10 dfj2NI1vhN032534
> -rw-------   1 root mail  368640 Mar 23 13:47 dfj2NIlL9h026163
> -rw-------   1 root mail    8192 Mar 24 10:55 dfj2OFsFmq028118
> -rw-------   1 root mail   16384 Mar 24 10:55 dfj2OFslmq028381
> -rw-------   1 root mail   28672 Mar 24 10:56 dfj2OFtpmq028984
> -rw-------   1 root mail  139264 Mar 24 10:56 dfj2OFummq029645
> -rw-------   1 root mail     541 Apr  1 11:35 dfj31EZ1q7006497
> -rw-------   1 root mail   16384 Apr  1 10:19 dfj31FIwq7010985
> -rw-------   1 root mail   20480 Apr  1 10:24 dfj31FM9q7013458
> -rw-------   1 root mail   16384 Apr  1 11:44 dfj31Gikq7017302
> -rw-------   1 root mail     872 Apr  4 10:08 dfj34C8nOj011677
> -rw-------   1 root mail   61440 Apr  4 08:53 dfj34ClhOj026253
> -rw-------   1 root mail   16384 Apr  4 09:08 dfj34D6YOj020610
> -rw-------   1 root mail  155648 Apr  4 09:53 dfj34DaiOj000798
> -rw-------   1 root mail  421888 Apr  4 09:44 dfj34Dd0Oj004396
> -rw-------   1 root mail  368640 Apr  4 10:05 dfj34E2pOj009876
> -rw-------   1 root mail  708608 Apr  4 10:14 dfj34E8UOj017604
> -rw-------   1 root mail   28672 Apr 11 09:12 dfj3BDAsWg029242
> -rw-------   1 root mail   32768 Apr 11 09:26 dfj3BDJiWg003720
> -rw-------   1 root mail   49152 Apr 11 09:33 dfj3BDVOWh011659
> -rw-------   1 root mail   61440 Apr 11 09:33 dfj3BDVPWh011695
> -rw-------   1 root mail    8192 Apr 11 09:33 dfj3BDVWWh011768
> -rw-------   1 root mail   20480 Apr 11 09:34 dfj3BDVXWh011771
> -rw-------   1 root mail   32768 Apr 11 09:43 dfj3BDduWg017597
> -rw-------   1 root mail   32768 Apr 11 09:48 dfj3BDjOWg021883
> -rw-------   1 root mail  831488 Apr 11 10:41 dfj3BEdFWg027932
> -rw-------   1 root mail  638976 Apr 11 10:52 dfj3BElWWg001619
> -rw-------   1 root mail     923 Apr  5 00:56 qfj352riWh022594
> -rw-------   1 root mail     967 Apr  5 09:28 qfj35BSMWh013958
> -rw-------   1 root mail     925 Apr  5 14:18 qfj35GHhWh004468
> -rw-------   1 root mail     949 Apr  5 16:05 qfj35I5kWh013983
> -rw-------   1 root mail     977 Apr  5 16:09 qfj35I60Wh014078
> -rw-------   1 root mail     940 Apr  5 19:08 qfj35L7sWh004843
> -rw-------   1 root mail     953 Apr  6 01:40 qfj363aaWh008242
> -rw-------   1 root mail    1711 Apr  6 00:20 qfj364J3Wo022047
> -rw-------   1 root mail    1001 Apr  6 04:52 qfj366q0Wh003389
> -rw-------   1 root mail    1046 Apr  6 23:23 qfj371NVWh010276
> -rw-------   1 root mail     961 Apr  7 00:54 qfj372qWWh006615
> -rw-------   1 root mail     928 Apr  7 02:15 qfj374CoWi031202
> -rw-------   1 root mail     971 Apr  7 17:01 qfj37IwpWh004066
> -rw-------   1 root mail     924 Apr  8 03:00 qfj38404Wh003283
> -rw-------   1 root mail     924 Apr  8 03:35 qfj384YMWh013402
> -rw-------   1 root mail     925 Apr  8 04:05 qfj3863tWh006263
> -rw-------   1 root mail     916 Apr  8 10:20 qfj38CHnWh000714
> -rw-------   1 root mail     965 Apr  8 15:57 qfj38HsLWh004420
> -rw-------   1 root mail     915 Apr  8 20:13 qfj38MC0Wh007466
> -rw-------   1 root mail     944 Apr  8 23:42 qfj391dvWh009561
> -rw-------   1 root mail     915 Apr  9 01:07 qfj39260Wh016687
> -rw-------   1 root mail     914 Apr  9 21:58 qfj39MvdWh023748
> -rw-------   1 root mail     916 Apr 10 04:46 qfj3A6ebWh030427
> -rw-------   1 root mail     916 Apr 10 09:43 qfj3ABWdWh030461
> -rw-------   1 root mail     996 Apr 10 11:40 qfj3ADduWh027873
> -rw-------   1 root mail    1008 Apr 10 16:23 qfj3AILcWh007512
> -rw-------   1 root mail     950 Apr 10 23:05 qfj3B0vZWo005462
> -rw-------   1 root mail    1007 Apr 11 00:19 qfj3B4JMWg020843
> -rw-------   1 root mail     920 Apr 11 03:50 qfj3B5n2Wh013589
> -rw-------   1 root mail     950 Apr 11 10:14 qfj3BCDgWh028342
> hound2:/var/spool/mqueue.in # ls -1|wc -l
> 77


Danny,

All those files are leftovers (probably from MS restarts).  They have 
been processed but were partially left behind because of the restarts.  
You can see they are not complete emails because you don't have q* and 
d* files for the same email.

I've ran your listing through "cat -|awk '{print 
substr($NF,2)}'|sort|uniq -c" and all filenames were unique (count=1).

I use the following command when I want to clean up those files:
cd /var/spool/mqueue.in; rm -f $(ls -l|grep -v "$(date '+%b %e')"|awk 
'$1 ~ /^-/{print $NF}')

It removes all files that don't have the current date.

Denis

-- 
   _
  °v°   Denis Beauchemin, analyste
 /(_)\  Université de Sherbrooke, S.T.I.
  ^ ^   T: 819.821.8000x2252 F: 819.821.8045



------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
'leave mailscanner' in the body of the email.
Before posting, read the MAQ (http://www.mailscanner.biz/maq/) and
the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).

Support MailScanner development - buy the book off the website!

    [ Part 2, "S/MIME Cryptographic Signature"  ]
    [ Application/X-PKCS7-SIGNATURE  4.4KB. ]
    [ Unable to print this part. ]




More information about the MailScanner mailing list