[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: new: mail/milter-regex



On Sat, Sep 27, 2003 at 11:16:43AM -0401, Okan Demirmen wrote:

> One small observation I have is that neither libmilter nor milter-regex
> check to see if the base directory of the pipe exists.  The default
> pipe's base directory doesn't exist and must be recreated after
> each system restart before milter-regex can attempt to start. I
> suppose either changing the default or checking/mkdir the basedir
> would work...or document a shell test for the dir before starting
> milter-regex default.

I added an INSTALL script to the updated port which creates the
directory. The plugin (or, rather, libmilter) will automatically create
the pipe in there on startup and unlink it. The directory doesn't need
to be recreated, nothing removes it.

> Sort of OT, but how do people in general start milter daemons before
> sendmail starts, for sendmail is started before rc.local is invoked.

Unless you mind the small chance that some mails slip through during the
few seconds of startup, starting it from rc.local with

/etc/rc.conf.local
milter-regex=YES

/etc/rc.local
if [ X"${milter-regex}" == X"YES" -a -x /usr/local/libexec/milter-regex ]; then
        echo -n ' milter-regex'
        /usr/local/libexec/milter-regex
fi

works fine. sendmail will start up fine without the plugins running, and
the plugins will register themselves when they are started. Everything
fails open (accepting mails) when plugins are not loaded, are killed or
crash.

Daniel



Visit your host, monkey.org