typically great response.
Thanks to :
Jerome M Berkman [jerry_at_uclink.berkeley.edu]
Stan Horwitz [stan_at_thunder.ocis.temple.edu]
John P . Speno [speno_at_isc.upenn.edu]
Robert A. Hayden [rhayden_at_means.net]
Lance A. Brown [brown9_at_niehs.nih.gov]
alan_at_nabeth.cxo.dec.com
I got three "don't worry" and two "worry"... and one was along the lines of
"won't cause a problem but probably should fix it anyway". My fault for not
mentioning that I was using AdvFS. I just checked and, as John P. Speno
said, the AdvFS system trimmed the size of the dir down by itself. With the
bogus messages deleted the dir is now 8192...
I am going to include some nice sendmail information that Jerome M Berkman
sent along to me. Again, thanks to everyone.
-----------------------------------------------------
I wouldn't worry and would concentrate on clearing the backlog.
Shutting down smptd doesn't shut down all activity on the queue directory
- it is still possible for logged in users to send mail, for
system processes to send mail, and lots of queue runs may have files
in the queue open.
You can make a new queue directory, e.g.:
mkdir /var/spool/mqueue2
and then edit /etc/sendmail.cf and specify it as the queue directory:
# queue directory
O QueueDirectory=/var/spool/mqueue2
Above is how it looks in sendmail-8.8.8; you haven't said what version
your are using.
Then restart smtpd and all subsequent references will be to the new
directory. You must still deal with all the files in the old
queue directory. You can just have queue runs every 15 minutes
until it is drained:
% /usr/lib/sendmail -q15m -oQ/var/spool/mqueue
And of course, you can use the same steps to switch back.
You can also merge two queues. The problem here is to avoid moving
any files in active use, because they may be updated in the directory
you are getting rid of during or after the move. Kill off any
queue runs on the directory you are getting rid of and wait a while
until the directory is quiescent, then move all files to the new directory.
Note - xf files are lock files and you really don't want them when
moving. Also, wait until new messages use a different key letter
to minimize collisions when merging. E.g. if the old directory
has mainly {q,d}fC..., then wait until the new directory is using
{q,d}fD...
- Jerry Berkman, UC Berkeley
---------------------------------------
Daniel Monjar / dmonjar_at_orgtek.com
Manager, Systems and Operations
Organon Teknika
Received on Wed Apr 15 1998 - 19:27:57 NZST