On 2009-05-11, Bryan Irvine <[email protected]> wrote:
> Oh man, the amount of effort spent going in the wrong direction is
> staggering. ;-) Yes, you are missing something.
>
> man rc.conf
>
> hint: copy what you want to change into rc.conf.local.
>
> -Bryan
/etc/rc hardcodes "/usr/libexec/spamd-setup -D", which is incorrect
in the case where spamd_black != NO. It was probably missed when making
blacklist-only mode separate.
>> As it seems spamd-setup runs without the -b option (blacklisting mode
>> only). Can I replace the above excerpt of /etc/rc by:
I think this is a valid fix.
>> if [ X"${spamd_flags}" != X"NO" ]; then
>> if [ X"${spamd_black}" != X"NO" ]; then
>> spamd_flags="${spamd_flags} -b"
>> echo -n ' spamd'; eval /usr/libexec/spamd ${spamd_flags}
>> /usr/libexec/spamd-setup -b -D
>> else
>> echo -n ' spamd'; eval /usr/libexec/spamd ${spamd_flags}
>> /usr/libexec/spamd-setup -D
>> echo -n ' spamlogd'
>> /usr/libexec/spamlogd ${spamlogd_flags}
>> fi
>> fi