Yahoo Groups archive

Milter-greylist

Index last updated: 2026-04-13 23:57 UTC

Message

Re: [milter-greylist] Milter-Greylist Dump Problem

2016-07-25 by manu@...

Mauricio Teixeira mauricio.teixeira@... [milter-greylist]
<milter-greylist@yahoogroups.com> wrote:

> It's possible that the database API is trying to create a temporary file on
> that directory, and the permissions are blocking it.

Indeed it does. dump.c says;

        /*
         * Dump the database in a temporary file and
         * then replace the old one by the new one.
         * On decent systems, rename(2) garantees that
         * even if the machine crashes, we will not
         * loose both files.
         */
        mkparentdir(conf.c_dumpfile, 0755);
        snprintf(newdumpfile, MAXPATHLEN,
            "%s-XXXXXXXX", conf.c_dumpfile);

        if ((dumpfd = mkstemp(newdumpfile)) == -1) {
                mg_log(LOG_ERR, "mkstemp(\"%s\") failed: %s",
                    newdumpfile, strerror(errno));
                close(dumpfd);
                unlink(newdumpfile);            /* clean up ... */
                exit(EX_OSERR);
        }



-- 
Emmanuel Dreyfus
http://hcpnet.free.fr/pubz
manu@...

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.