if (hook_client_created != NULL)
hook_client_created(&client);
- if (user->anonymous && !client->anonymous_allowed) {
+ if (user->anonymous) {
smtp_server_connection_abort(
&client->conn, 534, "5.7.9",
"Anonymous login is not allowed for submission");
struct submission_backend *backend;
struct istream *data_input;
uoff_t data_size;
-
- bool anonymous_allowed:1;
};
struct client_extra_capability {
bool destroyed:1;
bool anvil_sent:1;
bool backend_capabilities_configured:1;
- bool anonymous_allowed:1;
};
struct submission_module_register {
struct smtp_server_cmd_ctx *cmd,
struct smtp_server_cmd_mail *data)
{
- if (client->user->anonymous && !client->state.anonymous_allowed) {
+ if (client->user->anonymous) {
/* NOTE: may need to allow anonymous BURL access in the future,
but while that is not supported, deny all anonymous access
explicitly. */
struct smtp_server_cmd_ctx *cmd,
struct submission_recipient *srcpt)
{
- if (client->user->anonymous && !srcpt->anonymous_allowed) {
+ if (client->user->anonymous) {
/* NOTE: may need to allow anonymous BURL access in the future,
but while that is not supported, deny all anonymous access
explicitly. */
struct istream *inputs[2];
string_t *path;
- if (client->user->anonymous && !client->state.anonymous_allowed) {
+ if (client->user->anonymous) {
smtp_server_reply(cmd, 554, "5.7.1",
"Access denied (anonymous user)");
return -1;
/* Module-specific contexts. */
ARRAY(union submission_recipient_module_context *) module_contexts;
-
- bool anonymous_allowed:1;
};
struct submission_recipient_module_register {