Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I run a Gentoo (LAMP server) with a qmail.

I see that the folder /var/qmail/alias/.maildir/new/ contains 100'000s of files.

Do you know how I can have them purged automatically?

Thanks for your great help.

EDIT: I checked the files (+400k actually). They are from 2004-today. They all have the same header ( is a replacement of the real domain):

Return-Path: <#@[]>
Received: (qmail 27514 invoked for bounce); 17 Sep 2009 15:46:37 +0200
Date: 17 Sep 2009 15:46:37 +0200
Subject: failure notice

If I use outlook and check the account postmaster I do not see them.

share|improve this question
up vote 1 down vote accepted

After deleting them you probably want to investigate why you have them.

They look like double-bounces (the "#@[]" in the return-path/envelope sender), so check a) the contents of /var/qmail/control/doublebounceto (which, if not present, defaults to "postmaster") b) the contents of the relevant .qmail file.

(I'd take a guess that ~alias/.qmail-postmaster contains "./.maildir/" or similar, as well as some other location that you are actually checking when you check what you believe to be the postmaster account.)

share|improve this answer

each file represents a separate email. if you dont need them you can delete them, i guess easiest way is to do rm -rf /var/qmail/alias/.maildir/ and then use maildirmake /var/qmail/alias/.maildir, if I were you though I'd open some of them just to be sure that you not deleting something important although if you have 100k of emails most likely its outdated/spam/bounces

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.