spamassassin: Run as user "spamd" instead of root.
[matthijs/servers/drsnuggles.git] / etc / default / spamassassin
1 # /etc/default/spamassassin
2 # Duncan Findlay
3
4 # WARNING: please read README.spamd before using.
5 # There may be security risks.
6
7 # Change to one to enable spamd
8 ENABLED=1
9
10 # Options
11 # See man spamd for possible options. The -d option is automatically added.
12
13 # SpamAssassin uses a preforking model, so be careful! You need to
14 # make sure --max-children is not set to anything higher than 5,
15 # unless you know what you're doing.
16
17 # We run spamd as the user "spamd", which was created specifically for running
18 # spamd, using:
19 #   adduser --system --home /var/lib/spamd --disabled-login --disabled-password spamd
20 # By default, spamd runs as root, dropping privileges to whatever username the
21 # client claims to have, which is not-so-secure IMHO. There shouldn't be any
22 # any clients other than exim that can access spamd, but since we don't store
23 # any user preferences, let's just run as an unprivileged user.
24 OPTIONS="--create-prefs --max-children 5 --username spamd"
25
26 # Pid file
27 # Where should spamd write its PID to file? If you use the -u or
28 # --username option above, this needs to be writable by that user.
29 # Otherwise, the init script will not be able to shut spamd down.
30 PIDFILE="/var/run/spamd.pid"
31
32 # Set nice level of spamd
33 #NICE="--nicelevel 15"
34
35 # Cronjob
36 # Set to anything but 0 to enable the cron job to automatically update
37 # spamassassin's rules on a nightly basis
38 CRON=1