In SpamAssassin version 4.0.0 all configuration directives, rulenames, eval-functions, command line options and modules that contain "whitelist" or "blacklist" have been renamed to contain "welcomelist" and "blocklist" terms. This allows acronyms like WL and BL to remain the same. Previous names will continue work at least until version 4.1.0 is released.

Examples:

  • Rule USER_IN_WHITELIST is now named USER_IN_WELCOMELIST
  • Configuration directive auto_whitelist_path is now auto_welcomelist_path
  • Spamassassin command line option --add-to-blacklist is now --add-to-blocklist

If you are installing a fresh 4.0 version without any existing local installation/rules, no further actions are needed. Simply use the new naming. Reference list of new names is found later in this page.

If you upgrade from older version to 4.0, by default the stock sa-update ruleset will use both old and new rulenames for backwards compatibility, for example:

-0.0 USER_IN_WELCOMELIST    User is listed in 'welcomelist_from'
-100 USER_IN_WHITELIST      DEPRECATED: See USER_IN_WELCOMELIST

First you should verify if you are using any of the old naming in your local rules, you can use grep to find them:

egrep -i '(whitelist|blacklist)' /etc/mail/spamassassin/*.cf

At the bottom of this page, you can find a reference list of all changed names.

If there are any meta-rules referring to rulenames like USER_IN_WHITELIST or you have set local scores for rules like USER_IN_WHITELIST or use directives like "auto_whitelist_path", rename all by replacing white→welcome and black→block.

After all naming in your local configuration is fixed, you can activate version compatibility by adding this in your local.pre or init.pre file (any *.pre file will do, they are not overwritten by any installer):

enable_compat welcomelist_blocklist

In a fresh 4.0 installation, this same declaration is added by default in init.pre.

With the compatibility activated, stock sa-update ruleset will now only use the new rulenames:

-100 USER_IN_WELCOMELIST    User is listed in 'welcomelist_from'

List of changed rulenames in official sa-update ruleset:

Old rulenameNew rulename
SUBJECT_IN_BLACKLISTSUBJECT_IN_BLOCKLIST
SUBJECT_IN_WHITELISTSUBJECT_IN_WELCOMELIST
URI_HOST_IN_BLACKLISTURI_HOST_IN_BLOCKLIST
URI_HOST_IN_WHITELISTURI_HOST_IN_WELCOMELIST
USER_IN_BLACKLISTUSER_IN_BLOCKLIST
USER_IN_BLACKLIST_TOUSER_IN_BLOCKLIST_TO
USER_IN_DEF_WHITELISTUSER_IN_DEF_WELCOMELIST
USER_IN_DKIM_WHITELISTUSER_IN_DKIM_WELCOMELIST
USER_IN_SPF_WHITELISTUSER_IN_SPF_WELCOMELIST
USER_IN_WHITELISTUSER_IN_WELCOMELIST
USER_IN_WHITELIST_TOUSER_IN_WELCOMELIST_TO

List of changed rule eval-function names:

Old functionNew function
check_for_def_dkim_whitelist_fromcheck_for_def_dkim_welcomelist_from
check_for_dkim_whitelist_fromcheck_for_dkim_welcomelist_from
check_forged_in_default_whitelistcheck_forged_in_default_welcomelist
check_forged_in_whitelistcheck_forged_in_welcomelist
check_from_in_auto_whitelistcheck_from_in_auto_welcomelist
check_from_in_blacklistcheck_from_in_blocklist
check_from_in_default_whitelistcheck_from_in_default_welcomelist
check_from_in_whitelistcheck_from_in_welcomelist
check_to_in_blacklistcheck_to_in_blocklist
check_to_in_whitelistcheck_to_in_welcomelist
check_uri_host_in_blacklistcheck_uri_host_in_blocklist
check_uri_host_in_whitelistcheck_uri_host_in_welcomelist
check_whitelist_bounce_relayscheck_welcomelist_bounce_relays

List of changed configuration directives in core:

Old directiveNew directive
blacklist_fromblocklist_from
blacklist_toblocklist_to
blacklist_uri_hostblocklist_uri_host
def_whitelist_authdef_welcomelist_auth
def_whitelist_from_rcvddef_welcomelist_from_rcvd
unblacklist_fromunblocklist_from
unwhitelist_authunwelcomelist_auth
unwhitelist_fromunwelcomelist_from
unwhitelist_from_rcvdunwelcomelist_from_rcvd
whitelist_allows_relayswelcomelist_allows_relays
whitelist_authwelcomelist_auth
whitelist_fromwelcomelist_from
whitelist_from_rcvdwelcomelist_from_rcvd
whitelist_towelcomelist_to
whitelist_uri_hostwelcomelist_uri_host

List of changed configuration directives in all plugins:

Old directiveNew directive
auto_whitelist_db_modulesauto_welcomelist_db_modules
auto_whitelist_distinguish_signedauto_welcomelist_distinguish_signed
auto_whitelist_factorauto_welcomelist_factor
auto_whitelist_factoryauto_welcomelist_factory
auto_whitelist_file_modeauto_welcomelist_file_mode
auto_whitelist_ipv4_mask_lenauto_welcomelist_ipv4_mask_len
auto_whitelist_ipv6_mask_lenauto_welcomelist_ipv6_mask_len
auto_whitelist_pathauto_welcomelist_path
blacklist_subjectblocklist_subject
def_whitelist_from_dkimdef_welcomelist_from_dkim
def_whitelist_from_spfdef_welcomelist_from_spf
freemail_import_def_whitelist_authfreemail_import_def_welcomelist_auth
freemail_import_whitelist_authfreemail_import_welcomelist_auth
hashbl_email_whitelisthashbl_email_welcomelist
pyzor_whitelist_factorpyzor_welcomelist_factor
pyzor_whitelist_minpyzor_welcomelist_min
txrep_whitelist_outtxrep_welcomelist_out
unwhitelist_from_dkimunwelcomelist_from_dkim
unwhitelist_from_spfunwelcomelist_from_spf
use_auto_whitelistuse_auto_welcomelist
whitelist_bounce_relayswelcomelist_bounce_relays
whitelist_from_dkimwelcomelist_from_dkim
whitelist_from_spfwelcomelist_from_spf
whitelist_subjectwelcomelist_subject

List of changed spamassassin command line options:

Old optionNew option
add-addr-to-whitelistadd-addr-to-welcomelist
add-to-whitelistadd-to-welcomelist
remove-addr-from-whitelistremove-addr-from-welcomelist
remove-from-whitelistremove-from-welcomelist
add-addr-to-blacklistadd-addr-to-blocklist
add-to-blacklistadd-to-blocklist

List of changed module names:

Old nameNew name
Mail::SpamAssassin::Plugin::WhiteListSubjectMail::SpamAssassin::Plugin::WelcomeListSubject
Mail::SpamAssassin::AutoWhitelistMail::SpamAssassin::AutoWelcomelist
  • No labels