/* Copyright (c) 2010-2018 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "buffer.h"
#include "settings-parser.h"
#include "service-settings.h"
#include "mail-storage-settings.h"
#include "doveadm-settings.h"
/* <settings checks> */
{ "doveadm-server", 0600, "", "" }
};
};
};
/* </settings checks> */
.name = "doveadm",
.protocol = "",
.type = "",
.executable = "doveadm-server",
.user = "",
.group = "",
.privileged_group = "",
.extra_groups = "$default_internal_group",
.chroot = "",
.process_min_avail = 0,
.process_limit = 0,
.client_limit = 1,
.service_count = 1,
.idle_kill = 0,
.unix_listeners = { { &doveadm_unix_listeners_buf,
sizeof(doveadm_unix_listeners[0]) } },
};
};
.base_dir = PKG_RUNDIR,
.mail_plugins = "",
.auth_debug = FALSE,
.auth_socket_path = "auth-userdb",
.doveadm_socket_path = "doveadm-server",
.doveadm_worker_count = 0,
.doveadm_port = 0,
.doveadm_username = "doveadm",
.doveadm_password = "",
.doveadm_allowed_commands = "",
.dsync_alt_char = "_",
.dsync_remote_cmd = "ssh -l%{login} %{host} doveadm dsync-server -u%u -U",
.dsync_features = "",
.dsync_hashed_headers = "Date Message-ID",
.dsync_commit_msgs_interval = 100,
.ssl_client_ca_dir = "",
.ssl_client_ca_file = "",
.director_username_hash = "%Lu",
.doveadm_api_key = "",
.doveadm_http_rawlog_dir = "",
};
};
.module_name = "doveadm",
.struct_size = sizeof(struct doveadm_settings),
};
static void
{
}
/* <settings checks> */
struct dsync_feature_list {
const char *name;
};
{ "empty-header-workaround", DSYNC_FEATURE_EMPTY_HDR_WORKAROUND },
{ NULL, 0 }
};
static int
const char **error_r)
{
const char *const *str;
break;
}
}
"Unknown feature: %s", *str);
return -1;
}
}
return 0;
}
const char **error_r)
{
#ifndef CONFIG_BINARY
#endif
*error_r = "dsync_hashed_headers must not be empty";
return FALSE;
}
*error_r = "dsync_alt_char must not be empty";
return FALSE;
}
return FALSE;
return TRUE;
}
/* </settings checks> */