Next: , Previous: Maidag Scripting, Up: maidag


3.11.6 Forwarding

Forward file is a special file in the user's home directory that contains the email address of the mailbox where the user wants to forward his mail. Normally, forward files are processed by MTA. However, there are some MTA that lack this feature. One of them is MeTA1.

Maidag provides a forwarding feature that is useful to compensate the lack of it.

Name of the forward file is given using forward-file configuration statement. A common usage is:

     forward-file .forward;

The forward file is always searched in the recipient home directory.

Before actually using the file, a number of safety checks are performed on it. If the file fails to pass one of these checks, no forwarding is performed and the message is delivered as usual. These checks can be configured using forward-file-checks statement. Its argument is a list of the following keywords:

groupwritablefile
file_iwgrp
The file must not be group writable.
worldwritablefile
file_iwoth
The file must not be world writable.
linkedfileinwritabledir
link
The file cannot be a symlink in a writable directory.
fileingroupwritabledir
dir_iwgrp
The file cannot reside in a group writable directory.
fileinworldwritabledir
dir_iwoth
The file cannot reside in a world writable directory.
all
All of the above checks.

The default is ‘forward-file-checks all’.

Each of these keywords may be prefixed by ‘no’ to disable this particular check. For example:

     forward-file-checks (nodir_iwoth, nodir_iwgrp);