contentfilter:contentfilter

Configure the content filter settings.

warden --task=contentfilter:contentfilter
Option
Value Default Description
--max_servers <digit> 3 The number of pre-forked children created by amavis. Raising this will speed up how fast Amavis processes emails at the cost of using more memory. A setting of 1-2 is recommended for low volume servers, 3-5 for medium volume servers, and 6-8 for high volume servers. Note that each child process will typically use 250-300MB of memory.
--max_requests <digit> 20 The number of requests for an amavis child process before it is retired.
--myhostname <string> The hostname of the server. This must be a fully qualified domain name.
--mydomain <string> The domain name of the server. This should be set to the domain name only (not the hostname). This is used by Amavis in various places like in the X-Virus-Scanned header.
--mynetworks <string1,string2> An IP access list which determines if the original SMTP client IP address belongs to our internal networks, i.e. mail is coming from inside. It is much like the Postfix parameter "mynetworks" in semantics and similar in syntax, and its value should normally match the Postfix counterpart.
--mynetworks_add <string> Add a single entry to mynetworks.
--mynetworks_del <string> Remove a single entry from mynetworks.
--log_level <string> 0 The Amavis debugging log level.
--log_templ <string> verbose The log template used by amavis. Use simple for busy servers or verbose if you want to log more information including matched rule scores.
--sa_debug <string> info A comma seperated list of SpamAssassin plugins to debug. Use "all" to debug all plugins.
--localhost_name <string> The EHLO name used to identify the domain name of the sending host to SMTP.
--inet_acl <string1,string2> Allow SMTP access only from these networks.
--inet_acl_add <string> Add a single entry to inet_acl.
--inet_acl_del <string> Remove a single entry from inet_acl.
--final_spam_destiny <reject|discard|pass> reject The final action that should be taken when a spam message is found.
--final_virus_destiny <reject|discard|pass|bounce> reject The final action that should be taken when a virus message is found.
--final_banned_destiny <reject|discard|pass|bounce> reject The final action that should be taken when a message with a banned attachment is found.
--final_bad_header_destiny <reject|discard|pass|bounce> reject The final action that should be taken when a message with bad mail header is found.
--final_unchecked_destiny <reject|discard|pass|bounce> reject The final action that should be taken when a message cannot be scanned by the anti-virus scanner.
--default <yes> Reset all settings to their default values.
--default_option <option> Reset a specific setting to its default value.
--reload <yes> Reload the service after saving settings.

Examples

// set the max_servers
warden --task=contentfilter:contentfilter --max_servers=10 --reload=yes

// reset max_servers to default
warden --task=contentfilter:contentfilter --default_option=max_servers --reload=yes

// reset all settings to defaults
warden --task=contentfilter:contentfilter -default=yes --reload=yes