settings.h revision 1138ef5e898296a167d1904e825ee654ee421591
45312f52ff3a3d4c137447be4c7556500c2f8bf2Timo Sirainen#ifndef __SETTINGS_H
1d4f710106fb498750456724628da6063e012e6dTimo Sirainen#define __SETTINGS_H
1d4f710106fb498750456724628da6063e012e6dTimo Sirainen
9439bed2f07d6475febd8a247cd2f0990fb32a13Timo Sirainen/* common */
d3d769026fae5d21c2d29614d3bc4579e8d79e81Timo Sirainenextern char *set_log_path;
e248fe370c4047cee921a91b48edc37944ab0526Timo Sirainenextern char *set_log_timestamp;
e248fe370c4047cee921a91b48edc37944ab0526Timo Sirainen
e248fe370c4047cee921a91b48edc37944ab0526Timo Sirainen/* general */
9439bed2f07d6475febd8a247cd2f0990fb32a13Timo Sirainenextern unsigned int set_imap_port;
9439bed2f07d6475febd8a247cd2f0990fb32a13Timo Sirainenextern unsigned int set_imaps_port;
e248fe370c4047cee921a91b48edc37944ab0526Timo Sirainenextern char *set_imap_listen;
9439bed2f07d6475febd8a247cd2f0990fb32a13Timo Sirainenextern char *set_imaps_listen;
e248fe370c4047cee921a91b48edc37944ab0526Timo Sirainen
e248fe370c4047cee921a91b48edc37944ab0526Timo Sirainenextern char *set_ssl_cert_file;
e248fe370c4047cee921a91b48edc37944ab0526Timo Sirainenextern char *set_ssl_key_file;
e248fe370c4047cee921a91b48edc37944ab0526Timo Sirainenextern int set_disable_plaintext_auth;
4ead43ecc06d10047998966c4dc0b142ecce4b66Timo Sirainen
1d4f710106fb498750456724628da6063e012e6dTimo Sirainen/* login */
1d4f710106fb498750456724628da6063e012e6dTimo Sirainenextern char *set_login_executable;
9439bed2f07d6475febd8a247cd2f0990fb32a13Timo Sirainenextern char *set_login_user;
9439bed2f07d6475febd8a247cd2f0990fb32a13Timo Sirainenextern char *set_login_dir;
6fdfa4d4cf14d1d7764d7faa8258f112e39c8dbeTimo Sirainenextern int set_login_chroot;
ab0d9eecd85f74acae18fe88529302e0776cc500Timo Sirainenextern unsigned int set_login_processes_count;
ad004e44be109684521494b5af2ad1da39b8bb27Timo Sirainenextern unsigned int set_max_logging_users;
e248fe370c4047cee921a91b48edc37944ab0526Timo Sirainen
e248fe370c4047cee921a91b48edc37944ab0526Timo Sirainenextern uid_t set_login_uid;
336b825e0321b798690351d9899b1b0cb99ec462Timo Sirainenextern gid_t set_login_gid;
e248fe370c4047cee921a91b48edc37944ab0526Timo Sirainen
e248fe370c4047cee921a91b48edc37944ab0526Timo Sirainen/* imap */
e248fe370c4047cee921a91b48edc37944ab0526Timo Sirainenextern char *set_imap_executable;
e248fe370c4047cee921a91b48edc37944ab0526Timo Sirainenextern char *set_valid_chroot_dirs;
e248fe370c4047cee921a91b48edc37944ab0526Timo Sirainenextern unsigned int set_max_imap_processes;
ad004e44be109684521494b5af2ad1da39b8bb27Timo Sirainen
e248fe370c4047cee921a91b48edc37944ab0526Timo Sirainenextern unsigned int set_first_valid_uid, set_last_valid_uid;
e248fe370c4047cee921a91b48edc37944ab0526Timo Sirainenextern unsigned int set_first_valid_gid, set_last_valid_gid;
e248fe370c4047cee921a91b48edc37944ab0526Timo Sirainen
e248fe370c4047cee921a91b48edc37944ab0526Timo Sirainenextern char *set_mail_cache_fields;
e248fe370c4047cee921a91b48edc37944ab0526Timo Sirainenextern char *set_mail_never_cache_fields;
e248fe370c4047cee921a91b48edc37944ab0526Timo Sirainenextern int set_mail_save_crlf;
e248fe370c4047cee921a91b48edc37944ab0526Timo Sirainenextern int set_maildir_copy_with_hardlinks;
e248fe370c4047cee921a91b48edc37944ab0526Timo Sirainenextern int set_maildir_check_content_changes;
e248fe370c4047cee921a91b48edc37944ab0526Timo Sirainenextern int set_overwrite_incompatible_index;
e248fe370c4047cee921a91b48edc37944ab0526Timo Sirainenextern unsigned int set_umask;
e248fe370c4047cee921a91b48edc37944ab0526Timo Sirainen
e248fe370c4047cee921a91b48edc37944ab0526Timo Sirainen/* auth */
e248fe370c4047cee921a91b48edc37944ab0526Timo Sirainentypedef struct _AuthConfig AuthConfig;
e248fe370c4047cee921a91b48edc37944ab0526Timo Sirainen
e248fe370c4047cee921a91b48edc37944ab0526Timo Sirainenstruct _AuthConfig {
e248fe370c4047cee921a91b48edc37944ab0526Timo Sirainen AuthConfig *next;
e248fe370c4047cee921a91b48edc37944ab0526Timo Sirainen
e248fe370c4047cee921a91b48edc37944ab0526Timo Sirainen char *name;
e248fe370c4047cee921a91b48edc37944ab0526Timo Sirainen char *methods;
e248fe370c4047cee921a91b48edc37944ab0526Timo Sirainen char *realms;
46ec792dd4ccf6c34706c4774228301fafde6aa9Timo Sirainen char *userinfo, *userinfo_args;
46ec792dd4ccf6c34706c4774228301fafde6aa9Timo Sirainen char *executable;
46ec792dd4ccf6c34706c4774228301fafde6aa9Timo Sirainen char *user;
46ec792dd4ccf6c34706c4774228301fafde6aa9Timo Sirainen char *chroot;
4c6ddf2491104f917d00e6900e833e80ea02c7b6Timo Sirainen
e248fe370c4047cee921a91b48edc37944ab0526Timo Sirainen int count;
e248fe370c4047cee921a91b48edc37944ab0526Timo Sirainen};
e248fe370c4047cee921a91b48edc37944ab0526Timo Sirainen
e248fe370c4047cee921a91b48edc37944ab0526Timo Sirainenextern AuthConfig *auth_processes_config;
e248fe370c4047cee921a91b48edc37944ab0526Timo Sirainen
e248fe370c4047cee921a91b48edc37944ab0526Timo Sirainenvoid settings_read(const char *path);
e248fe370c4047cee921a91b48edc37944ab0526Timo Sirainen
e248fe370c4047cee921a91b48edc37944ab0526Timo Sirainen#endif
e248fe370c4047cee921a91b48edc37944ab0526Timo Sirainen