#594837 Please make ARCHIVEDIR configurable

#594837#5
Date:
2010-08-30 01:29:16 UTC
From:
To:
Hello Maintainer,

please forward this to the courier-upstream

In the config file /etc/courier/courierd I use

ARCHIVEDIR=/var/lib/courier/archive

where /var/lib/courier is a seperated 300 GByte SAS Disk in 3Com Raid-1.

Unfortnately I get per day more then 2 million messages on this  server,
which mean, courier save more then 2 million files per directory...

Even "xargs" can not more handel this!

So I like to see the Option ARCHIVEDIR interpreted as date syntax like

ARCHIVEDIR=/var/lib/courier/archive/%Y-%M-%D_%H

for example, which will solve many problems, because runing a seperated
script to move the files fo archivedirs  in  this  format  is  wast  of
resources because I have to run this script all 5 minutes and  it  eats
up to 50% CPU resources (Quad Xeon with 4 GByte of memory) while moving
even on the same partition which is twice annoying.

WHY can "mv" not do the same as courier does?

Modifying the FS table to point to another directory  instead  of  hard-
moving files and consuming disk IO.  This is WHY ARCHIVEDIR has to be on
the same partition/volume as the courier spool directories.

Thanks, Greetings and nice Day/Evening
    Michelle Konzack
    Systemadministrator
    24V Electronic Engineer
    Tamay Dogan Network
    Debian GNU/Linux Consultant

#594837#10
Date:
2010-08-30 06:25:03 UTC
From:
To:
I suppose you can change /var/lib/courier/archive into a symlink which
target is modified every hour by a cronjob.

This usecase is to specific that we need code inside courier for that
(IMHO).

Regards
	Racke

#594837#15
Date:
2010-08-30 21:27:30 UTC
From:
To:
Am 2010-08-30 08:25:03, schrieb Stefan Hornburg (Racke):

The problem is, that courier create  directories  inside  the  "archive"
like:
        /var/lib/courier/archive/2010.08.28
                                 2010.08.29
                                 2010.08.30

Even this date format is aready annoying.

I think, it need to be forwarded to Sam.
However, this extension would be very usefull.

Thanks, Greetings and nice Day/Evening
    Michelle Konzack

#594837#20
Date:
2010-08-31 06:29:14 UTC
From:
To:
OK, it could be more flexible.

OK.

Regards
	Racke

#594837#25
Date:
2026-05-14 03:24:43 UTC
From:
To:
I have recently taken over maintenance of the courier packages.

Is this still an issue for you with the current version of courier (1.5.1-3)?

#594837#28
Date:
2026-05-14 03:24:43 UTC
From:
To:
I have recently taken over maintenance of the courier packages.

Is this still an issue for you with the current version of courier (1.5.1-3)?