---
title: 'Training Settings'
url: 'https://docs.danami.com/warden/settings/antispam/training-settings'
markdown: 'https://docs.danami.com/warden/settings/antispam/training-settings.md'
date: '2026-10-09'
description: 'Before you can enable the Warden training cron task you must remove the legacy Plesk training scripts. On AlmaLinux / CloudLinux / RHEL / Rocky Linux use the command yum remove psa-spamassassin and on Debian/Ubuntu use the command apt remove psa-spamassassin Training Settings Training dom…'
taxonomy:
  category:
    - docs
  tag:
    - bayes
---

[](#)  [ Basics ](https://docs.danami.com/warden/)     [ Settings ](https://docs.danami.com/warden/settings)     [ Antispam ](https://docs.danami.com/warden/settings/antispam)      Training Settings    

# Training Settings

> > > > > Before you can enable the Warden training cron task you must remove the legacy Plesk training scripts. On AlmaLinux / CloudLinux / RHEL / Rocky Linux use the command `yum remove psa-spamassassin` and on Debian/Ubuntu use the command `apt remove psa-spamassassin`

## Training Settings

**Training domains** - `training_domains`
The domains to use for Bayes training. Select "all" for all domains.
Default: all

**Train spam** - `train_spam`
Train from read mail in the users spam folder as spam.
Default: 1

**Train junk** - `train_junk`
Train from read mail in the users junk folder as spam.
Default: 1

**Train ham** - `train_ham`
Train from read mail in the users inbox as ham.
Default: 1

**Training max size** - `training_max_size`
Skip messages larger than this size (in KB). Defaults to 500 KB, Use 0 for no limit.
Default: 500

**Training max days** - `training_max_days`
The number of days of mail to include in training. High volume servers should use a shorter value to limit the amount of mail that is trained each training interval.
Default: 1

**Training interval** - `training_interval`
How often to do the training.
Default: daily

**Training hour** - `training_hour`
The hour of day to do training.
Default: 1

**Training day of week** - `training_day_of_week`
The day of week to do training (used in weekly training).
Default: 0 (Sun)

**Training day of month** - `training_day_of_month`
The day of the month to do training (used in monthly training).
Default: 1

 [ ](https://docs.danami.com/warden/command-line-interface/antispam/antispam-training)

---

## Navigation

- Parent: [Antispam](https://docs.danami.com/warden/settings/antispam.md)
- Previous: [Network Settings](https://docs.danami.com/warden/settings/antispam/network-settings.md)
- Next: [Rule Updates](https://docs.danami.com/warden/settings/antispam/rule-updates.md)
