Paul J Stevens wrote: > problem fixed, bug closed. calling freopen on the std streams does the > trick. Code extracted to new function in server.c,server_daemonize if > you want to see how it's done atm.
Let's see. TRACE_STDERR > 0 dbmail daemonizes and .... ? we have nothing on STDERR ;) And: revision 2014. dbmail.h: #define DEFAULT_PID_DIR "/var/run/dbmail/" may be "/var/run/" ? dbmail.h: #define DEFAULT_CONFIG_FILE "/etc/dbmail/dbmail.conf" may be "/etc/dbmail.conf" ? server.c: freopen("/var/log/dbmail/dbmail.log","a",stdout); server.c: freopen("/var/log/dbmail/dbmail.err","a",stderr); may be this mus be configurable ? And: # make ..... db.c: In function `acl_query': db.c:3751: error: `mailbox' undeclared (first use in this function) db.c:3751: error: (Each undeclared identifier is reported only once db.c:3751: error: for each function it appears in.) db.c: At top level: db.c:3748: warning: unused parameter 'mailbox_idnr' make[2]: *** [libdbmail_la-db.lo] Error 1 make[2]: Leaving directory `/export/hda3/0TMP/dbmail-2.1.5pre/dbmail' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/export/hda3/0TMP/dbmail-2.1.5pre/dbmail' make: *** [all] Error 2 -- Oleg Lapshin