PMDF System Manager's Guide


Previous Contents Index

22.2.6 Using Multiple Script Channels

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 

Note

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 
Then create a /pmdf/table/script_msgstore_option file for the script_msgstore channel, containing for example:


COMMAND=/pmdf/tmp/script_msgstore.sh 
Where 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 
In this example, the 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