antispam:training

Configure the spam filter Bayes training cron task settings.

warden --task=antispam:training
Option
Value Default Description
--training_domains <string1,string2> all The domains to use for Bayes training. Select "all" for all domains.
--train_spam <1|0> 1 Train Bayes using read mail from the users spam folder.
--train_ham <1|0> 1 Train Bayes using read mail from the users inbox.
--training_max_size <digit> 500 Skip messages larger than this size (in KB). Defaults to 500 KB, Use 0 for no limit.
--training_interval <disabled|daily|weekly|monthly> daily How often to do the training. High volume servers should use a shorter training interval.
--training_hour <0-23> 2 The hour of day to do training.
--training_day_of_week <0-7> 0 The day of week to do training. (0 = Sunday)
--training_day_of_month <1-31> 1 The day of the month to do training.
--default <yes> Reset all settings to their default values.
--default_option <option> Reset a specific setting to its default value.
--run_task <yes> Run the Bayes training cron task immediately.

Examples

// set the training domains to specific domains only
warden --task=antispam:training --training_domains=example.com,example2.com

// turn off ham training
warden --task=antispam:training --train_ham=0

// set the training to daily at 3:00 AM
warden --task=antispam:training --training_interval=daily --training_hour=3

// set the training to weekly every Sunday at 3:00 AM
warden --task=antispam:training --training_interval=weekly --training_day_of_week=0 --training_hour=3

// set the training to monthly on the 3rd of each month at 3:00 AM
warden --task=antispam:training --training_interval=monthly --training_day_of_month=3 --training_hour=3

// set the training training_max_size to 1000 KB
warden --task=antispam:training --training_max_size=1000

// turn off the Bayes training cron task
warden --task=antispam:training --training_interval=disabled

// reset training_interval to its default value
warden --task=antispam:training --default_option=training_interval

// reset all settings to their default values
warden --task=antispam:training --default=yes

// run the Bayes training cron task immediately
warden --task=antispam:training --run_task=yes