Wietse Venema:
> Dominik Chilla:
> > As Wietse already pointed out, postconf doesn?t cover this case yet:
> > /usr/sbin/postconf: warning: main.cf: syntax error after '}' in 
> > "{send...@zwackl.de=DUNNO},static:{REJECT BAD SENDER}}"
> > /usr/sbin/postconf: warning: main.cf: syntax error after '}' in 
> > "{recipie...@zwackl.de=DUNNO},static:{REJECT BAD RECIPIENT}}"
> 
> Yup, I can reproduce that error message. I'll look into this
> in the train to work tomorrow.

Fixed by duplicating existing code. The final version should replace
the duplicated code with a call to a new function that does the
same thing.

        Wietse

--- /var/tmp/postfix-3.1-20150721/src/postconf/postconf_dbms.c  2014-10-19 
09:27:18.000000000 -0400
+++ src/postconf/postconf_dbms.c        2015-07-29 09:09:57.722171444 -0400
@@ -164,6 +164,22 @@
      */
     while ((db_type = mystrtokq(&str_value, CHARS_COMMA_SP, CHARS_BRACE)) != 
0) {
 
+       if (*db_type == CHARS_BRACE[0]) {
+           if ((err = extpar(&db_type, CHARS_BRACE, EXTPAR_FLAG_NONE)) != 0) {
+               /* XXX Encapsulate this in pcf_warn() function. */
+               if (local_scope)
+                   msg_warn("%s:%s: %s",
+                            MASTER_CONF_FILE, local_scope->name_space,
+                            err);
+               else
+                   msg_warn("%s: %s", MAIN_CONF_FILE, err);
+               myfree(err);
+           }
+           pcf_register_dbms_helper(db_type, flag_parameter,
+                                    local_scope);
+           continue;
+       }
+
        /*
         * Skip over "proxy:" maptypes, to emulate the proxymap(8) server's
         * behavior when opening a local database configuration file.

Reply via email to