| Previous | Contents | Index |
Multiple script channels can be configured. Separate script channels can be used to run different command procedures or scripts.
First, multiple script channels must be defined in the PMDF configuration file. For example:
script SCRIPT-DAEMON script_msgstore SCRIPTMS-DAEMON |
Make sure you define a channel named exactly script.
|
Second, create channel option files for each of these channels,
containing the command to execute. Using the example script channels
above (for UNIX), create a /pmdf/table/script_option file
for the script channel, containing for example:
COMMAND=/pmdf/tmp/script.sh |
/pmdf/table/script_msgstore_option file for
the script_msgstore channel, containing for example:
COMMAND=/pmdf/tmp/script_msgstore.sh |
script.sh and script_msgstore.sh are
site-supplied scripts.
Third, add a SCRIPT mapping table, using the
channel keyword, for example:
SCRIPT IN-CHAN=tcp_*;OUT-CHAN=l;SCRIPT channel=script IN-CHAN=tcp_*;OUT-CHAN=msgstore;SCRIPT channel=script_msgstore IN-CHAN=*;OUT-CHAN=*;SCRIPT No |
script.sh script is run for messages
destined for local UNIX mail delivery, and the
script_msgstore.sh script is run for messages destined for
MessageStore accounts.
| Previous | Next | Contents | Index |