1 diff -durN postfix-2.1.3.orig/src/dns/Makefile.in postfix-2.1.3/src/dns/Makefile.in
2 --- postfix-2.1.3.orig/src/dns/Makefile.in 2004-04-22 21:37:34.000000000 +0200
3 +++ postfix-2.1.3/src/dns/Makefile.in 2004-06-22 15:39:24.242860389 +0200
6 INC_DIR = ../../include
8 -.c.o:; $(CC) $(CFLAGS) -c $*.c
9 +.c.o:; $(CC) -fPIC $(CFLAGS) -c $*.c
17 - $(AR) $(ARFL) $(LIB) $?
19 + gcc -shared -Wl,-soname,libpostfix-dns.so.1 -o $(LIB) $(OBJS)
21 $(LIB_DIR)/$(LIB): $(LIB)
23 - $(RANLIB) $(LIB_DIR)/$(LIB)
25 update: $(LIB_DIR)/$(LIB) $(HDRS)
27 diff -durN postfix-2.1.3.orig/src/global/Makefile.in postfix-2.1.3/src/global/Makefile.in
28 --- postfix-2.1.3.orig/src/global/Makefile.in 2004-06-22 15:38:56.931476412 +0200
29 +++ postfix-2.1.3/src/global/Makefile.in 2004-06-22 15:39:56.167971280 +0200
31 canon_addr.o cfg_parser.o cleanup_strerror.o cleanup_strflags.o \
32 clnt_stream.o debug_peer.o debug_process.o defer.o \
33 deliver_completed.o deliver_flock.o deliver_pass.o deliver_request.o \
34 - dict_ldap.o dict_mysql.o dict_pgsql.o dict_proxy.o domain_list.o \
35 + dict_proxy.o domain_list.o \
36 dot_lockfile.o dot_lockfile_as.o ext_prop.o file_id.o flush_clnt.o \
37 header_opts.o header_token.o hold_message.o input_transp.o \
38 is_header.o log_adhoc.o mail_addr.o mail_addr_crunch.o \
41 INC_DIR = ../../include
43 +LDAPSO = dict_ldap.so
44 +MYSQLSO = dict_mysql.so
45 +PGSQLSO = dict_pgsql.so
47 -.c.o:; $(CC) $(CFLAGS) -c $*.c
48 +.c.o:; $(CC) -fPIC $(CFLAGS) -c $*.c
56 - $(AR) $(ARFL) $(LIB) $?
58 + gcc -shared -Wl,-soname,libpostfix-global.so.1 -o $(LIB) $(OBJS)
60 +$(LDAPSO): dict_ldap.o
61 + gcc -shared -Wl,-soname,dict_ldap.so -o $@ $? -lldap -llber -L../../lib -lutil -L. -lglobal
63 +$(MYSQLSO): dict_mysql.o
64 + gcc -shared -Wl,-soname,dict_ldap.so -o $@ $? -lmysqlclient -L../../lib -lutil -L. -lglobal
66 +$(PGSQLSO): dict_pgsql.o
67 + gcc -shared -Wl,-soname,dict_ldap.so -o $@ $? -lpq -L../../lib -lutil -L. -lglobal
69 $(LIB_DIR)/$(LIB): $(LIB)
71 - $(RANLIB) $(LIB_DIR)/$(LIB)
73 -update: $(LIB_DIR)/$(LIB) $(HDRS)
74 +$(LIB_DIR)/$(LDAPSO): $(LDAPSO)
75 + cp $(LDAPSO) $(LIB_DIR)
77 +$(LIB_DIR)/$(MYSQLSO): $(MYSQLSO)
78 + cp $(MYSQLSO) $(LIB_DIR)
80 +$(LIB_DIR)/$(PGSQLSO): $(PGSQLSO)
81 + cp $(PGSQLSO) $(LIB_DIR)
83 +update: $(LIB_DIR)/$(LIB) $(LIB_DIR)/${LDAPSO} $(LIB_DIR)/${MYSQLSO} $(LIB_DIR)/${PGSQLSO} $(HDRS)
86 cmp -s $$i $(INC_DIR)/$$i 2>/dev/null || cp $$i $(INC_DIR); \
88 lint $(DEFS) $(SRCS) $(LINTFIX)
91 - rm -f *.o $(LIB) *core $(TESTPROG) junk
92 + rm -f *.o $(LIB) $(LDAPSO) $(MYSQLSO) $(PGSQLSO) *core $(TESTPROG) junk
97 dict_proxy.o: mail_params.h
98 dict_proxy.o: clnt_stream.h
99 dict_proxy.o: dict_proxy.h
100 +dict_ldap.o: dict_ldap.c
101 +dict_ldap.o: ../../include/sys_defs.h
102 domain_list.o: domain_list.c
103 domain_list.o: ../../include/sys_defs.h
104 domain_list.o: ../../include/match_list.h
105 diff -durN postfix-2.1.3.orig/src/global/mail_conf.c postfix-2.1.3/src/global/mail_conf.c
106 --- postfix-2.1.3.orig/src/global/mail_conf.c 2004-04-10 16:52:51.000000000 +0200
107 +++ postfix-2.1.3/src/global/mail_conf.c 2004-06-22 15:39:24.247860093 +0200
109 path = concatenate(var_config_dir, "/", "main.cf", (char *) 0);
110 dict_load_file(CONFIG_DICT, path);
113 +#ifndef NO_DYNAMIC_MAPS
114 + path = concatenate(var_config_dir, "/", "dynamicmaps.cf", (char *) 0);
115 + dict_open_dlinfo(path);
121 /* mail_conf_eval - expand macros in string */
122 diff -durN postfix-2.1.3.orig/src/global/mail_params.c postfix-2.1.3/src/global/mail_params.c
123 --- postfix-2.1.3.orig/src/global/mail_params.c 2004-06-22 15:38:57.219459372 +0200
124 +++ postfix-2.1.3/src/global/mail_params.c 2004-06-22 15:39:24.248860034 +0200
129 +#include <safe_open.h>
130 +#include <mymalloc.h>
132 /* Global library. */
135 char *var_debug_peer_list;
136 int var_debug_peer_level;
137 char *var_reject_reply_msg_access_denied;
138 +int var_command_maxtime;
139 int var_fault_inj_code;
140 char *var_bounce_service;
141 char *var_cleanup_service;
143 (long) var_sgid_gid);
146 +static char *read_file(const char *name)
149 + VSTRING *why=vstring_alloc(1);
150 + VSTRING *new_name=vstring_alloc(1);
151 + VSTREAM *vp=safe_open(name, O_RDONLY, 0, NULL, -1, -1, why);
154 + * Ugly macros to make complex expressions less unreadable.
156 +#define SKIP(start, var, cond) \
157 + for (var = start; *var && (cond); var++);
161 + for (p = (s) + strlen(s); p > (s) && ISSPACE(p[-1]); p--); \
166 + msg_fatal("%s: unable to open: %s",name,vstring_str(why));
168 + vstring_get_nonl(new_name,vp);
169 + vstream_fclose(vp);
170 + SKIP(vstring_str(new_name),ret,ISSPACE(*ret));
174 + vstring_free(new_name);
178 /* mail_params_init - configure built-in parameters */
180 void mail_params_init()
182 * Variables that are needed by almost every program.
184 get_mail_conf_str_table(other_str_defaults);
185 + if (*var_myorigin=='/') {
186 + var_myorigin=read_file(var_myorigin);
188 get_mail_conf_int_table(other_int_defaults);
189 get_mail_conf_bool_table(bool_defaults);
190 get_mail_conf_time_table(time_defaults);
191 diff -durN postfix-2.1.3.orig/src/master/Makefile.in postfix-2.1.3/src/master/Makefile.in
192 --- postfix-2.1.3.orig/src/master/Makefile.in 2004-04-22 21:37:35.000000000 +0200
193 +++ postfix-2.1.3/src/master/Makefile.in 2004-06-22 15:39:24.249859975 +0200
195 INC_DIR = ../../include
196 BIN_DIR = ../../libexec
198 -.c.o:; $(CC) $(CFLAGS) -c $*.c
199 +.c.o:; $(CC) `for i in $(LIB_OBJ); do [ $$i = $@ ] && echo -fPIC; done` $(CFLAGS) -c $*.c
207 - $(AR) $(ARFL) $(LIB) $?
209 + gcc -shared -Wl,-soname,libpostfix-master.so.1 -o $(LIB) $(LIB_OBJ)
211 $(LIB_DIR)/$(LIB): $(LIB)
212 cp $(LIB) $(LIB_DIR)/$(LIB)
213 - $(RANLIB) $(LIB_DIR)/$(LIB)
215 $(BIN_DIR)/$(PROG): $(PROG)
216 cp $(PROG) $(BIN_DIR)
217 diff -durN postfix-2.1.3.orig/src/util/Makefile.in postfix-2.1.3/src/util/Makefile.in
218 --- postfix-2.1.3.orig/src/util/Makefile.in 2004-06-22 15:38:57.066468424 +0200
219 +++ postfix-2.1.3/src/util/Makefile.in 2004-06-22 15:39:24.250859915 +0200
221 attr_print_plain.c sane_connect.c neuter.c name_code.c \
225 + dict_sdbm.c sdbm.c \
227 OBJS = alldig.o argv.o argv_split.o attr_print0.o attr_print64.o \
228 attr_scan0.o attr_scan64.o base64_code.o basename.o binhash.o \
229 chroot_uid.o clean_env.o close_on_exec.o concatenate.o ctable.o \
230 dict.o dict_alloc.o dict_db.o dict_dbm.o dict_debug.o dict_env.o \
231 dict_cidr.o dict_ht.o dict_ni.o dict_nis.o \
232 - dict_nisplus.o dict_open.o dict_pcre.o dict_regexp.o \
233 + dict_nisplus.o dict_open.o dict_regexp.o \
234 dict_static.o dict_tcp.o dict_unix.o dir_forest.o doze.o \
235 duplex_pipe.o environ.o events.o exec_command.o fifo_listen.o \
236 fifo_trigger.o file_limit.o find_inet.o fsspace.o fullname.o \
238 attr_print_plain.o sane_connect.o $(STRCASE) neuter.o name_code.o \
242 + dict_sdbm.o sdbm.o \
244 HDRS = argv.h attr.h base64_code.h binhash.h chroot_uid.h clean_env.h \
245 connect.h ctable.h dict.h dict_db.h dict_dbm.h dict_env.h \
246 dict_cidr.h dict_ht.h dict_ni.h dict_nis.h \
248 vbuf_print.h vstream.h vstring.h vstring_vstream.h watchdog.h \
249 auto_clnt.h attr_clnt.h sane_connect.h name_code.h \
252 + dict_sdbm.h sdbm.h \
254 TESTSRC = fifo_open.c fifo_rdwr_bug.c fifo_rdonly_bug.c select_bug.c \
255 stream_test.c dup2_pass_on_exec.c
256 DEFS = -I. -D$(SYSTYPE)
257 CFLAGS = $(DEBUG) $(OPT) $(DEFS)
258 FILES = Makefile $(SRCS) $(HDRS)
260 +PCRESO = dict_pcre.so
262 TESTPROG= dict_open dup2_pass_on_exec events exec_command fifo_open \
263 fifo_rdonly_bug fifo_rdwr_bug fifo_trigger fsspace fullname \
267 INC_DIR = ../../include
268 +LIBS = $(LIB_DIR)/$(LIB) $(LIB_DIR)/$(PCRESO)
270 -.c.o:; $(CC) $(CFLAGS) -c $*.c
271 +.c.o:; $(CC) -fPIC $(CFLAGS) -c $*.c
275 @@ -112,15 +117,19 @@
279 +$(PCRESO): dict_pcre.o
280 + gcc -shared -Wl,-soname,dict_pcre.so -o $@ $? -lpcre -L. -lutil
283 - $(AR) $(ARFL) $(LIB) $?
285 + gcc -shared -Wl,-soname,libpostfix-util.so.1 -o $(LIB) $(OBJS) -ldl
287 $(LIB_DIR)/$(LIB): $(LIB)
289 - $(RANLIB) $(LIB_DIR)/$(LIB)
291 -update: $(LIB_DIR)/$(LIB) $(HDRS)
292 +$(LIB_DIR)/$(PCRESO): $(PCRESO)
293 + cp $(PCRESO) $(LIB_DIR)
295 +update: $(LIBS) $(HDRS)
298 cmp -s $$i $(INC_DIR)/$$i 2>/dev/null || cp $$i $(INC_DIR); \
303 - rm -f *.o $(LIB) *core $(TESTPROG) junk $(MAKES) *.tmp
304 + rm -f *.o $(LIB) $(PCRESO) *core $(TESTPROG) \
305 + junk $(MAKES) *.tmp
309 diff -durN postfix-2.1.3.orig/src/util/dict.h postfix-2.1.3/src/util/dict.h
310 --- postfix-2.1.3.orig/src/util/dict.h 2003-07-03 17:04:13.000000000 +0200
311 +++ postfix-2.1.3/src/util/dict.h 2004-06-22 15:39:24.253859738 +0200
314 extern ARGV *dict_mapnames(void);
316 +#ifndef NO_DYNAMIC_MAPS
318 + * Interface for dynamic map loading.
321 + const char *pattern;
322 + const char *soname;
323 + const char *openfunc;
326 +extern void dict_open_dlinfo(const char *path);
327 +extern DLINFO *dict_open_dlfind(const char *type);
331 * High-level interface, with logical dictionary names.
333 diff -durN postfix-2.1.3.orig/src/util/dict_open.c postfix-2.1.3/src/util/dict_open.c
334 --- postfix-2.1.3.orig/src/util/dict_open.c 2004-06-22 15:38:57.069468247 +0200
335 +++ postfix-2.1.3/src/util/dict_open.c 2004-06-22 15:39:24.254859679 +0200
340 +#include <sys/stat.h>
343 /* Utility library. */
347 #include <split_at.h>
350 +#ifndef NO_DYNAMIC_MAPS
351 +#include <load_lib.h>
352 +#include <vstring.h>
353 +#include <vstream.h>
354 +#include <vstring_vstream.h>
359 * lookup table for available map types.
363 DICT_TYPE_NETINFO, dict_ni_open,
365 +#ifndef MAX_DYNAMIC_MAPS
367 DICT_TYPE_PCRE, dict_pcre_open,
369 +#endif /* MAX_DYNAMIC_MAPS */
370 #ifdef HAS_POSIX_REGEXP
371 DICT_TYPE_REGEXP, dict_regexp_open,
375 if (dict_open_hash == 0)
377 - if ((dp = (DICT_OPEN_INFO *) htable_find(dict_open_hash, dict_type)) == 0)
378 - msg_fatal("unsupported dictionary type: %s", dict_type);
379 + if ((dp = (DICT_OPEN_INFO *) htable_find(dict_open_hash, dict_type)) == 0) {
380 +#ifndef NO_DYNAMIC_MAPS
382 + VSTRING *lib, *func;
384 + DICT *(*open) (const char *, int, int);
385 + DLINFO *dl=dict_open_dlfind(dict_type);
388 + msg_fatal("%s: unsupported dictionary type: %s", myname, dict_type);
389 +#ifndef NO_DYNAMIC_MAPS
390 + lib=vstring_alloc(1);
391 + vstring_sprintf(lib,dl->soname,dict_type);
392 + if (stat(vstring_str(lib),&st) < 0) {
393 + msg_fatal("%s: unsupported dictionary type: %s (%s not found. Is the postfix-%s package installed?)",
394 + myname, dict_type, vstring_str(lib), dict_type);
396 + func=vstring_alloc(1);
397 + vstring_sprintf(func,dl->openfunc,dict_type);
398 + fn[0].name = vstring_str(func);
399 + fn[0].ptr = (void**)&open;
401 + load_library_symbols(vstring_str(lib), fn, NULL);
402 + dict_open_register(dict_type, open);
403 + dp = (DICT_OPEN_INFO *) htable_find(dict_open_hash, dict_type);
405 + vstring_free(func);
408 + if (msg_verbose>1) {
409 + msg_info("%s: calling %s open routine",myname,dict_type);
411 if ((dict = dp->open(dict_name, open_flags, dict_flags)) == 0)
412 msg_fatal("opening %s:%s %m", dict_type, dict_name);
418 +#ifndef NO_DYNAMIC_MAPS
419 +static DLINFO *dict_dlinfo;
421 +void dict_open_dlinfo(const char *path)
423 + char *myname="dict_open_dlinfo";
424 + VSTREAM *conf_fp=vstream_fopen(path,O_RDONLY,0);
425 + VSTRING *buf = vstring_alloc(100);
432 + dict_dlinfo=(DLINFO*)mvect_alloc(&vector,sizeof(DLINFO),3,NULL,NULL);
435 + msg_warn("%s: cannot open %s. No dynamic maps will be allowed.",
438 + while (vstring_get_nonl(buf,conf_fp) != VSTREAM_EOF) {
439 + cp = vstring_str(buf);
441 + if (*cp == '#' || *cp == '\0')
443 + argv = argv_split(cp, " \t");
444 + if (argv->argc != 3) {
445 + msg_fatal("%s: Expected \"pattern .so-name function\" at line %d",
448 + if (argv->argv[1][0] != '/') {
449 + msg_fatal("%s: .so name must begin with a \"/\" at line %d",
452 + if (nelm >= vector.nelm) {
453 + dict_dlinfo=(DLINFO*)mvect_realloc(&vector,vector.nelm+3);
455 + dict_dlinfo[nelm].pattern = mystrdup(argv->argv[0]);
456 + dict_dlinfo[nelm].soname = mystrdup(argv->argv[1]);
457 + dict_dlinfo[nelm].openfunc = mystrdup(argv->argv[2]);
462 + if (nelm >= vector.nelm) {
463 + dict_dlinfo=(DLINFO*)mvect_realloc(&vector,vector.nelm+1);
465 + dict_dlinfo[nelm].pattern = NULL;
466 + dict_dlinfo[nelm].soname = NULL;
467 + dict_dlinfo[nelm].openfunc = NULL;
469 + vstream_fclose(conf_fp);
473 +DLINFO *dict_open_dlfind(const char *type)
480 + for (dp=dict_dlinfo; dp->pattern; dp++) {
481 + if (strcmp(dp->pattern,type)==0 || strcmp(dp->pattern,"*")==0)
486 +#endif /* !NO_DYNAMIC_MAPS */
491 diff -durN postfix-2.1.3.orig/src/util/load_lib.c postfix-2.1.3/src/util/load_lib.c
492 --- postfix-2.1.3.orig/src/util/load_lib.c 1970-01-01 01:00:00.000000000 +0100
493 +++ postfix-2.1.3/src/util/load_lib.c 2004-06-22 15:39:24.257859501 +0200
499 +/* library loading wrappers
501 +/* #include <load_lib.h>
503 +/* extern int load_library_symbols(const char *, LIB_FN *, LIB_FN *);
504 +/* const char *libname;
505 +/* LIB_FN *libfuncs;
509 +/* This module loads functions from libraries, returnine pointers
510 +/* to the named functions.
512 +/* load_library_symbols() loads all of the desired functions, and
513 +/* returns zero for success, or exits via msg_fatal().
516 +/* msg(3) diagnostics interface
518 +/* Problems are reported via the msg(3) diagnostics routines:
519 +/* library not found, symbols not found, other fatal errors.
523 +/* The Secure Mailer license must be distributed with this software.
526 +/* Hewlett-Packard Company
527 +/* 3404 Harmony Road
528 +/* Fort Collins, CO 80528, USA
531 +/* IBM T.J. Watson Research
533 +/* Yorktown Heights, NY 10598, USA
536 +/* System libraries. */
538 +#include "sys_defs.h"
542 +#if defined(HAS_DLOPEN)
544 +#elif defined(HAS_SHL_LOAD)
548 +/* Application-specific. */
551 +#include "load_lib.h"
553 +extern int load_library_symbols(const char * libname, LIB_FN * libfuncs, LIB_FN * libdata)
555 + char *myname = "load_library_symbols";
558 +#if defined(HAS_DLOPEN)
562 + handle=dlopen(libname,RTLD_NOW);
565 + msg_fatal("%s: dlopen failure loading %s: %s", myname, libname, emsg);
569 + for (fn=libfuncs; fn->name; fn++) {
570 + *(fn->ptr) = dlsym(handle,fn->name);
573 + msg_fatal("%s: dlsym failure looking up %s in %s: %s", myname,
574 + fn->name, libname, emsg);
576 + if (msg_verbose>1) {
577 + msg_info("loaded %s = %lx",fn->name, *((long*)(fn->ptr)));
583 + for (fn=libdata; fn->name; fn++) {
584 + *(fn->ptr) = dlsym(handle,fn->name);
587 + msg_fatal("%s: dlsym failure looking up %s in %s: %s", myname,
588 + fn->name, libname, emsg);
590 + if (msg_verbose>1) {
591 + msg_info("loaded %s = %lx",fn->name, *((long*)(fn->ptr)));
595 +#elif defined(HAS_SHL_LOAD)
598 + handle = shl_load(libname,BIND_IMMEDIATE,0);
601 + for (fn=libfuncs; fn->name; fn++) {
602 + if (shl_findsym(&handle,fn->name,TYPE_PROCEDURE,fn->ptr) != 0) {
603 + msg_fatal("%s: shl_findsym failure looking up %s in %s: %m",
604 + myname, fn->name, libname);
606 + if (msg_verbose>1) {
607 + msg_info("loaded %s = %x",fn->name, *((long*)(fn->ptr)));
613 + for (fn=libdata; fn->name; fn++) {
614 + if (shl_findsym(&handle,fn->name,TYPE_DATA,fn->ptr) != 0) {
615 + msg_fatal("%s: shl_findsym failure looking up %s in %s: %m",
616 + myname, fn->name, libname);
618 + if (msg_verbose>1) {
619 + msg_info("loaded %s = %x",fn->name, *((long*)(fn->ptr)));
625 + msg_fatal("%s: need dlopen or shl_load support for dynamic libraries",
630 diff -durN postfix-2.1.3.orig/src/util/load_lib.h postfix-2.1.3/src/util/load_lib.h
631 --- postfix-2.1.3.orig/src/util/load_lib.h 1970-01-01 01:00:00.000000000 +0100
632 +++ postfix-2.1.3/src/util/load_lib.h 2004-06-22 15:39:24.257859501 +0200
634 +#ifndef _LOAD_LIB_H_INCLUDED_
635 +#define _LOAD_LIB_H_INCLUDED_
641 +/* library loading wrappers
643 +/* #include "load_lib.h"
648 + * External interface.
650 +/* NULL name terminates list */
651 +typedef struct LIB_FN {
656 +extern int load_library_symbols(const char *, LIB_FN *, LIB_FN *);
661 +/* The Secure Mailer license must be distributed with this software.
664 +/* Hewlett-Packard Company
665 +/* 3404 Harmony Road
666 +/* Fort Collins, CO 80528, USA
669 +/* IBM T.J. Watson Research
671 +/* Yorktown Heights, NY 10598, USA
675 diff -durN postfix-2.1.3.orig/src/util/sys_defs.h postfix-2.1.3/src/util/sys_defs.h
676 --- postfix-2.1.3.orig/src/util/sys_defs.h 2004-06-22 15:38:57.190461088 +0200
677 +++ postfix-2.1.3/src/util/sys_defs.h 2004-06-22 15:39:24.255859620 +0200
679 #define UNIX_DOMAIN_CONNECT_BLOCKS_FOR_ACCEPT
680 #define PREPEND_PLUS_TO_OPTSTRING
681 #define HAS_POSIX_REGEXP
683 #define NATIVE_SENDMAIL_PATH "/usr/sbin/sendmail"
684 #define NATIVE_MAILQ_PATH "/usr/bin/mailq"
685 #define NATIVE_NEWALIAS_PATH "/usr/bin/newaliases"
687 #define UNIX_DOMAIN_CONNECT_BLOCKS_FOR_ACCEPT /* unverified */
688 #define PREPEND_PLUS_TO_OPTSTRING
689 #define HAS_POSIX_REGEXP
691 #define NATIVE_SENDMAIL_PATH "/usr/sbin/sendmail"
692 #define NATIVE_MAILQ_PATH "/usr/bin/mailq"
693 #define NATIVE_NEWALIAS_PATH "/usr/bin/newaliases"
696 #define STATFS_IN_SYS_VFS_H
697 #define HAS_POSIX_REGEXP
698 +#define HAS_SHL_LOAD
699 #define NATIVE_SENDMAIL_PATH "/usr/sbin/sendmail"
700 #define NATIVE_MAILQ_PATH "/usr/bin/mailq"
701 #define NATIVE_NEWALIAS_PATH "/usr/bin/newaliases"
704 #define STATFS_IN_SYS_VFS_H
705 #define HAS_POSIX_REGEXP
706 +#define HAS_SHL_LOAD
707 #define NATIVE_SENDMAIL_PATH "/usr/sbin/sendmail"
708 #define NATIVE_MAILQ_PATH "/usr/bin/mailq"
709 #define NATIVE_NEWALIAS_PATH "/usr/bin/newaliases"
710 diff -dur postfix-2.1.3.orig/src/global/mail_dict.c postfix-2.1.3/src/global/mail_dict.c
711 --- postfix-2.1.3.orig/src/global/mail_dict.c 2004-01-04 19:53:27.000000000 +0100
712 +++ postfix-2.1.3/src/global/mail_dict.c 2004-06-22 15:47:45.259202712 +0200
715 static DICT_OPEN_INFO dict_open_info[] = {
716 DICT_TYPE_PROXY, dict_proxy_open,
718 - DICT_TYPE_LDAP, dict_ldap_open,
721 - DICT_TYPE_MYSQL, dict_mysql_open,
724 - DICT_TYPE_PGSQL, dict_pgsql_open,
730 --- postfix-2.0.16.orig/conf/dynamicmaps.cf 1970-01-01 01:00:00.000000000 +0100
731 +++ postfix-2.0.16/conf/dynamicmaps.cf 2003-11-08 19:52:14.000000000 +0100
733 +# Postfix dynamic maps configuration file.
735 +# The first match found is the one that is used. The only wildcard
736 +# allowed is '*', which matches everything. The first %s is expanded
739 +#type location of .so file name of open function
740 +#==== ================================ =====================
741 +* /usr/lib/postfix/dict_%s.so dict_%s_open