mrj wrote:

> i was running out of space and normally i clear up the /var/spool/mqueue
> folder,

If I were you I would check if there is something else you could
 clear up before starting to forcefully delete queued mail.

Also, if your disk regularly fills up due to queued mail you need
to find out why an inordinate anount of mail gets queued or put
in more disk (or both). As an example, if the gateway accepts
mail for users that are unknown to the Exchange server you will
end up with loads of outgoing bounces of witch some will annoy
people and others will sit in your queue till the gateway gives
up on them.

How big is the partition /var/spool resides on?

Since this is a mail gateway (probably running MIMEDefang), you
need enough space for /var/spool to handle the mailqueue, the
quarantine dir and the gateways work files. It's quite possible
that /var/spool needs more space than the default size of /var.

> 2)
> /var/log/messages  i moved these off to another server.. to clear up space.
> it seems it has recreated

It should recreate. Do you have a cron job that rotate the log
files? Unless you have lots of disk, your log files should be
rotated regularly (usually nightly).

> 3)
> /var/spool/MD-Quarantine  -- i deleted all the subfolders and files in here,
> but i'm guessing i wasn't supposed to

That's probably a MIMEDefang quarantine directory. In that case
it's perfectly fine to delete the contents of that directory.

Actually, if you set up MIMEDefang to quarantine a significant
amount of mail I suggest you regularly remove old stuff from the
quarantine (either manually or with a cron job).

> mimedefang uid 26 on /var ... out of inodes.

Check for directories with lots of files on /var.

You have allready checked /var/spool/MD-Quarantine and
/var/spool/mqueue. Check any other /var/spool/*queue* and also
see if there are a bunch of /var/spool/MIMEDefang/mdefang-* left
bnehind.

Note 1: Do not clear the /var/spool/MIMEDefang directory
completely, but delete old /var/spool/MIMEDefang/mdefang-* if
they are there.

Note 2: The /var/spool/*mqueue directories are probably
sendmail's queue directory. You can use sendmail to see what's in
them and to manipulate them.

Regards
/Jonas
-- 
Jonas Eckerman, FSDB & Fruktträdet
http://whatever.frukt.org/
http://www.fsdb.org/
http://www.frukt.org/

Reply via email to