HEX
Server: Apache/2
System: Linux jingle.dotvndns.vn 2.6.32-754.17.1.el6.x86_64 #1 SMP Tue Jul 2 12:42:48 UTC 2019 x86_64
User: chuahuehuong (1863)
PHP: 7.3.16
Disabled: apache_note,apache_setenv,proc_get_status,exec,passthru,proc_nice,proc_terminate,shell_exec,system,ini_restore,syslog,define_syslog_variables,symlink,link,error_log,leak,dbmopen,closelog,stream_socket_server,execl,escapeshellcmd,ini_alter,dl,show_source,posix_getpwuid,posix_geteuid,posix_getegid,posix_getgrgid,open_basedir,safe_mode_include_dir,pcntl_exec,pcntl_fork,pclose,virtual,openlog,popen,escapeshellarg,eval,calo,posix_getpwuid,symlinks,symlink,getpwuid,mail
Upload Files
File: //usr/include/dovecot/smtp-command.h
#ifndef SMTP_COMMAND_H
#define SMTP_COMMAND_H

#define SMTP_COMMAND_DEFAULT_MAX_PARAMETERS_SIZE  4*1024
#define SMTP_COMMAND_DEFAULT_MAX_AUTH_SIZE        8*1024
#define SMTP_COMMAND_DEFAULT_MAX_DATA_SIZE        40*1024*1024

struct smtp_command_limits {
	/* Maximum size of command parameters, starting after first space */
	uoff_t max_parameters_size;
	/* Maximum size of authentication response */
	uoff_t max_auth_size;
	/* Absolute maximum size of command data, beyond which the parser yields
	   a fatal error; i.e. closing the connection in the server. This should
	   be higher than a normal message size limit, which would return a
	   normal informative error. The limit here just serves to protect
	   against abuse. */
	uoff_t max_data_size;
};

struct smtp_command {
	const char *name;
	const char *parameters;
};

static inline void
smtp_command_limits_merge(struct smtp_command_limits *limits,
			  const struct smtp_command_limits *new_limits)
{
	if (new_limits->max_parameters_size > 0)
		limits->max_parameters_size = new_limits->max_parameters_size;
	if (new_limits->max_auth_size > 0)
		limits->max_auth_size = new_limits->max_auth_size;
	if (new_limits->max_data_size > 0)
		limits->max_data_size = new_limits->max_data_size;
}

#endif