---
title: 'antispam:learning:sieve'
url: 'https://docs.danami.com/warden/command-line-interface/antispam/antispam-learning-sieve'
markdown: 'https://docs.danami.com/warden/command-line-interface/antispam/antispam-learning-sieve.md'
date: '2026-09-24'
description: 'Configure the spam filter sieve learning settings. warden --task=antispam:learning:sieve Option Value Description --use_sieve_learning <1|0> Enable or disable the real-time sieve learning. --default <yes> Reset all settings to their default values. --default_option <opti…'
taxonomy:
  category:
    - docs
  tag:
    - learning
---

[](#)  [ Basics ](https://docs.danami.com/warden/)     [ Command Line Interface ](https://docs.danami.com/warden/command-line-interface)      Antispam       antispam:learning:sieve    

# antispam:learning:sieve

Configure the spam filter sieve learning settings.

```
warden --task=antispam:learning:sieve
```

| Option | Value | Description |
|---|---|---|
| `--use_sieve_learning` | <1\|0> | Enable or disable the real-time sieve learning. |
| `--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. |
| `--rebuild` | <yes> | Rebuild the server wide config files. |
| `--restart` | <yes> | Restart the service (Used with the --rebuild command). |

## Examples

```
// disable the real-time sieve learning
warden --task=antispam:learning:sieve --use_sieve_learning=0 --reload=yes

// reset use_sieve_learning to its default value
warden --task=antispam:learning:sieve --default_option=use_sieve_learning --reload=yes

// reset all settings to their default values
warden --task=antispam:learning:sieve --default=yes --reload=yes

// rebuild the warden dovecot sieve configuration and restart dovecot
warden --task=antispam:learning:sieve --rebuild=yes --restart=yes
```

## Related Pages

- [Learning Settings](https://docs.danami.com/warden/settings/antispam/learning-settings "Learning Settings")

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

---

## Navigation

- Previous: [antispam:learning:ignore](https://docs.danami.com/warden/command-line-interface/antispam/antispam-learning-ignore.md)
- Next: [antispam:network](https://docs.danami.com/warden/command-line-interface/antispam/antispam-network.md)
