On 02/12/10 01:14, John Fawcett wrote:
> I just upgraded to postfix-2.8-20101130 from postfix-2.8-20101108
>>> I am seeing the following being logged
>>>
>>> Dec  2 00:16:26 rosalia postfix/postscreen[8147]: fatal: bad numerical
>>> configuration: postscreen_client_connection_count_limit =
>>> Dec  2 00:16:27 rosalia postfix/master[5648]: warning: process
>>> /usr/lib/postfix/postscreen pid 8147 exit status 1
>>> Dec  2 00:16:27 rosalia postfix/master[5648]: warning:
>>> /usr/lib/postfix/postscreen: bad command startup -- throttling
>>>
>>>       
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.

--- 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,

Reply via email to