PhishTag(3) SpamAssassin plugin for redirecting links in incoming emails.


loadplugin Mail::SpamAssassin::Plugin::PhishTag
trigger_ratio 0.1
trigger_target RULE_NAME


PhishTag enables administrators to rewrite links in emails that trigger certain tests, preferably anti-phishing blacklist tests. The plugin will inhibit the blocking of a portion of the emails that trigger the test by SpamAssassin, and let them pass to the users' inbox after the rewrite. It is useful in providing training to email users about company policies and general email usage.


The following options can be set by modifying the configuration file.
  • trigger_ratio percentage_value

    Sets the probability in percentage that a positive test will trigger the email rewrite, e.g. 0.1 will rewrite on the average 1 in 1000 emails that match the trigger.

  • trigger_target RULE_NAME http_url

    The name of the test which would trigger the email rewrite; all the URLs will be replaced by http_url.


The source of this plugin is available at: a sample configuration file is also available:


Umut Topkara, 2008, <[email protected]>


This plugin is free software; you can redistribute it and/or modify it under the same terms as SpamAssassin itself, either version 3.2.4 or, at your option, any later version of SpamAssassin you may have available.