/* Copyright (c) 2013-2018 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "hostpid.h"
#include "buffer.h"
#include "settings-parser.h"
#include "service-settings.h"
#include "mail-storage-settings.h"
#include "submission-settings.h"
#include <stddef.h>
#include <unistd.h>
/* <settings checks> */
};
};
submission_unix_listeners, sizeof(submission_unix_listeners), { 0, }
};
/* </settings checks> */
.name = "submission",
.protocol = "submission",
.type = "",
.executable = "submission",
.user = "",
.group = "",
.privileged_group = "",
.extra_groups = "$default_internal_group",
.chroot = "",
.process_min_avail = 0,
.process_limit = 1024,
.client_limit = 1,
.service_count = 1,
.idle_kill = 0,
sizeof(submission_unix_listeners[0]) } },
};
};
.hostname = "",
.login_trusted_networks = "",
.submission_max_mail_size = 0,
.submission_logout_format = "in=%i out=%o",
.submission_relay_host = "",
.submission_relay_port = 25,
.submission_relay_user = "",
.submission_relay_master_user = "",
.submission_relay_password = "",
.submission_relay_ssl = "no:smtps:starttls",
.submission_relay_rawlog_dir = "",
.imap_urlauth_host = "",
.imap_urlauth_port = 143,
};
};
.module_name = "submission",
.struct_size = sizeof(struct submission_settings),
#ifndef CONFIG_BINARY
#endif
};
const char **error_r ATTR_UNUSED)
{
if (set->submission_relay_max_idle_time == 0) {
*error_r = "submission_relay_max_idle_time must not be 0";
return FALSE;
}
return TRUE;
}