Scroll to navigation

Mail::MIMEDefang::Antispam(3) Mail::MIMEDefang::Antispam Documentation Mail::MIMEDefang::Antispam(3)

NAME

Mail::MIMEDefang::Antispam - antispam related methods for email filters

DESCRIPTION

Mail::MIMEDefang::Antispam are a set of methods that can be called from mimedefang-filter to check email messages with antispam softwares.

METHODS

Method that scans a mmessage using SpamAssassin and returns True if the email message has been detected as spam.
Method that scans a message using SpamAssassin and returns an array of four elements,
  • Weight of message ('hits')
  • Number of hits required before SA considers a message spam
  • Comma separated list of symbolic test names that were triggered
  • A 'report' string, detailing tests that failed and their weights
Method that scans a mmessage using SpamAssassin and returns a "Mail::SpamAssassin:PerMsgStatus" object. The caller is responsible for calling the "finish" method.
Initialize Apache SpamAssassin and returns a "Mail::SpamAssassin" object.
Method that calls SpamAssassin and returns a "Mail::SpamAssassin::Message" object.
Initialize Apache SpamAssassin and returns a "Mail::SpamAssassin::Client" object. "md_spamc_init" and "md_spamc_check" subs should be used only with Apache SpamAssassin starting from version 4.0.1.

The sub returns a Mail::SpamAssassin::Client object.

Optional parameters are SpamAssassin host, SpamAssassin port, the username to pass to SpamAssassin server and the maximum size of the email message.

Method that scans the message using SpamAssassin Perl client and returns an array of four elemets:
  • Weight of message ('score')
  • Number of hits required before Apache SpamAssassin considers a message spam
  • A 'report' string, detailing tests that failed and their weights
  • A flag explaining if the email is a spam message or not (true/false).

Required parameters is a Mail::SpamAssassin::Client object initialized by calling "md_spamc_init" sub.

Method that scans the message using Rspamd and returns an array of six elemets:
  • Weight of message ('hits')
  • Number of hits required before Rspamd considers a message spam
  • Comma separated list of symbolic test names that were triggered
  • A 'report' string, detailing tests that failed and their weights
    or a Json report if JSON and LWP modules are present
  • An action that should be applied to the email
  • A flag explaining if the email is a spam message or not (true/false).

An optional rspamd url can be passed to the method, its default value is http://127.0.0.1:11333.

2024-10-15 3.5