On Thu, Dec 02, 2010 at 01:38:10AM +0100, John Fawcett wrote:
> this patch seems to fix it, though maybe someone who knows more about
> how postscreen initializes parameters from default values of other
> parameters (via $parm_name) should check that it is what is needed.
The patch is correct apart from incorrect indentation.
> --- postscreen.c.orig 2010-12-02 01:24:25.000000000 +0100
> +++ postscreen.c 2010-12-02 01:29:23.000000000 +0100
> @@ -301,6 +301,7 @@
> * Configuration parameters.
> */
> int var_proc_limit;
> +int var_smtpd_cconn_limit;
> char *var_smtpd_service;
> char *var_smtpd_banner;
> char *var_smtpd_forbid_cmds;
> @@ -864,6 +865,7 @@
> };
> static const CONFIG_INT_TABLE int_table[] = {
> VAR_PROC_LIMIT, DEF_PROC_LIMIT, &var_proc_limit, 1, 0,
> + VAR_SMTPD_CCONN_LIMIT, DEF_SMTPD_CCONN_LIMIT,
> &var_smtpd_cconn_limit, 0, 0,
> VAR_PS_DNSBL_THRESH, DEF_PS_DNSBL_THRESH, &var_ps_dnsbl_thresh, 0, 0,
> VAR_PS_CMD_COUNT, DEF_PS_CMD_COUNT, &var_ps_cmd_count, 1, 0,
> 0,
--
Viktor.