Spamd options

/usr/bin/spamd -d -u spamassassin -c -i -A 192.168. -H --max-children=5 --max-conn-per-child=128 -s /var/log/spamd.log --virtual-config-dir=/vhome/%u/spamassassin -r /var/run/spamassassin/spamd.pid -r /var/run/spamassassin/spamd.pid
 
-d daemonized
-u spamassassin
 
-c Create user preferences files if they don't exist
 
-i the interface to allow
 
-H
--max-children=5  no of children to spawn ( default 5 )
--max-conn-per-child=128 Maximum connections accepted by child before it is respawned
 
-s /var/log/spamd.log logs location
 
--virtual-config-dir=/vhome/%u/spamassassin 
 
--virtual-config-dir=pattern
This option specifies where per-user preferences can be found for virtual users, for the -x switch. The pattern is used as a base pattern for the directory name. Any of the following escapes can be used:
%u -- replaced with the full name of the current user, as sent by spamc.
%l -- replaced with the 'local part' of the current username. In other words, if the username is an email address, this is the part before the @ sign.
%d -- replaced with the 'domain' of the current username. In other words, if the username is an email address, this is the part after the @ sign.
%% -- replaced with a single percent sign (%).

So for example, if /vhome/users/%u/spamassassin is specified, and spamc sends a virtual username of jm@example.com, the directory /vhome/users/jm@example.com/spamassassin will be used.

The set of characters allowed in the virtual username for this path are restricted to:

        A-Z a-z 0-9 - + _ . , @ =

All others will be replaced by underscores (_).

This path must be a writable directory. It will be created if it does not already exist. If a file called user_prefs exists in this directory (note: not in a .spamassassin subdirectory!), it will be loaded as the user's preferences. The auto-whitelist and/or Bayes databases for that user will be stored in this directory.

Note that this requires that -x is used, and cannot be combined with SQL- or LDAP-based configuration.

The pattern must expand to an absolute directory when spamd is running daemonized (-d).

 
-r /var/run/spamassassin/spamd.pid
 
 
--

No comments:

Other Articles

Enter your email address: