Subject: Re: /usr/pkgsrc/mail/nullmailer
To: Iain Hibbert <email@example.com>
From: Johnny C. Lam <firstname.lastname@example.org>
Date: 11/26/2007 08:58:26
Iain Hibbert wrote:
> I finally tracked this down to the fact that my ppp/ip-up script was
> pulling the trigger manually (echo -n . >>/var/spool/nullmailer/trigger)
> as 'root', but nullmailer-send could not do it as 'nullmailer' because the
> INSTALL script makes the fifo mode 0600 as root .. it seems that
> SPECIAL_PERMS applies before the INSTALL script is run..
> The patch below solves this, is it ok?
This patch is fine, however...
> I'm not sure if there is a better way to make a fifo, or if there is a
> different target that it could be made at (pre-post-install ? :)
If nullmailer runs as a daemon and has an rc.d script, I would create
the fifo in the rc.d script as a start_precmd. Just substitute the
hard-coded path of the trigger compiled into the nullmailer binary into
the rc.d script.
-- Johnny C. Lam