On Sun, May 20, 2007 at 12:55:58PM +0200, Maurice Janssen wrote: > On Saturday, May 19, 2007 at 22:46:29 +0100, Jason McIntyre wrote: > >On Fri, May 18, 2007 at 05:25:32PM -0500, Nick Templeton wrote: > >> Since when running spamd(8) in blacklisting mode requires > >> that spamd-setup(8) also be run with the "-b" option, should > >> /etc/rc (the system startup script) be modified with something > >> like I provide below? > >> > >> Index: rc > >> =================================================================== > >> RCS file: /cvs/src/etc/rc,v > >> retrieving revision 1.304 > >> diff -u -r1.304 rc > >> --- rc 25 Apr 2007 14:12:05 -0000 1.304 > >> +++ rc 18 May 2007 22:10:31 -0000 > >> @@ -668,9 +668,10 @@ > >> if [ X"${spamd_flags}" != X"NO" ]; then > >> if [ X"${spamd_black}" != X"NO" ]; then > >> spamd_flags="${spamd_flags} -b" > >> + spamd_setup_flags="-b" > >> fi > >> echo -n ' spamd'; eval /usr/libexec/spamd > >> ${spamd_flags} > >> - /usr/libexec/spamd-setup > >> + /usr/libexec/spamd-setup ${spamd_setup_flags} > >> if [ X"${spamd_black}" = X"NO" ]; then > >> echo -n ' spamlogd' > >> /usr/libexec/spamlogd ${spamlogd_flags} > >> > > > >why do you want to do this? spamd(8) says to use crontab. > > Yes, but the default is once per hour. So without the -b flag to > spamd-setup in /etc/rc, the blacklisted hosts are not sent to the > <spamd> table in pf for quite some time. > I think the proposed patch makes sense. > > Maurice >
Right. spamd-setup was already being executed via /etc/rc, I simply added the -b flag. Nick