[Support] Vacation: vacation.lock verschwindet

Paul Hink email at p-hink.de
Fri Aug 3 20:34:22 CEST 2007


Frank Lerche <flerche at gmx.de> wrote:

> Am Fri, 3 Aug 2007 08:54:43 +0200 schrieb Thomas Kramer
> <thomas.kramer at hostsharing.net> :

> > Am 02.08.2007 um 14:00 schrieb Frank Lerche:
> > 
> > > ein Kunde nutzt vacation  via .procmailrc. Lädt er vacation.lock
> > > (0- byte-Datei) per FTP hoch, verschwindet dieses nach kurzer
> > > Zeit. Was oder wer rödelt da noch in $HOME rum, wie kann ich das
> > > Problem vermeiden?
> > 
> > Wieso lädt er denn die vacation.lock per FTP hoch?

> [...]

> Ich bin genau nach
> http://www.hostsharing.net/dokumentation/email/procmailrc.html
> vorgegangen.

Das heißt, die vacation.lock wird - wie schon von Thomas vermutet - von
procmail als Lockfile verwendet. Wenn man eine Datei, die procmail als
Lockfile verwendet, manuell anlegt, sieht procmail diese nach einiger
Zeit als "stale lockfile" an und löscht sie:

| LOCKTIMEOUT Number of seconds that have to have passed since a
|             lockfile was last modified/created before procmail
|             decides that this must be an erroneously leftover
|             lockfile that can be removed by force now. If zero, then
|             no timeout will be used and procmail will wait forever
|             until the lockfile is removed; if not specified, it
|             defaults to 1024 seconds. This variable is useful to
|             prevent indefinite hangups of sendmail/procmail. 
|             Procmail is immune to clock skew across machines.

(Zitat aus `man 5 procmailrc`)

> Die vacation.lock lädt er hoch, um die Abwesenheitsnachricht zu
> stoppen - per FTP, weil er keine shell hat ...

Wie du selbst gemerkt hast, funktioniert das so nicht. Möglichkeiten
wären z.B.:

- Die vacation-Recipes in der .procmailrc auskommentieren (das geht
  auch per FTP).

- Die vacation-Recipes in eine eigene Datei auslagern und diese per
  INCLUDERC einbinden. Zum (De-) Aktivieren muss dann nur noch eine
  einzige Zeile in der .procmailrc aus- bzw. einkommentiert werden.

- Wenn's denn unbedingt das Anlegen einer Datei sein soll, das die
  vacation-Recipes deaktiviert: Eine andere Datei als das von procmail
  verwendete Lockfile nehmen und das erste der beiden vacation-Recipes
  um eine Regel ergänzen:

	* ? test ! -e vacation.off

Paul


More information about the Support mailing list