Andreas, > the german postbuch-users mailinglist diskussed yesterday a case where > a user configured amavisd-new to use a ram-disk. > > The ramdisk runs out of space: > > May 4 11:12:59 amavis[5180]: (05180-01) (!)PRESERVING EVIDENCE in > > /var/spool/amavis/tmp/amavis-20110504T111247-05180 May 4 11:14:15 > > amavis[4899]: (04899-04) (!)PRESERVING EVIDENCE in > > /var/spool/amavis/tmp/amavis-20110504T105513-04899 May 4 11:58:51 > > is it possible to tell amavisd it should preserve such data in a > separate directory *outside* $TEMPBASE (ram-disk?)
No, it is currently not possible to have amavisd move the preserved files away from their location. It is however possible to turn off preserving of evidence since 2.7.0: $allow_preserving_evidence = 0; I do not recommend having $TEMPBASE on a smallish device (such as a ram-disk). Modern file systems offer sufficient caching and delayed/nonsynchronous metadata updates (journalling, UFS, ZFS) that it is rarely worth having it on a ramdisk. Another option is to use a dedicated consumer disk with a ram cache and write-through disabled for temporary storage. Mark
