webserver:policy:webmail

Configure the webmail access policy. All country code options use ISO 3166-1 alpha-2 country codes. See: https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2

juggernaut --task=webserver:policy:webmail
Option
Value Default Description
--deny_countries <string1,string2> A list of countries that will be denied access to the webmail. (ISO 3166-1 alpha-2 country codes)
--deny_countries_add <string> Add a single entry to deny_countries.
--deny_countries_del <string> Remove a single entry from deny_countries.
--deny_continents <string1,string2> A list of continents that will be denied access to the webmail. Continents: AF, NA, OC, AN, AS, EU, SA
--deny_continents_add <string> Add a single entry to deny_continents.
--deny_continents_del <string> Remove a single entry from deny_continents.
--deny_asns <digit1,digit2> Add a single entry to deny_asns.
--deny_asns_add <digit> Remove a single entry from deny_asns.
--deny_asns_del <digit> A list of ASNs that will be denied access to the webmail.
--allow_countries <string1,string2> A list of countries that will be allowed access to the webmail. (ISO 3166-1 alpha-2 country codes)
--allow_countries_add <string> Add a single entry to allow_countries.
--allow_countries_del <string> Remove a single entry from allow_countries.
--allow_continents <string1,string2> A list of continents that will be allowed access to the webmail. Continents: AF, NA, OC, AN, AS, EU, SA
--allow_continents_add <string> Add a single entry to allow_continents.
--allow_continents_del <string> Remove a single entry from allow_continents.
--allow_asns <digit1,digit2> A list of ASNs that will be allowed access to the webmail.
--allow_asns_add <digit> Remove a single entry from allow_asns.
--allow_asns_del <digit> A list of ASNs that will be allowed access to the webmail.
--default <yes> Reset all settings to their default values.
--default_option <option> Reset a specific setting to its default value.
--restart <yes> Restart the service after saving settings.

Examples

// set deny_countries
juggernaut --task=webserver:policy:webmail --deny_countries=RU,BG --restart=yes

// reset set deny_countries to default
juggernaut --task=webserver:policy:webmail --default_option=deny_countries --restart=yes

// reset all settings back to default
juggernaut --task=webserver:policy:webmail --default=yes --restart=yes