@%@UCRWARNING=# @%@

# /etc/default/spamassassin
# Duncan Findlay

# WARNING: please read README.spamd before using.
# There may be security risks.

# Change to one to enable spamd
ENABLED=1

# Options
# See man spamd for possible options. The -d option is automatically added.

# SpamAssassin uses a preforking model, so be careful! You need to
# make sure --max-children is not set to anything higher than 5,
# unless you know what you're doing.

OPTIONS="--create-prefs --max-children 10 --helper-home-dir"

# Pid file
# Where should spamd write its PID to file? If you use the -u or
# --username option above, this needs to be writable by that user.
# Otherwise, the init script will not be able to shut spamd down.
PIDFILE="/var/run/spamd.pid"

# Set nice level of spamd
#NICE="--nicelevel 15"

# Cronjob
# Set to anything but 0 to enable the cron job to automatically update
# spamassassin's rules on a nightly basis
@!@
if configRegistry.is_true('mail/antispam/rules/autoupdate', True):
    print('CRON=1')
else:
    print('CRON=0')
@!@

# Set system proxy settings from UCR
@!@
if configRegistry.get('proxy/http'):
    print('http_proxy="%s"' % configRegistry['proxy/http'])
    if not configRegistry.get('proxy/https'):
        print('https_proxy="%s"' % configRegistry['proxy/http'])

if configRegistry.get('proxy/https'):
    print('https_proxy="%s"' % configRegistry['proxy/https'])

if configRegistry.get('proxy/no_proxy'):
    print('no_proxy="%s"' % configRegistry['proxy/no_proxy'])
@!@
