/*++ /* NAME /* mail_conf 3 /* SUMMARY /* global configuration parameter management /* SYNOPSIS /* #include <mail_conf.h> /* /* void mail_conf_read() /* /* void mail_conf_suck() /* /* void mail_conf_flush() /* /* void mail_conf_checkdir(config_dir) /* const char *config_dir; /* /* void mail_conf_update(name, value) /* const char *name; /* const char *value; /* /* const char *mail_conf_lookup(name) /* const char *name; /* /* const char *mail_conf_eval(string) /* const char *string; /* /* const char *mail_conf_eval_once(string) /* const char *string; /* /* const char *mail_conf_lookup_eval(name) /* const char *name; /* DESCRIPTION /* mail_conf_suck() reads the global Postfix configuration /* file, and stores its values into a global configuration /* dictionary. When the configuration directory name is not /* trusted, this function requires that the directory name is /* authorized with the alternate_config_directories or /* multi_instance_directories setting in the default main.cf file. /* /* This function requires that all configuration directory /* override mechanisms set the MAIL_CONFIG environment variable, /* even if the override was specified via the command line. /* This reduces the number of pathways that need to be checked /* for possible security attacks. /* /* mail_conf_read() invokes mail_conf_suck() and assigns the values /* to global variables by calling mail_params_init(). /* /* mail_conf_flush() discards the global configuration dictionary. /* This is needed in programs that read main.cf multiple times, to /* ensure that deleted parameter settings are handled properly. /* /* mail_conf_checkdir() verifies that configuration directory /* is authorized through settings in the default main.cf file, /* and terminates the program if it is not. /* /* The following routines are wrappers around the generic dictionary /* access routines. /* /* mail_conf_update() updates the named global parameter. This has /* no effect on parameters whose value has already been looked up. /* The update succeeds or the program terminates with fatal error. /* /* mail_conf_lookup() looks up the value of the named parameter. /* A null pointer result means the parameter was not found. /* The result is volatile and should be copied if it is to be /* used for any appreciable amount of time. /* /* mail_conf_eval() recursively expands any $parameters in the /* string argument. The result is volatile and should be copied /* if it is to be used for any appreciable amount of time. /* /* mail_conf_eval_once() non-recursively expands any $parameters /* in the string argument. The result is volatile and should /* be copied if it is to be used for any appreciable amount /* of time. /* /* mail_conf_lookup_eval() looks up the named parameter, and expands any /* $parameters in the result. The result is volatile and should be /* copied if it is to be used for any appreciable amount of time. /* DIAGNOSTICS /* Fatal errors: malformed numerical value. /* ENVIRONMENT /* MAIL_CONFIG, non-default configuration database /* MAIL_VERBOSE, enable verbose mode /* FILES /* /etc/postfix: default Postfix configuration directory. /* SEE ALSO /* dict(3) generic dictionary manager /* mail_conf_int(3) integer-valued parameters /* mail_conf_str(3) string-valued parameters /* LICENSE /* .ad /* .fi /* The Secure Mailer license must be distributed with this software. /* AUTHOR(S) /* 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
/*--*/
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.