---
title: 'RelayCountry Settings'
url: 'https://docs.danami.com/warden/settings/antispam/plugin-settings/relaycountry'
markdown: 'https://docs.danami.com/warden/settings/antispam/plugin-settings/relaycountry.md'
date: '2026-09-22'
description: 'Relaycountry bad countries - relaycountry_bad_countries If an email is relayed though any of these countries then apply the RELAYCOUNTRY_BAD rule to them. Default: empty Relaycountry good countries - relaycountry_good_countries If an email is relayed though any of these countries then apply the REL…'
taxonomy:
  category:
    - docs
  tag:
    - relaycountry
---

[](#)  [ Basics ](https://docs.danami.com/warden/)     [ Settings ](https://docs.danami.com/warden/settings)     [ Antispam ](https://docs.danami.com/warden/settings/antispam)     [ Plugin Settings ](https://docs.danami.com/warden/settings/antispam/plugin-settings)      RelayCountry Settings    

# RelayCountry Settings

**Relaycountry bad countries** - `relaycountry_bad_countries`
If an email is relayed though any of these countries then apply the **RELAYCOUNTRY\_BAD** rule to them.
Default: empty

**Relaycountry good countries** - `relaycountry_good_countries`
If an email is relayed though any of these countries then apply the **RELAYCOUNTRY\_GOOD** rule to them.
Default: empty

**Relaycountry bad score** - `relaycountry_bad_score`
The score to give any country matching the bad countries.
Default: 3.25

**Relaycountry good score** - `relaycountry_good_score`
The score to give any country matching the bad countries.
Default: -0.5

**Country DB type** - `country_db_type`
This option tells SpamAssassin which type of Geo database to use. Valid database types are GeoIP2, GeoIP, DB\_File and Fast.
Default: GeoIP2

**Country DB Path** - `relaycountry_good_score`
This option tells SpamAssassin where to find MaxMind GeoIP2, GeoIP or IP::Country::DB\_File database.
Default: /usr/share/GeoIP/GeoLite2-City.mmdb

## Related Pages

- [RelayCountry](https://docs.danami.com/warden/user-guide/antispam-plugins/relaycountry "RelayCountry")

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

---

## Navigation

- Parent: [Plugin Settings](https://docs.danami.com/warden/settings/antispam/plugin-settings.md)
- Previous: [Redirectors Settings](https://docs.danami.com/warden/settings/antispam/plugin-settings/redirectors.md)
- Next: [ResourceLimits Settings](https://docs.danami.com/warden/settings/antispam/plugin-settings/resourcelimits.md)
