master-settings-defs.c revision 189760a0dccdb23ea4d8021e43c3d2f938648061
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield/* kludgy: this file is included from master-settings.c and from deliver */
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield#define DEF(type, name) \
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield { type, #name, offsetof(struct settings, name) }
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfieldstatic struct setting_def setting_defs[] = {
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield /* common */
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield DEF(SET_STR, base_dir),
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield DEF(SET_STR, log_path),
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield DEF(SET_STR, info_log_path),
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield DEF(SET_STR, log_timestamp),
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield DEF(SET_STR, syslog_facility),
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield /* general */
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield DEF(SET_STR, protocols),
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield DEF(SET_STR, listen),
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield DEF(SET_STR, ssl_listen),
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield DEF(SET_BOOL, ssl_disable),
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield DEF(SET_STR, ssl_ca_file),
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield DEF(SET_STR, ssl_cert_file),
96283b546081e7ff709968378fca25cb44f1ab6cStéphane Graber DEF(SET_STR, ssl_key_file),
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield DEF(SET_STR, ssl_key_password),
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield DEF(SET_INT, ssl_parameters_regenerate),
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield DEF(SET_STR, ssl_cipher_list),
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield DEF(SET_BOOL, ssl_verify_client_cert),
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield DEF(SET_BOOL, disable_plaintext_auth),
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield DEF(SET_BOOL, verbose_ssl),
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield DEF(SET_BOOL, shutdown_clients),
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield DEF(SET_BOOL, nfs_check),
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield DEF(SET_BOOL, version_ignore),
b4f7af7a520b23c873e404562ec518a576e63d4cMichael H. Warfield
b4f7af7a520b23c873e404562ec518a576e63d4cMichael H. Warfield /* login */
b4f7af7a520b23c873e404562ec518a576e63d4cMichael H. Warfield DEF(SET_STR, login_dir),
b4f7af7a520b23c873e404562ec518a576e63d4cMichael H. Warfield DEF(SET_STR, login_executable),
b4f7af7a520b23c873e404562ec518a576e63d4cMichael H. Warfield DEF(SET_STR, login_user),
b4f7af7a520b23c873e404562ec518a576e63d4cMichael H. Warfield DEF(SET_STR, login_greeting),
b4f7af7a520b23c873e404562ec518a576e63d4cMichael H. Warfield DEF(SET_STR, login_log_format_elements),
b4f7af7a520b23c873e404562ec518a576e63d4cMichael H. Warfield DEF(SET_STR, login_log_format),
b4f7af7a520b23c873e404562ec518a576e63d4cMichael H. Warfield
b4f7af7a520b23c873e404562ec518a576e63d4cMichael H. Warfield DEF(SET_BOOL, login_process_per_connection),
b4f7af7a520b23c873e404562ec518a576e63d4cMichael H. Warfield DEF(SET_BOOL, login_chroot),
b4f7af7a520b23c873e404562ec518a576e63d4cMichael H. Warfield DEF(SET_BOOL, login_greeting_capability),
b4f7af7a520b23c873e404562ec518a576e63d4cMichael H. Warfield
b4f7af7a520b23c873e404562ec518a576e63d4cMichael H. Warfield DEF(SET_INT, login_process_size),
b4f7af7a520b23c873e404562ec518a576e63d4cMichael H. Warfield DEF(SET_INT, login_processes_count),
b4f7af7a520b23c873e404562ec518a576e63d4cMichael H. Warfield DEF(SET_INT, login_max_processes_count),
b4f7af7a520b23c873e404562ec518a576e63d4cMichael H. Warfield DEF(SET_INT, login_max_connections),
b4f7af7a520b23c873e404562ec518a576e63d4cMichael H. Warfield
b4f7af7a520b23c873e404562ec518a576e63d4cMichael H. Warfield /* mail */
b4f7af7a520b23c873e404562ec518a576e63d4cMichael H. Warfield DEF(SET_STR, valid_chroot_dirs),
b4f7af7a520b23c873e404562ec518a576e63d4cMichael H. Warfield DEF(SET_STR, mail_chroot),
b4f7af7a520b23c873e404562ec518a576e63d4cMichael H. Warfield DEF(SET_INT, max_mail_processes),
b4f7af7a520b23c873e404562ec518a576e63d4cMichael H. Warfield DEF(SET_BOOL, verbose_proctitle),
b4f7af7a520b23c873e404562ec518a576e63d4cMichael H. Warfield
b4f7af7a520b23c873e404562ec518a576e63d4cMichael H. Warfield DEF(SET_INT, first_valid_uid),
b4f7af7a520b23c873e404562ec518a576e63d4cMichael H. Warfield DEF(SET_INT, last_valid_uid),
b4f7af7a520b23c873e404562ec518a576e63d4cMichael H. Warfield DEF(SET_INT, first_valid_gid),
b4f7af7a520b23c873e404562ec518a576e63d4cMichael H. Warfield DEF(SET_INT, last_valid_gid),
b4f7af7a520b23c873e404562ec518a576e63d4cMichael H. Warfield DEF(SET_STR, mail_extra_groups),
b4f7af7a520b23c873e404562ec518a576e63d4cMichael H. Warfield
b4f7af7a520b23c873e404562ec518a576e63d4cMichael H. Warfield DEF(SET_STR, default_mail_env),
b4f7af7a520b23c873e404562ec518a576e63d4cMichael H. Warfield DEF(SET_STR, mail_location),
b4f7af7a520b23c873e404562ec518a576e63d4cMichael H. Warfield DEF(SET_STR, mail_cache_fields),
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield DEF(SET_STR, mail_never_cache_fields),
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield DEF(SET_INT, mail_cache_min_mail_count),
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield DEF(SET_INT, mailbox_idle_check_interval),
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield DEF(SET_BOOL, mail_debug),
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield DEF(SET_BOOL, mail_full_filesystem_access),
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield DEF(SET_INT, mail_max_keyword_length),
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield DEF(SET_BOOL, mail_save_crlf),
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield DEF(SET_BOOL, mmap_disable),
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield DEF(SET_BOOL, mmap_no_write),
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield DEF(SET_BOOL, dotlock_use_excl),
8ec981fc8b0105da5f071e40811e0c2472a6c3c9Stéphane Graber DEF(SET_BOOL, fsync_disable),
c63c04fcaf1c3a78c70500eae253d72fa9c8358aTAMUKI Shoichi DEF(SET_STR, lock_method),
96283b546081e7ff709968378fca25cb44f1ab6cStéphane Graber DEF(SET_BOOL, maildir_stat_dirs),
96283b546081e7ff709968378fca25cb44f1ab6cStéphane Graber DEF(SET_BOOL, maildir_copy_with_hardlinks),
8ec981fc8b0105da5f071e40811e0c2472a6c3c9Stéphane Graber DEF(SET_BOOL, maildir_copy_preserve_filename),
8ec981fc8b0105da5f071e40811e0c2472a6c3c9Stéphane Graber DEF(SET_STR, mbox_read_locks),
8ec981fc8b0105da5f071e40811e0c2472a6c3c9Stéphane Graber DEF(SET_STR, mbox_write_locks),
8ec981fc8b0105da5f071e40811e0c2472a6c3c9Stéphane Graber DEF(SET_INT, mbox_lock_timeout),
8ec981fc8b0105da5f071e40811e0c2472a6c3c9Stéphane Graber DEF(SET_INT, mbox_dotlock_change_timeout),
8ec981fc8b0105da5f071e40811e0c2472a6c3c9Stéphane Graber DEF(SET_INT, mbox_min_index_size),
207bf0e475f1dc6e9a2dac2cee3a209b56427855Stéphane Graber DEF(SET_BOOL, mbox_dirty_syncs),
207bf0e475f1dc6e9a2dac2cee3a209b56427855Stéphane Graber DEF(SET_BOOL, mbox_very_dirty_syncs),
207bf0e475f1dc6e9a2dac2cee3a209b56427855Stéphane Graber DEF(SET_BOOL, mbox_lazy_writes),
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield DEF(SET_INT, dbox_rotate_size),
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield DEF(SET_INT, dbox_rotate_min_size),
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield DEF(SET_INT, dbox_rotate_days),
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield DEF(SET_INT, umask),
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield DEF(SET_BOOL, mail_drop_priv_before_exec),
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield DEF(SET_STR, mail_executable),
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield DEF(SET_INT, mail_process_size),
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield DEF(SET_STR, mail_plugins),
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield DEF(SET_STR, mail_plugin_dir),
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield DEF(SET_STR, mail_log_prefix),
c6df5ca4603c630a7189cdb1653c96bd2808c7e5Michael H. Warfield DEF(SET_STR, mail_log_max_lines_per_sec),
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield /* imap */
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield DEF(SET_INT, imap_max_line_length),
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield DEF(SET_STR, imap_capability),
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield DEF(SET_STR, imap_client_workarounds),
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield /* pop3 */
c6df5ca4603c630a7189cdb1653c96bd2808c7e5Michael H. Warfield DEF(SET_BOOL, pop3_no_flag_updates),
c6df5ca4603c630a7189cdb1653c96bd2808c7e5Michael H. Warfield DEF(SET_BOOL, pop3_enable_last),
c6df5ca4603c630a7189cdb1653c96bd2808c7e5Michael H. Warfield DEF(SET_BOOL, pop3_reuse_xuidl),
c6df5ca4603c630a7189cdb1653c96bd2808c7e5Michael H. Warfield DEF(SET_BOOL, pop3_lock_session),
c6df5ca4603c630a7189cdb1653c96bd2808c7e5Michael H. Warfield DEF(SET_STR, pop3_uidl_format),
c6df5ca4603c630a7189cdb1653c96bd2808c7e5Michael H. Warfield DEF(SET_STR, pop3_client_workarounds),
c6df5ca4603c630a7189cdb1653c96bd2808c7e5Michael H. Warfield DEF(SET_STR, pop3_logout_format),
164105f6563d98b832f603e28e506dbabed22cf3Michael H. Warfield
c6df5ca4603c630a7189cdb1653c96bd2808c7e5Michael H. Warfield { 0, NULL, 0 }
c6df5ca4603c630a7189cdb1653c96bd2808c7e5Michael H. Warfield};
c6df5ca4603c630a7189cdb1653c96bd2808c7e5Michael H. Warfield