Add metadata to the Bayesian filtering process, allowing the Bayesian filters to learn information based on countries.
warden --task=antispam:plugin:relaycountry
Option |
Value | Default | Description |
|---|---|---|---|
--relaycountry_bad_countries |
<string1,string2> | If an email is relayed through any of these countries then apply the RELAYCOUNTRY_BAD rule to them. See: https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 |
|
--relaycountry_bad_countries_add |
<string> | Add a single entry to relaycountry_bad_countries. | |
--relaycountry_bad_countries_del |
<string> | Remove a single entry from relaycountry_bad_countries. | |
--relaycountry_good_countries |
<string1,string2> | If an email is relayed through any of these countries then apply the RELAYCOUNTRY_GOOD rule to them. See: https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 |
|
--relaycountry_good_countries_add |
<string> | Add a single entry to relaycountry_good_countries. | |
--relaycountry_good_countries_del |
<string> | Remove a single entry from relaycountry_good_countries. | |
--relaycountry_bad_score |
<int> | 3.25 | The score to give any country matching the bad countries. |
--relaycountry_good_score |
<int> | -0.5 | The score to give any country matching the good countries. |
--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. |
// set the relaycountry_bad_countries
warden --task=antispam:plugin:relaycountry --relaycountry_bad_countries=cn,bg,by --reload=yes
// reset relaycountry_bad_countries to its default value
warden --task=antispam:plugin:relaycountry --default_option=relaycountry_bad_countries --reload=yes
// reset all settings to their default values
warden --task=antispam:plugin:relaycountry --default=yes --reload=yes
// penalize mail relayed through Russia and boost mail relayed through trusted countries
warden --task=antispam:plugin:relaycountry --relaycountry_bad_countries_add=ru --relaycountry_good_countries=us,ca,de --relaycountry_bad_score=5 --reload=yes