---
title: 'antispam:plugin:shortcircuit'
url: 'https://docs.danami.com/warden/command-line-interface/antispam/antispam-plugin-shortcircuit'
markdown: 'https://docs.danami.com/warden/command-line-interface/antispam/antispam-plugin-shortcircuit.md'
date: '2026-09-24'
description: 'Stop evaluation early if high-accuracy rules fire in order to reduce CPU load. warden --task=antispam:plugin:shortcircuit Option Value Default Description --shortcircuit <string1,string2> Shortcircuiting a test will force all other pending rules to be skipped, if that test is hit. The sy…'
taxonomy:
  category:
    - docs
  tag:
    - shortcircuit
---

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

# antispam:plugin:shortcircuit

Stop evaluation early if high-accuracy rules fire in order to reduce CPU load.

```
warden --task=antispam:plugin:shortcircuit
```

| Option | Value | Default | Description |
|---|---|---|---|
| `--shortcircuit` | <string1,string2> |  | Shortcircuiting a test will force all other pending rules to be skipped, if that test is hit. The syntax is SYMBOLIC\_TEST\_NAME (ham\|spam\|on\|off). |
| `--shortcircuit_add` | <string> |  | Add a single entry to shortcircuit. |
| `--shortcircuit_del` | <string> |  | Remove a single entry from shortcircuit. |
| `--shortcircuit_spam_score` | <string> | 100 | When shortcircuit is used on a rule, and the shortcircuit classification type is set to spam, this value should be applied in place of the default score for that rule. |
| `--shortcircuit_ham_score` | <string> | -100 | When shortcircuit is used on a rule, and the shortcircuit classification type is set to ham, this value should be applied in place of the default score for that rule. |
| `--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 shortcircuit
warden --task=antispam:plugin:shortcircuit --shortcircuit='ALL_TRUSTED on,BAYES_99 spam' --reload=yes

// add an entry to shortcircuit
warden --task=antispam:plugin:shortcircuit --shortcircuit_add='BAYES_00 ham' --reload=yes

// delete an entry from shortcircuit
warden --task=antispam:plugin:shortcircuit --shortcircuit_del='BAYES_00 ham' --reload=yes

// reset shortcircuit_spam_score to its default value
warden --task=antispam:plugin:shortcircuit --default_option=shortcircuit_spam_score --reload=yes

// reset all settings to their default values
warden --task=antispam:plugin:shortcircuit --default=yes --reload=yes
```

## Related Pages

- [Shortcircuit Settings](https://docs.danami.com/warden/settings/antispam/plugin-settings/shortcircuit "Shortcircuit Settings")
- [Shortcircuit](https://docs.danami.com/warden/user-guide/antispam-plugins/shortcircuit "Shortcircuit")

 [ ](https://docs.danami.com/warden/user-guide/antispam-plugins/shortcircuit) [](https://docs.danami.com/warden/settings/antispam/plugin-settings/shortcircuit)

---

## Navigation

- Previous: [antispam:plugin:sh](https://docs.danami.com/warden/command-line-interface/antispam/antispam-plugin-sh.md)
- Next: [antispam:plugin:spf](https://docs.danami.com/warden/command-line-interface/antispam/antispam-plugin-spf.md)
