POSTFIX-WRAPPER(5) File Formats Manual POSTFIX-WRAPPER(5) (NAME) postfix-wrapper - (API) Postfix (DESCRIPTION) (instance) Postfix . . . "postfix start" Postfix API postfix(1) . Postfix . config_directory . (GENERAL OPERATION) : Postfix "postfix start" . Postfix postfix () . . Postfix : # postfix start postfix(1) . Postfix : # postfix status Postfix . POSTFIX (MANAGING AN INDIVIDUAL POSTFIX INSTANCE) Postfix postfix(1) : # postfix -c /path/to/config_directory command postfix(1) MAIL_CONFIG ( -c ). postfix(1) Postfix . POSTFIX(1) (ENABLING POSTFIX(1) MULTI-INSTANCE MODE) postfix(1) . postfix-script ( daemon ). Postfix Postfix . postfix(1) ( ) start stop Postfix . . postfix(1) : main.cf Postfix: ) multi_instance_wrapper ) multi_instance_directories Postfix . : /etc/postfix/main.cf: multi_instance_wrapper = $daemon_directory/postfix-wrapper multi_instance_directories = /etc/postfix-test $daemon_directory/postfix-wrapper Postfix . postmulti(1) . multi_instance_directories main.cf << >> . postfix(1) $multi_instance_wrapper postfix-script . postfix(1) Postfix . : #!/bin/sh : ${command_directory?"do not invoke this command directly"} POSTCONF=$command_directory/postconf POSTFIX=$command_directory/postfix instance_dirs=`$POSTCONF -h multi_instance_directories | sed 'y/,/ /'` || exit 1 err=0 for dir in $config_directory $instance_dirs do case "$1" in stop|abort|flush|reload|drain) test "`$POSTCONF -c $dir -h multi_instance_enable`" \ = yes || continue;; start) test "`$POSTCONF -c $dir -h multi_instance_enable`" \ = yes || { $POSTFIX -c $dir check || err=$? continue };; esac $POSTFIX -c $dir "$@" || err=$? done exit $err (PER-INSTANCE MULTI-INSTANCE MANAGER CONTROLS) Postfix main.cf . . "multi_instance_enable = yes" Postfix ( ) . . "multi_instance_enable = no" "postfix -c /path/name start" . "stop" "flush" Postfix . "check" "set-permissions" "upgrade-configuration" "start" "check" . (MAINTAINING SHARED AND NON-SHARED FILES) Postfix (manpages) . << >> . Postfix Postfix . . config_directory Postfix multi_instance_directories main.cf . Postfix . (MULTI-INSTANCE API SUMMARY) multi_instance_enable . Postfix "multi_instance_enable = yes" main.cf . "no" Postfix . postfix(1) Postfix -c MAIL_CONFIG . (recursion) . multi_instance_directories postfix(1) postfix-script multi_instance_wrapper . "multi_instance_enable = yes" "stop" "reload" . . main.cf Postfix "multi_instance_enable = yes" "start" "check" . . Postfix config_directory multi_instance_directories main.cf . Postfix . Set-gid postdrop(1) postqueue(1) multi_instance_directories alternate_config_directories . -c MAIL_CONFIG . alternate_config_directories Postfix Postfix Postfix . (ENVIRONMENT VARIABLES) MAIL_CONFIG postfix(1) Postfix . -c postfix(1) (export) postfix(1) . (CONFIGURATION PARAMETERS) . postconf(5) . multi_instance_directories () Postfix Postfix Postfix Postfix . multi_instance_wrapper () postfix(1) multi_instance_directories . multi_instance_name () Postfix. multi_instance_group () Postfix. multi_instance_enable (no) Postfix . (NON-SHARED FILES) config_directory ( 'postconf -d' ) main.cf master.cf Postfix. data_directory ( 'postconf -d' ) Postfix ( : ). queue_directory ( 'postconf -d' ) Postfix. (SEE ALSO) postfix(1) Postfix postmulti(1) $daemon_directory/postfix-wrapper (LICENSE) Secure Mailer . (AUTHORS) Wietse Venema IBM T.J. Watson Research P.O. Box 704 Yorktown Heights, NY 10598, USA Wietse Venema Google, Inc. 111 8th Avenue New York, NY 10011, USA POSTFIX-WRAPPER(5)