Scroll to navigation

Mail::SpamAssassin::Plugin::Esp(3pm) User Contributed Perl Documentation Mail::SpamAssassin::Plugin::Esp(3pm)

NAME

Esp - checks ESP abused accounts

SYNOPSIS

  loadplugin    Mail::SpamAssassin::Plugin::Esp

DESCRIPTION

This plugin checks emails coming from ESP abused accounts.

SYNOPSIS

loadplugin Mail::SpamAssassin::Plugin::Esp Esp.pm

ifplugin Mail::SpamAssassin::Plugin::Esp

  sendgrid_feed /etc/spamassassin/sendgrid-id-dnsbl.txt,/etc/spamassassin/sendgrid-id-local.txt
  sendgrid_domains_feed /etc/spamassassin/sendgrid-envelopefromdomain-dnsbl.txt
  header          SPBL_SENDGRID           eval:esp_sendgrid_check()
  describe        SPBL_SENDGRID           Message from Sendgrid abused account

endif

Usage:

  esp_constantcontact_check()
    Checks for Constant Contact id abused accounts
  esp_mailchimp_check()
    Checks for Mailchimp abused accounts
  esp_maildome_check()
    Checks for Maildome abused accounts
  esp_mailgun_check()
    Checks for Mailgun abused accounts
  esp_mailup_check()
    Checks for Mailup abused accounts
  esp_mdrctr_check()
    Checks for Mdirector id abused accounts
  esp_sendgrid_check()
    Checks for Sendgrid abused accounts (both id and domains)
  esp_sendgrid_check_id()
    Checks for Sendgrid id abused accounts
  esp_sendgrid_check_domain()
    Checks for Sendgrid domains abused accounts
  esp_sendindblue_check()
    Checks for Sendinblue abused accounts

ADMINISTRATOR SETTINGS

A list of files with abused Constant Contact accounts. Files can be separated by a comma.
A list of files with abused Mailchimp accounts. Files can be separated by a comma.
A list of files with abused Maildome accounts. Files can be separated by a comma.
A list of files with abused Mailgun accounts. Files can be separated by a comma.
A list of files with abused Mailup accounts. Files can be separated by a comma.
A list of files with abused Mdirector accounts. Files can be separated by a comma.
A list of files with abused domains managed by Sendgrid. Files can be separated by a comma. More info at https://www.invaluement.com/serviceproviderdnsbl/. Data file can be downloaded from https://www.invaluement.com/spdata/sendgrid-envelopefromdomain-dnsbl.txt.
A list of files with all abused Sendgrid accounts. Files can be separated by a comma. More info at https://www.invaluement.com/serviceproviderdnsbl/. Data file can be downloaded from https://www.invaluement.com/spdata/sendgrid-id-dnsbl.txt.
A list of files with abused Sendinblue accounts. Files can be separated by a comma.

TEMPLATE TAGS

The plugin sets some tags when a rule match, those tags can be used to use direct queries against rbl.

If direct queries are used the main rule will be used only to set the tag and the score should be added to the askdns rule.

  ifplugin Mail::SpamAssassin::Plugin::AskDNS
    askdns   SENDGRID_ID _SENDGRIDID_.rbl.domain.tld A 127.0.0.2
    describe SENDGRID_ID Sendgrid account matches rbl
  endif

Tags that the plugin could set are:

  • CONSTANTCONTACTID
  • MAILCHIMPID
  • MAILDOMEID
  • MAILGUNID
  • MAILUPID
  • MDRCTRID
  • SENDGRIDDOM
  • SENDGRIDID
  • SENDINBLUEID
2022-05-05 perl v5.34.0